* { box-sizing: border-box; }

:root {
  color-scheme: light;
  --paper: #f6f5f0;
  --ink: #172d3b;
  --muted: #58686e;
  --line: #d7dedb;
  --accent: #ab4d2b;
  --accent-dark: #89391d;
  --tint: #e9eeea;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  background: var(--paper);
  color: var(--ink);
}

html { scroll-behavior: smooth; scroll-padding-top: 36px; }
body { margin: 0; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
::selection { background: #e5bba5; color: var(--ink); }
a { color: inherit; text-decoration: none; text-underline-offset: 5px; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
header, main, footer { width: min(100% - 112px, 1184px); margin-inline: auto; }
h1, h2, h3, p { overflow-wrap: break-word; }

.skip {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 10;
  padding: 12px 18px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}
.skip:focus { transform: translateY(0); }

.site-header {
  min-height: 108px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.45px;
}
.wordmark:hover { text-decoration: none; }
.wordmark-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font: italic 18px/1 Georgia, "Times New Roman", serif;
  letter-spacing: -1px;
  padding-right: 2px;
}
.site-header nav { display: flex; align-items: center; gap: 32px; font-size: 12px; font-weight: 500; }
.site-header nav a { padding-block: 12px; }
.site-header .nav-contact { margin-left: 7px; border-bottom: 1px solid var(--ink); padding-block: 7px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(0, 0.86fr);
  align-items: center;
  gap: 84px;
  padding: 91px 0 83px;
}
.eyebrow, .aside-kicker, .project-meta {
  margin: 0;
  font-size: 10px;
  line-height: 1.6;
  font-weight: 650;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
}
.hero .eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.signal-dot { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: var(--accent); }
h1 {
  margin: 0 0 26px;
  font: 400 clamp(51px, 5.25vw, 73px)/1.05 Georgia, "Times New Roman", serif;
  letter-spacing: -2.9px;
}
.headline-accent { color: #486367; }
.intro { max-width: 490px; margin: 0; font-size: 15px; line-height: 1.9; color: var(--muted); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 27px; margin-top: 33px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 47px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.6;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.button:hover { text-decoration: none; background: var(--tint); }
.button-primary { background: var(--ink); color: var(--paper); }
.button-primary:hover { background: #2c4653; border-color: #2c4653; }
.button span { font-size: 17px; line-height: 1; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 17px;
  min-height: 43px;
  border-bottom: 1px solid #a5b2b0;
  font-size: 12px;
  font-weight: 500;
}
.text-link:hover { text-decoration: none; border-color: var(--ink); }
.hero-aside { align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 5px; }
.portrait { width: 100%; margin: 0 0 29px; }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 50%; background: var(--tint); }
.portrait figcaption { margin-top: 10px; font-size: 9px; line-height: 1.6; letter-spacing: 0.7px; text-transform: uppercase; color: var(--muted); }
.aside-kicker { color: var(--accent); font-size: 9px; letter-spacing: 1.4px; }
.hero-aside h2 { margin: 11px 0 12px; font: 400 28px/1.25 Georgia, "Times New Roman", serif; letter-spacing: -0.7px; }
.aside-copy { margin: 0; max-width: 340px; font-size: 12px; line-height: 1.85; color: var(--muted); }
.aside-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 21px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: 0.7px;
  color: var(--muted);
  text-transform: uppercase;
}

.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); padding: 28px 0; }
.metric { display: flex; align-items: center; min-width: 0; gap: 18px; padding-inline: 30px; border-left: 1px solid var(--line); }
.metric:first-child { padding-left: 0; border-left: 0; }
.metric:last-child { padding-right: 0; }
.metric strong { min-width: 0; max-width: 100%; font: 400 36px/1.1 Georgia, "Times New Roman", serif; letter-spacing: -1.3px; overflow-wrap: anywhere; text-wrap: balance; }
.metric:last-child strong { font-size: 25px; letter-spacing: -0.6px; }
.metric span { min-width: 0; max-width: 150px; font-size: 11px; line-height: 1.7; color: var(--muted); }

.content-section { padding: 82px 0 84px; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: flex-start; gap: 21px; margin-bottom: 35px; }
.section-index { display: block; flex-shrink: 0; padding-top: 2px; font-size: 10px; letter-spacing: 0.6px; color: var(--accent); }
h2 { margin: 12px 0 0; font: 400 39px/1.2 Georgia, "Times New Roman", serif; letter-spacing: -1.2px; }
.section-intro { max-width: 620px; margin: 16px 0 0; font-size: 13px; line-height: 1.8; color: var(--muted); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.project { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 28px 27px 25px; border: 1px solid var(--line); background: #f0f2ed; }
.project-meta { margin-bottom: 30px; font-size: 9px; letter-spacing: 1.1px; color: var(--accent); }
h3 { margin: 0 0 14px; font: 400 26px/1.25 Georgia, "Times New Roman", serif; letter-spacing: -0.55px; }
.project > p:not(.project-meta) { margin: 0 0 27px; font-size: 12px; line-height: 1.85; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.tags li { padding: 4px 8px; border: 1px solid #ced8d2; font-size: 9px; line-height: 1.6; color: #456061; }
.project .tags { margin-top: auto; }

.project-stories { margin-top: 47px; padding-top: 34px; border-top: 1px solid var(--line); }
.stories-heading { margin-bottom: 27px; }
.stories-heading h3 { margin: 10px 0 0; font-size: 32px; letter-spacing: -0.8px; }
.case-study-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 26px; }
.case-study { display: flex; flex-direction: column; min-width: 0; }
.case-study figure { margin: 0 0 20px; }
.case-study figure img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; background: var(--tint); }
.case-study figure img[src$="/autopilot-bench.webp"] { object-fit: contain; background: #e4e9e5; }
.case-study figcaption { margin-top: 11px; font-size: 9px; line-height: 1.6; font-weight: 550; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.case-study-copy { display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.case-study-copy h3 { margin: 0 0 13px; font-size: 25px; }
.case-study-copy > p { margin: 0 0 20px; font-size: 12px; line-height: 1.85; color: var(--muted); }
.case-study-details { width: 100%; margin-top: auto; border-top: 1px solid var(--line); }
.case-study-details > summary { display: flex; justify-content: space-between; align-items: center; gap: 15px; min-height: 45px; padding: 10px 0; list-style: none; font-size: 11px; font-weight: 550; line-height: 1.6; cursor: pointer; }
.case-study-details > summary::-webkit-details-marker { display: none; }
.case-study-details > summary:hover { color: var(--accent-dark); }
.case-study-details > summary > span { font-size: 0; font-weight: 400; line-height: 1; }
.case-study-details > summary > span::after { content: "+"; font-size: 20px; }
.case-study-details[open] > summary > span::after { content: "−"; }
.case-study-details .achievements { margin-top: 1px; margin-bottom: 12px; }

.experience-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 70px; align-items: start; margin-top: 44px; }
.timeline-nav { position: sticky; top: 34px; padding-top: 2px; }
.timeline-nav > p { margin: 0 0 17px; font-size: 9px; line-height: 1.6; letter-spacing: 1.4px; font-weight: 600; text-transform: uppercase; color: var(--muted); }
.timeline-nav a { display: flex; align-items: baseline; gap: 14px; padding: 10px 0; font-size: 11px; line-height: 1.6; }
.timeline-nav a span:first-child { min-width: 32px; font-size: 10px; color: var(--muted); }
.timeline { position: relative; min-width: 0; }
.timeline::before { position: absolute; content: ""; top: 10px; bottom: 35px; left: 0; width: 1px; background: var(--line); }
.timeline-entry {
  position: relative;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 23px;
  margin-left: 27px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 34px;
}
.timeline-entry::before { position: absolute; content: ""; top: 36px; left: -31px; width: 9px; height: 9px; border: 1px solid #849c98; border-radius: 50%; background: var(--paper); }
.timeline-entry:first-child { padding-top: 0; }
.timeline-entry:first-child::before { top: 8px; border-color: var(--accent); background: var(--accent); }
.timeline-entry:last-child { border-bottom: 0; padding-bottom: 0; }
.timeline-date { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding-top: 2px; font-size: 10px; line-height: 1.8; color: var(--muted); }
.role-note { display: inline-block; padding: 2px 6px; background: var(--tint); font-size: 8px; line-height: 1.6; letter-spacing: 0.3px; text-transform: uppercase; }
details { min-width: 0; }
.timeline summary { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-right: 29px; list-style: none; cursor: pointer; }
.timeline summary::-webkit-details-marker { display: none; }
.organization { display: block; margin: 0 0 6px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 10px; font-weight: 650; line-height: 1.6; letter-spacing: 0.85px; text-transform: uppercase; color: #486367; }
.timeline summary > h3 { display: flex; width: 100%; justify-content: space-between; align-items: flex-start; margin: 0; font-size: 25px; line-height: 1.25; }
.summary-text { display: block; min-width: 0; }
.role-title { display: block; }
.timeline summary:hover h3 { color: var(--accent-dark); }
.expand-icon { position: absolute; top: 3px; right: 0; width: 21px; height: 21px; border: 1px solid var(--line); border-radius: 50%; }
.expand-icon::before, .expand-icon::after { content: ""; position: absolute; top: 9px; left: 6px; width: 7px; height: 1px; background: var(--muted); }
.expand-icon::after { transform: rotate(90deg); }
details[open] .expand-icon::after { display: none; }
.role-details { padding-top: 17px; }
.role-details > p { margin: 0; font-size: 12px; line-height: 1.9; color: var(--muted); }
.achievements { padding: 0 0 0 15px; margin: 17px 0 0; font-size: 12px; line-height: 1.85; color: var(--muted); }
.achievements li { padding-left: 3px; margin-block: 8px; }
.achievements li::marker { color: #8c9e98; font-size: 9px; }

.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 55px; }
.about-card { border-top: 1px solid var(--line); padding-top: 24px; }
.about-card h3 { margin-top: 15px; }
.about-card > p:not(.eyebrow) { max-width: 450px; font-size: 13px; line-height: 1.9; color: var(--muted); }
.qualification-list { list-style: none; padding: 0; margin: 19px 0 0; font-size: 12px; line-height: 1.85; }
.qualification-list li { position: relative; padding: 8px 0 8px 17px; border-bottom: 1px solid var(--line); }
.qualification-list li::before { content: "↗"; position: absolute; left: 0; color: var(--accent); }
.qualification-list li:last-child { border-bottom: 0; }
.personal-story { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: 50px; margin-top: 45px; padding-top: 33px; border-top: 1px solid var(--line); }
.personal-story figure { margin: 0; }
.personal-story figure img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--tint); }
.personal-story figure img[src$="/cnc-mill.webp"] { object-fit: contain; background: #e4e9e5; }
.personal-story figcaption { margin-top: 11px; font-size: 10px; line-height: 1.7; color: var(--muted); }
.personal-story h3 { margin: 13px 0 16px; font-size: 31px; letter-spacing: -0.7px; }
.personal-story p:not(.eyebrow) { max-width: 490px; margin: 0; font-size: 13px; line-height: 1.9; color: var(--muted); }
.personal-story .tags { margin-top: 21px; }
.expertise { display: grid; grid-template-columns: 145px minmax(0, 1fr); align-items: baseline; gap: 24px; margin-top: 37px; padding-top: 25px; border-top: 1px solid var(--line); }
.expertise .tags { gap: 9px; }
.expertise .tags li { font-size: 10px; padding: 5px 9px; }

.contact { display: flex; justify-content: space-between; align-items: center; gap: 45px; padding: 72px 0 77px; }
.contact h2 { font-size: 43px; margin-top: 15px; }
.contact p:not(.eyebrow) { max-width: 500px; margin: 16px 0 0; font-size: 13px; line-height: 1.8; color: var(--muted); }
.contact-links { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 17px 23px; }
.contact-links > a:not(.button) { font-size: 12px; border-bottom: 1px solid #a5b2b0; padding-block: 9px; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 0 29px; border-top: 1px solid var(--line); font-size: 10px; color: var(--muted); }
footer a { padding-block: 6px; }

@media (max-width: 1100px) {
  header, main, footer { width: calc(100% - 80px); }
  .hero { gap: 45px; padding-block: 72px; }
  h1 { font-size: 58px; letter-spacing: -2.3px; }
  .metric { align-items: flex-start; flex-direction: column; gap: 9px; padding-inline: 23px; }
  .metric strong { font-size: 32px; }
  .project { padding: 25px 22px; }
  .case-study-grid { gap: 20px; }
  .personal-story { gap: 35px; }
  .experience-layout { grid-template-columns: 170px minmax(0, 1fr); gap: 35px; }
  .timeline-entry { grid-template-columns: 91px minmax(0, 1fr); gap: 18px; }
  .about-grid { gap: 35px; }
}

@media (max-width: 800px) {
  header, main, footer { width: calc(100% - 56px); }
  .site-header { min-height: 89px; gap: 18px; }
  .site-header nav { gap: 20px; font-size: 11px; }
  .hero { gap: 33px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); padding-block: 58px; }
  h1 { font-size: 48px; letter-spacing: -1.9px; }
  .intro { font-size: 14px; line-height: 1.8; }
  .hero .eyebrow { font-size: 9px; letter-spacing: 1.3px; margin-bottom: 23px; }
  .hero-actions { gap: 15px; margin-top: 26px; }
  .hero-aside h2 { font-size: 25px; }
  .portrait { margin-bottom: 23px; }
  .metrics { padding-block: 24px; }
  .metric { align-items: flex-start; flex-direction: column; gap: 9px; padding-inline: 20px; }
  .metric span { max-width: 165px; }
  .content-section { padding-block: 61px; }
  h2 { font-size: 35px; }
  .project-grid { grid-template-columns: 1fr; gap: 14px; }
  .project { padding: 25px 27px; }
  .project-meta { margin-bottom: 15px; }
  .project > p:not(.project-meta) { max-width: 590px; margin-bottom: 20px; font-size: 13px; }
  .project-stories { margin-top: 35px; padding-top: 30px; }
  .case-study-grid { grid-template-columns: 1fr; gap: 30px; }
  .case-study { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start; gap: 25px; }
  .case-study figure { margin-bottom: 0; }
  .case-study-copy h3 { font-size: 26px; }
  .case-study-copy > p { margin-bottom: 17px; }
  .personal-story { gap: 28px; margin-top: 34px; }
  .personal-story h3 { font-size: 28px; }
  .experience-layout { grid-template-columns: 1fr; gap: 24px; margin-top: 33px; }
  .timeline-nav { position: static; display: flex; align-items: center; flex-wrap: wrap; gap: 7px 19px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
  .timeline-nav > p { flex-basis: 100%; margin-bottom: 0; }
  .timeline-nav a { gap: 7px; padding-block: 5px; }
  .timeline-nav a span:first-child { min-width: 0; }
  .timeline-entry { grid-template-columns: 108px minmax(0, 1fr); }
  .about-grid { gap: 28px; }
  .expertise { grid-template-columns: 1fr; gap: 15px; margin-top: 30px; }
  .contact { align-items: flex-start; flex-direction: column; gap: 26px; padding-block: 57px; }
  .contact-links { justify-content: flex-start; }
}

@media (max-width: 600px) {
  header, main, footer { width: calc(100% - 40px); }
  .site-header { min-height: 102px; flex-wrap: wrap; justify-content: flex-start; align-content: center; gap: 5px 20px; padding-block: 15px 9px; }
  .wordmark { font-size: 15px; gap: 10px; }
  .wordmark-icon { width: 29px; height: 29px; font-size: 16px; }
  .site-header nav { width: 100%; justify-content: space-between; gap: 16px; font-size: 10px; }
  .site-header .nav-contact { margin-left: auto; padding-block: 5px; }
  .hero { grid-template-columns: 1fr; gap: 39px; padding: 45px 0 37px; }
  h1 { max-width: 430px; font-size: clamp(45px, 10vw, 59px); line-height: 1.06; letter-spacing: -1.9px; margin-bottom: 23px; }
  .hero .eyebrow { letter-spacing: 1.3px; margin-bottom: 23px; }
  .intro { max-width: 470px; line-height: 1.85; }
  .hero-actions { gap: 23px; margin-top: 26px; }
  .hero-aside { display: block; border-top: 1px solid var(--line); padding-top: 28px; }
  .portrait { margin-bottom: 27px; }
  .portrait figcaption { margin-top: 9px; font-size: 8px; }
  .aside-kicker { font-size: 8px; letter-spacing: 1px; }
  .hero-aside h2 { margin-block: 9px 10px; font-size: 27px; }
  .aside-copy { font-size: 12px; line-height: 1.8; }
  .aside-footer { font-size: 8px; margin-top: 21px; }
  .metrics { padding-block: 21px; }
  .metric { gap: 7px; padding-inline: 15px; }
  .metric strong { font-size: 29px; letter-spacing: -0.8px; }
  .metric:last-child strong { font-size: 21px; line-height: 1.3; letter-spacing: -0.4px; }
  .metric span { font-size: 10px; line-height: 1.6; }
  .content-section { padding-block: 47px; }
  .section-heading { gap: 13px; margin-bottom: 27px; }
  .section-heading .eyebrow { font-size: 9px; letter-spacing: 1.4px; }
  h2 { font-size: 32px; letter-spacing: -0.8px; margin-top: 10px; }
  .section-intro { font-size: 12px; margin-top: 13px; }
  .project { padding: 24px 22px; }
  .project h3 { font-size: 26px; }
  .stories-heading { margin-bottom: 23px; }
  .stories-heading h3 { font-size: 29px; }
  .case-study-grid { gap: 34px; }
  .case-study { display: flex; gap: 0; }
  .case-study figure { margin-bottom: 18px; }
  .case-study figure img { aspect-ratio: 8 / 5; }
  .case-study-copy h3 { font-size: 27px; }
  .case-study-copy > p { font-size: 12px; }
  .case-study-details > summary { min-height: 47px; }
  .timeline-nav { gap: 6px 15px; }
  .timeline-nav a { font-size: 10px; }
  .timeline-entry { grid-template-columns: 1fr; gap: 9px; padding-block: 25px; margin-left: 22px; }
  .timeline-entry::before { left: -26px; top: 33px; }
  .timeline-entry:first-child::before { top: 8px; }
  .timeline-date { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 9px; font-size: 10px; }
  .organization { font-size: 9px; margin-bottom: 7px; }
  .timeline summary h3 { font-size: 25px; }
  .role-details { padding-top: 14px; }
  .role-details > p, .achievements { font-size: 12px; }
  .about-grid { grid-template-columns: 1fr; gap: 26px; }
  .about-card { padding-top: 22px; }
  .about-card h3 { font-size: 27px; }
  .about-card > p:not(.eyebrow) { font-size: 12px; }
  .personal-story { grid-template-columns: 1fr; gap: 26px; margin-top: 30px; padding-top: 28px; }
  .personal-story h3 { font-size: 29px; }
  .personal-story p:not(.eyebrow) { font-size: 12px; }
  .contact { padding-block: 47px; }
  .contact h2 { font-size: 36px; letter-spacing: -1px; }
  .contact p:not(.eyebrow) { font-size: 12px; }
  footer { align-items: flex-start; font-size: 9px; gap: 15px; padding-block: 21px; }
  footer > span { padding-block: 6px; }
  footer a { flex-shrink: 0; }
}

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

@media print {
  :root { --paper: #fff; --ink: #000; --muted: #333; }
  body { font-size: 10pt; }
  header, main, footer { width: 100%; }
  .site-header { min-height: 60px; }
  .skip, .site-header nav, .hero-actions, .timeline-nav, .expand-icon, footer a { display: none; }
  .hero { padding-block: 30px; gap: 35px; }
  h1 { font-size: 38pt; }
  .content-section { padding-block: 30px; }
  .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .experience-layout { grid-template-columns: 1fr; margin-top: 20px; }
  .project, .case-study, .timeline-entry, .about-card, .personal-story { break-inside: avoid; }
  details::details-content { content-visibility: visible; display: block; }
  .contact { padding-block: 30px; }
}
