@font-face {
  font-family: Instrument;
  src: url(fonts/instrument-serif-regular.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Instrument;
  src: url(fonts/instrument-serif-italic.woff2) format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Source;
  src: url(fonts/source-sans-3-variable.woff2) format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
:root {
  --paper: #f7f8ef;
  --white: #fffef8;
  --ink: #182e24;
  --muted: #465c50;
  --line: #bbc9b5;
  --forest: #234d38;
  --leaf: #396447;
  --sage: #dce9c9;
  --serif: Instrument, Georgia, serif;
  --sans: Source, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font: 17px/1.48 var(--sans);
}
* { box-sizing: border-box }
html { scroll-padding-top: 16px }
body, figure, h1, h2, h3, h4, p, dl, dd { margin: 0 }
img { display: block; max-width: 100% }
a { color: inherit; text-underline-offset: 4px }
button { font: inherit; cursor: pointer }
a, button, summary { -webkit-tap-highlight-color: transparent }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid #975518;
  outline-offset: 3px;
}
[hidden] { display: none !important }
h1, h2, h3, .metric, .demo-value strong, .case-heading aside strong {
  font: 400 1em/1.06 var(--serif);
  text-wrap: balance;
}
h1 { font-size: clamp(46px, 5.3vw, 83px); letter-spacing: -.035em }
h2 { font-size: clamp(35px, 4.0vw, 58px); letter-spacing: -.025em }
h3 { font-size: clamp(27px, 2.6vw, 40px); letter-spacing: -.018em }
.container, .bar, .footer-inner {
  max-width: 1376px;
  margin: auto;
  padding-inline: clamp(18px, 5.2vw, 80px);
}
.eyebrow {
  display: block;
  color: var(--muted);
  font: 700 12px/1.45 var(--sans);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.skip { position: absolute; z-index: 9; left: 8px; top: -85px; background: white; padding: 12px }
.skip:focus { top: 0 }
#main:focus { outline: 0 }
.mast { border-bottom: 1px solid var(--line) }
.bar, .brand, nav, .actions, .switcher, .footer-id, .footer-inner, .related {
  display: flex;
  align-items: center;
}
.bar { justify-content: space-between; gap: 14px 20px; padding-block: 15px }
.brand { gap: 12px; font-size: 22px; font-weight: 630; letter-spacing: -.035em; text-decoration: none }
.monogram {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--forest);
  color: var(--white);
  border-radius: 50% 50% 2px 2px;
  font: italic 29px/1 var(--serif);
}
nav { flex-wrap: wrap; gap: 4px clamp(12px, 2vw, 32px) }
nav a, .inline, .quiet, .crumb, .button, footer a, .preview-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 620;
}
nav a { padding: 4px 2px; text-decoration: none }
nav a:hover, .brand:hover, .project h3 a:hover { text-decoration: underline }
.mast .nav-resume { text-decoration: underline; text-decoration-color: #76966e; text-underline-offset: 7px }
.actions { flex-wrap: wrap; gap: 8px 12px; margin: 18px 0 4px }
.button, button:not([data-full]) {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 1px solid #758873;
  border-radius: 4px;
  background: transparent;
  color: var(--forest);
  font: 645 16px/1.22 var(--sans);
  text-decoration: none;
}
.button.primary, button[aria-pressed=true]:not([data-full]) { background: var(--forest); color: white; border-color: var(--forest) }
.button:hover, button:not([data-full]):hover { box-shadow: inset 0 0 0 1px currentColor }
.inline, .quiet, .crumb, .preview-link { color: var(--forest) }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(0, .95fr);
  grid-template-areas: "intro portrait";
  align-items: center;
  gap: clamp(28px, 5.4vw, 84px);
  padding-block: clamp(25px, 3vw, 45px);
}
.introduction { grid-area: intro; min-width: 0 }
.hero-identity { color: var(--forest); font-size: clamp(13px, 1.08vw, 16px); font-weight: 690; letter-spacing: .07em; line-height: 1.5; text-transform: uppercase }
.introduction h1 { margin: 14px 0 9px; font-size: clamp(54px, 5.7vw, 82px); line-height: .99; letter-spacing: -.04em; text-wrap: balance }
.introduction h1 em { color: var(--leaf); font-weight: 400 }
.premise { color: var(--muted); font: italic 400 clamp(19px, 1.75vw, 25px)/1.23 var(--serif); max-width: 56ch }
.lede { max-width: 54ch; font-size: clamp(18px, 1.42vw, 22px); line-height: 1.43 }
.lede strong { font-weight: 680 }
.hero .lede { margin-top: 22px }
.hero .actions { margin-top: 19px }
.hero .button { min-height: 46px; padding-inline: 19px }
.hero .quiet { margin-left: 2px; font-size: 16px }
.portrait { grid-area: portrait; min-width: 0; align-self: center }
.portrait-field {
  position: relative;
  display: grid;
  justify-items: center;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  min-height: 100%;
  padding: 18px 9% 0;
  background: #dbe8cc;
  border: 1px solid #b7c9ac;
}
.portrait-field::before, .portrait-field::after {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: -3px;
  height: 92%;
  width: 83%;
  border: 1px solid #98b28d;
  border-radius: 52% 52% 0 0 / 56% 56% 0 0;
}
.portrait-field::after { width: 95%; height: 101%; border-color: #c2d3b5 }
.portrait-window {
  width: 100%;
  max-width: 385px;
  overflow: hidden;
  border-radius: 51% 51% 0 0 / 45% 45% 0 0;
}
.portrait img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: 50% 30% }
.proof-band { display: grid; grid-template-columns: 1fr 1fr 1.04fr 1fr 1.5fr; background: #e6efdc; border-block: 1px solid #a1b59a; padding: 20px 0 }
.proof-band > div { min-width: 0; padding: 0 clamp(12px, 1.65vw, 27px); border-left: 1px solid #b7c8ab }
.proof-band > div:first-child { border-left: 0 }
.proof-band dt { color: var(--forest); font: 400 clamp(28px, 2.8vw, 42px)/1.05 var(--serif); letter-spacing: -.035em }
.proof-band dd { margin-top: 6px; color: var(--ink); font-size: clamp(14px, 1.09vw, 17px); line-height: 1.3; max-width: 27ch }
.switcher { flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line); padding-bottom: 10px }
.section { padding: clamp(36px, 4.15vw, 66px) 0; border-bottom: 1px solid var(--line) }
.section-title { margin-bottom: clamp(18px, 2.0vw, 29px) }
.section-title h2 { margin-top: 6px; text-align: left }
.project-grid, .trip, .gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.65vw, 24px) }
.teal { --wash: #dcebe1; --accent: #285847 }
.plum { --wash: #e5ead6; --accent: #3c5938 }
.ochre { --wash: #f1e6d3; --accent: #71501a }
.project { display: flex; flex-direction: column; min-width: 0; border-top: 3px solid var(--accent) }
.project-thumb { display: grid; place-items: center; aspect-ratio: 1.9; background: var(--wash); padding: clamp(9px, 1vw, 14px) }
.project-thumb img { width: 100%; height: auto; max-height: 100%; object-fit: contain; box-shadow: 0 2px 8px #1a2e2618 }
.project-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 16px 0 0 }
.project-copy .eyebrow, .case > .eyebrow { color: var(--accent); font-size: 14px; font-weight: 610; letter-spacing: .012em; text-transform: none }
.project h3 { margin: 7px 0 9px; font-size: clamp(28px, 2.4vw, 37px); text-wrap: initial }
.project h3 a { text-decoration: none }
.project-name { font-weight: 660; margin-bottom: 6px }
.project-scope { color: var(--muted); font-size: 15px }
.project-copy p { line-height: 1.4 }
.project-tail { display: flex; flex-wrap: wrap; gap: 0 12px; align-items: center; justify-content: space-between; width: 100%; margin-top: auto; padding-top: 11px }
.project-meta, .jobdate, .note, figcaption { color: var(--muted); font-size: 15px }
#experience { padding-top: clamp(34px, 3.6vw, 58px) }
.jobs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px clamp(16px, 2vw, 30px) }
.job-story { min-width: 0; padding: clamp(16px, 1.8vw, 28px); border-top: 2px solid var(--leaf) }
.job-story.major { background: #e9f0e3 }
.job-story.major:nth-child(2) { background: #e5ede5 }
.job-story h3 { font: 400 clamp(25px, 2.1vw, 34px)/1.12 var(--serif); margin: 0 0 4px; text-wrap: initial }
.jobdate { font-weight: 620; line-height: 1.35 }
.job-note { margin-top: 12px; color: var(--muted); font-style: italic; line-height: 1.38 }
.job-story ul { padding-left: 1.07em; margin: 14px 0 0; display: grid; gap: 7px }
.job-story li { padding-left: 2px; line-height: 1.40 }
.job-story li::marker { color: var(--leaf) }
.earlier-job { padding: 14px 0 0; border-top: 1px solid var(--line) }
.earlier-job h3 { font-size: 26px }
.earlier-job p:last-child { margin-top: 7px }
.skills-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px clamp(20px,2.6vw,40px) }
.skills-grid > div { border-top: 2px solid #91a485; padding-top: 10px }
.skills-grid h3 { font: 650 18px/1.3 var(--sans); margin-bottom: 6px; text-wrap: initial }
.skills-grid p { line-height: 1.43 }
.checks { margin-top: clamp(25px,3vw,45px); padding: clamp(16px,2.1vw,32px); background: #e9efdf }
.checks > h3 { margin-bottom: 17px }
.evidence-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(15px,2vw,30px) }
.evidence-grid h4 { font: 400 clamp(23px,1.85vw,28px)/1.13 var(--serif); margin-bottom: 8px }
.evidence-grid p { margin: 5px 0; font-size: 16px; line-height: 1.4 }
.evidence-grid .inline { font-size: 15px }
.contact-block { display: flex; gap: 18px 35px; justify-content: space-between; align-items: center; flex-wrap: wrap; padding-block: clamp(30px,3.8vw,58px) }
.contact-block h2 { margin: 5px 0 9px }
.contact-block p { max-width: 58ch }
.contact-block .actions { margin: 0 }
.switch { background: #eaf0e2; padding: clamp(16px,2.2vw,32px); border-top: 2px solid #78916c }
.switch [data-panel] { min-width: 0; padding-top: 19px }
.switcher button { background: var(--white) }
.switch h3 { margin-bottom: 11px }
details { border-top: 1px solid var(--line) }
summary { padding: 12px 1px; min-height: 44px; cursor: pointer; font-weight: 650 }
details p { padding: 0 0 14px }
footer { margin-top: 8px; background: var(--forest); color: var(--white) }
.footer-inner { flex-wrap: wrap; justify-content: space-between; gap: 12px 20px; padding-block: 28px }
.footer-id { gap: 11px }
.footer-id .monogram { color: var(--forest); background: var(--sage) }
.footer-id strong, .footer-id span:not(.monogram) { display: block }
.footer-id span:not(.monogram) { color: #d2dfca; font-size: 14px }
footer .actions { margin: 0; gap: 5px 19px }
footer .inline { color: var(--white) }
.crumb { margin: 9px 0 22px }
.case-heading { display: grid; grid-template-columns: 1.65fr 1fr; gap: clamp(20px, 4vw, 60px); align-items: center; margin: 12px 0 }
.case-name { font-weight: 660; margin: 0 0 10px }
.case h1, .resume h1 { font-size: clamp(43px, 4.5vw, 72px) }
.case-heading aside { padding: 22px; background: var(--wash); color: var(--accent); border-left: 3px solid var(--accent) }
.case-heading aside strong, .demo-value strong { font-size: clamp(38px, 4.6vw, 68px); display: block }
.case-intro { font-size: 21px; margin: 18px 0 }
.trip { border-block: 1px solid var(--line); margin: 25px 0 0 }
.trip section { padding: 15px 0 }
.trip p { margin-top: 7px }
.trip .eyebrow { text-align: left; text-wrap: initial }
.tools-row { margin: 12px 0; color: var(--muted) }
.callout h2 { margin-top: 6px; font-size: clamp(29px, 2.7vw, 40px) }
.bridge { max-width: 740px; background: var(--white); padding: 0 12px; margin: 15px 0 }
.bridge > div { position: relative; display: flex; justify-content: space-between; gap: 16px; padding: 10px 0 14px; border-bottom: 1px solid var(--line) }
.bridge dd { font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums }
.bridge i { position: absolute; bottom: 3px; left: 0; height: 3px }
.bridge .net { border: 0; font-weight: bold }
.case button[data-next-choice] { margin-top: 12px }
.gallery button { width: 100%; padding: 8px; background: var(--wash); border: 1px solid var(--line); color: var(--accent); border-radius: 4px; font: 600 14px var(--sans); cursor: zoom-in }
.gallery img { width: 100%; height: auto; aspect-ratio: 1.78; object-fit: contain; background: white }
.gallery button span { display: block; text-align: right; padding-top: 5px }
.gallery figcaption { margin: 6px 0 }
.callout, .profile-links { background: #e2edda; border-left: 3px solid #789273; padding: 18px 24px; margin: 24px 0 }
.callout p { margin: 8px 0 }
.related { padding: 20px 0; gap: 8px 18px; flex-wrap: wrap }
.related .actions, .profile-links .actions { margin: 0 }
.resume .lede { margin: 14px 0 }
.not-found { display: grid; align-content: center; min-height: 62vh; padding-block: clamp(45px,9vw,135px) }
.not-found h1 { margin: 10px 0 16px }
.profile-links { display: flex; gap: 10px 25px; align-items: center; flex-wrap: wrap }
.profile-links h2 { font-size: 31px }
.resume-page { width: min(820px, 100%); height: auto; box-shadow: 0 1px 6px #0002 }
dialog { max-width: min(1400px, 96vw); width: max-content; border: 0; padding: 14px; border-radius: 5px; background: var(--paper); color: var(--ink) }
dialog::backdrop { background: #10212bd9 }
.dialogbar { display: flex; align-items: center; justify-content: space-between; gap: 15px }
.full-image img { max-width: 100%; max-height: 73dvh; margin: 8px auto; object-fit: contain }

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); column-gap: 26px }
  .introduction h1 { font-size: clamp(49px,6.2vw,62px) }
  .proof-band { padding: 14px 0 }
  .proof-band > div { padding-inline: 12px }
  .proof-band dt { font-size: clamp(24px, 3.05vw, 30px) }
  .project-meta { font-size: 13px }
  .skills-grid { grid-template-columns: repeat(2,minmax(0,1fr)) }
}
@media (max-width: 720px) {
  .bar { flex-wrap: wrap; padding-block: 8px; gap: 2px 16px }
  nav { gap: 0 12px }
  .hero {
    grid-template-columns: minmax(0,1fr) 135px;
    grid-template-areas: "label portrait" "headline headline" "premise premise" "result result" "actions actions";
    gap: 12px 18px;
    padding-block: 21px 24px;
  }
  .introduction { display: contents }
  .hero-identity { grid-area: label; align-self: center; max-width: 26ch }
  .introduction h1 { grid-area: headline; margin: 0; font-size: clamp(42px,7vw,52px); line-height: 1.02; text-wrap: initial }
  .introduction .premise { grid-area: premise; font-size: 21px }
  .hero .lede { grid-area: result; margin: 0; font-size: 18px }
  .hero .actions { grid-area: actions; margin: 0; gap: 5px 13px }
  .portrait-field { padding: 5px 7% 0 }
  .portrait img { aspect-ratio: 1.1; object-position: 50% 25% }
  .proof-band { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 0 }
  .proof-band > div { padding: 12px 14px; border-left: 0; border-bottom: 1px solid #bdcdb4 }
  .proof-band > div:nth-child(even) { border-left: 1px solid #bdcdb4 }
  .proof-band > div:last-child { grid-column: 1/-1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; border-bottom: 0 }
  .proof-band > div:last-child dd { margin: 0 }
  .proof-band > div:last-child dt { font-size: clamp(25px, 6.4vw, 32px) }
  .proof-band dt { font-size: 33px }
  .jobs, .trip, .case-heading { grid-template-columns: 1fr }
  .case-heading { gap: 10px }
  .case h1 { font-size: clamp(36px,6.5vw,47px) }
  .case-heading aside { padding: 10px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px }
  .case-heading aside strong { font-size: 33px }
  .case-heading aside p { font-size: 15px }
  .case-intro { font-size: 19px }
  .case-routes .actions { margin-block: 10px }
  .trip { gap: 0 }
  .trip section { border-bottom: 1px solid var(--line); padding: 10px 0 }
  .trip section:last-child { border: 0 }
  .project-grid { grid-template-columns: 1fr }
  .project { display: grid; grid-template-columns: minmax(0,1fr) }
  .project-thumb { align-self: center }
  .project-copy { padding-block: 14px }
  .project h3 { font-size: 28px }
  .evidence-grid { grid-template-columns: 1fr }
  .evidence-grid article + article { padding-top: 12px; border-top: 1px solid var(--line) }
  .gallery { grid-template-columns: 1fr 1fr }
  .bridge > div { display: grid; gap: 2px }
}
@media (width < 480px) {
  .identity-industry { display: none }
}
/* A third-width tablet column shrinks the source table and chart labels too far. */
@media (min-width: 721px) and (max-width: 1100px) {
  .project-grid { grid-template-columns: 1fr }
  .project { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); column-gap: 22px }
  .project-thumb { align-self: center }
  .project-copy { padding-block: 14px }
}
@media (max-width: 470px) {
  .bar, nav { gap: 0 }
  nav { justify-content: space-between; width: 100% }
  nav a { font-size: 15px }
  .brand { font-size: 20px }
  .brand .monogram { width: 36px; height: 36px; font-size: 26px }
  .hero { grid-template-columns: minmax(0,1fr) 112px; gap: 10px 12px; padding-top: 15px }
  .hero-identity { font-size: 13px; line-height: 1.55; letter-spacing: .055em }
  .introduction h1 { font-size: clamp(39px,10.8vw,48px) }
  .introduction .premise { font-size: 19px; line-height: 1.23 }
  .hero .button { padding-inline: 12px; min-height: 44px }
  .hero .quiet { font-size: 15px; margin-left: 0 }
  .hero .actions { gap: 0 10px }
  .project, .gallery, .skills-grid { grid-template-columns: 1fr }
  .project-grid { gap: 24px }
  .project-copy { padding-bottom: 0 }
  .switcher button { font-size: 15px; padding-inline: 11px }
  .footer-inner { display: grid; gap: 10px }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important }
}

/* Defer offscreen paint while reserving the measured section heights.
   The sections remain normal document content and keyboard destinations. */
@media screen {
  #experience, #work, #skills { content-visibility: auto }
  #experience { contain-intrinsic-block-size: auto 750px }
  #work { contain-intrinsic-block-size: auto 575px }
  #skills { contain-intrinsic-block-size: auto 875px }
}
@media screen and (max-width: 800px) {
  #experience { contain-intrinsic-block-size: auto 910px }
  #skills { contain-intrinsic-block-size: auto 1030px }
}
@media screen and (min-width: 721px) and (max-width: 1100px) {
  #work { contain-intrinsic-block-size: auto 1050px }
}
@media screen and (max-width: 720px) {
  #experience { contain-intrinsic-block-size: auto 1500px }
  #work { contain-intrinsic-block-size: auto 1400px }
  #skills { contain-intrinsic-block-size: auto 1830px }
}
@media screen and (max-width: 350px) {
  #experience { contain-intrinsic-block-size: auto 1850px }
  #skills { contain-intrinsic-block-size: auto 2080px }
}
