:root {
  --paper: #f3f0e8;
  --paper-deep: #e7e4da;
  --ink: #171714;
  --green: #1f5545;
  --green-soft: #dce4dc;
  --amber: #e9a11b;
  --amber-soft: #f3dfb3;
  --carbon: #0b0e11;
  --carbon-2: #11161a;
  --chalk: #e8e7e2;
  --steel: #8e989f;
  --rule: rgba(23, 23, 20, 0.24);
  --rule-light: rgba(232, 231, 226, 0.2);
  --page: 1440px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", sans-serif;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::selection { background: var(--amber-soft); }

a { color: inherit; }

img { display: block; max-width: 100%; }

h1, h2, h3, p { margin-top: 0; }

h2 {
  margin-bottom: 18px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(52px, 5vw, 82px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

h3 { line-height: 1.12; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.top-signal {
  height: 9px;
  background: linear-gradient(90deg, var(--amber) 0 71%, var(--green) 71% 100%);
}

.page-shell {
  width: min(var(--page), calc(100% - 72px));
  margin-inline: auto;
}

.section-shell { padding-block: 116px; }

.label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  border-bottom: 1px solid var(--ink);
}

.identity {
  display: flex;
  align-items: baseline;
  gap: 18px;
  color: inherit;
  text-decoration: none;
}

.identity strong { font-size: 23px; letter-spacing: -0.025em; }

.identity span {
  padding-left: 18px;
  border-left: 1px solid var(--rule);
  color: var(--green);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header nav { display: flex; align-items: center; gap: 28px; }

.site-header nav a {
  border-bottom: 1px solid transparent;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-header nav a:hover { border-color: currentColor; }

.site-header .nav-contact {
  padding: 10px 13px;
  border: 1px solid var(--ink);
}

.site-header .nav-contact:hover { background: var(--ink); color: var(--paper); }

.hero {
  min-height: 755px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 68px;
  align-items: stretch;
  padding-block: 70px 58px;
}

.hero-copy { min-width: 0; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  color: var(--green);
}

.eyebrow::before { content: ""; width: 44px; height: 7px; background: var(--amber); }

h1 {
  max-width: 940px;
  margin-bottom: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(67px, 6.25vw, 108px);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.045em;
}

h1 em { color: var(--green); font-weight: 400; }

.hero-deck {
  display: grid;
  grid-template-columns: 130px minmax(0, 690px);
  gap: 28px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}

.hero-deck .label { color: var(--green); }

.hero-deck p:last-child { margin-bottom: 0; font-size: 22px; line-height: 1.4; }

.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: var(--paper); }
.button-primary:hover { background: var(--green); }
.button-secondary:hover { background: var(--amber); }

.hero-note {
  margin: 24px 0 0;
  color: rgba(23, 23, 20, 0.62);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.evidence {
  align-self: stretch;
  background: var(--green-soft);
  border-top: 6px solid var(--green);
  border-bottom: 1px solid var(--ink);
}

.evidence-head {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 20px;
  border-bottom: 1px solid var(--rule);
}

.stamp {
  padding: 5px 8px;
  border: 1px solid var(--green);
  color: var(--green);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
}

.evidence-item {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 14px;
  padding: 25px 20px;
  border-bottom: 1px solid var(--rule);
}

.evidence-item:last-child { border-bottom: 0; }
.evidence-number { color: var(--amber); font-family: "Instrument Serif", serif; font-size: 48px; line-height: 0.9; }
.evidence-item strong { display: block; margin-bottom: 5px; font-size: 17px; line-height: 1.18; }
.evidence-item p { margin-bottom: 0; color: rgba(23, 23, 20, 0.64); font-size: 14px; line-height: 1.35; }

.section-intro { max-width: 850px; }
.section-intro .label { margin-bottom: 26px; color: var(--green); }
.section-intro > p:last-child { max-width: 720px; margin-bottom: 0; color: rgba(23, 23, 20, 0.68); font-size: 20px; }
.section-intro-wide { max-width: 980px; }

.operating-system { border-block: 1px solid var(--ink); background: var(--paper-deep); }

.capability-register {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 70px;
  border: 1px solid var(--ink);
}

.capability-register article { position: relative; min-height: 390px; padding: 34px; border-right: 1px solid var(--ink); }
.capability-register article:last-child { border-right: 0; }
.capability-number { color: var(--amber); font-family: "IBM Plex Mono", monospace; font-size: 11px; }
.capability-register h3 { margin: 74px 0 15px; font-family: "Instrument Serif", serif; font-size: 55px; font-weight: 400; }
.capability-register p { color: rgba(23, 23, 20, 0.7); }
.capability-register ul { margin: 28px 0 0; padding: 20px 0 0; border-top: 1px solid var(--rule); list-style: none; }
.capability-register li { margin: 7px 0; font-family: "IBM Plex Mono", monospace; font-size: 11px; }
.capability-register li::before { content: "/"; margin-right: 10px; color: var(--green); }

.case-studies { margin-top: 74px; border-top: 1px solid var(--ink); }

.case-study {
  display: grid;
  grid-template-columns: 210px minmax(0, 1.15fr) minmax(330px, 0.85fr);
  gap: 42px;
  padding: 52px 0;
  border-bottom: 1px solid var(--ink);
}

.case-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.case-meta .label { color: var(--green); }
.case-meta a, .case-links a { font-family: "IBM Plex Mono", monospace; font-size: 10px; text-transform: uppercase; }
.case-status { color: rgba(23,23,20,.55); font-family: "IBM Plex Mono", monospace; font-size: 10px; text-transform: uppercase; }
.case-main h3 { max-width: 760px; margin-bottom: 20px; font-family: "Instrument Serif", serif; font-size: clamp(38px, 3.3vw, 55px); font-weight: 400; }
.case-main p { margin-bottom: 0; color: rgba(23,23,20,.7); font-size: 18px; }
.case-proof { margin: 0; border-top: 4px solid var(--green); }
.case-proof dl { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.case-proof dt { margin-bottom: 5px; color: var(--green); font-family: "IBM Plex Mono", monospace; font-size: 10px; font-weight: 600; text-transform: uppercase; }
.case-proof dd { margin: 0; font-size: 14px; line-height: 1.4; }
.case-links { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 22px; margin-top: -22px; }

.workbench {
  color: var(--chalk);
  background:
    linear-gradient(rgba(142, 152, 159, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 152, 159, 0.045) 1px, transparent 1px),
    var(--carbon);
  background-size: 32px 32px;
}

.workbench-shell { padding-block: 106px; }
.workbench-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 36px; margin-bottom: 52px; }
.workbench-head .label { color: var(--amber); }
.workbench-head h2 { margin-bottom: 0; }
.workbench-head > a { color: var(--green-soft); font-family: "IBM Plex Mono", monospace; font-size: 11px; text-transform: uppercase; }
.shipping-ledger { border-top: 1px solid var(--rule-light); }
.shipping-ledger article { display: grid; grid-template-columns: 135px minmax(0, 1fr) 155px; gap: 36px; align-items: center; min-height: 142px; border-bottom: 1px solid var(--rule-light); }
.shipping-ledger time { color: var(--amber); font-family: "IBM Plex Mono", monospace; font-size: 11px; }
.shipping-ledger h3 { margin-bottom: 7px; font-size: 22px; }
.shipping-ledger p { margin-bottom: 0; color: #aeb4b7; font-size: 15px; }
.shipping-ledger > article > a, .shipping-ledger .status, .ledger-links a { justify-self: start; color: var(--green-soft); font-family: "IBM Plex Mono", monospace; font-size: 10px; text-transform: uppercase; }
.shipping-ledger > article > a:hover, .ledger-links a:hover { color: var(--amber); }
.status { padding: 7px 9px; border: 1px solid rgba(155, 213, 106, 0.6); }
.ledger-links { display: flex; flex-wrap: wrap; gap: 12px; }

.career .section-intro { margin-bottom: 74px; }
.timeline { max-width: 1100px; margin-left: auto; border-top: 1px solid var(--ink); }
.timeline article { display: grid; grid-template-columns: 220px 1fr; gap: 44px; padding: 35px 0; border-bottom: 1px solid var(--rule); }
.timeline-when { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-family: "IBM Plex Mono", monospace; font-size: 11px; text-transform: uppercase; }
.timeline-when span { padding: 4px 7px; background: var(--amber); }
.timeline h3 { margin-bottom: 3px; font-family: "Instrument Serif", serif; font-size: 38px; font-weight: 400; }
.timeline-role { margin-bottom: 10px; color: var(--green); font-weight: 600; }
.timeline article div:last-child > p:last-child { max-width: 720px; margin-bottom: 0; color: rgba(23,23,20,.66); }
.timeline-origin { background: var(--green-soft); }

.teaching { padding-block: 112px; border-block: 1px solid var(--ink); background: var(--amber-soft); }
.teaching-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(560px, 1.15fr); gap: 110px; }
.teaching-copy .label { color: var(--green); }
.teaching-copy p:last-child { max-width: 620px; font-size: 21px; }
.teaching-register { border-top: 5px solid var(--green); }
.teaching-register article { display: grid; grid-template-columns: 100px 1fr; gap: 24px; padding: 27px 0; border-bottom: 1px solid var(--rule); }
.teaching-year { color: var(--green); font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.teaching-register h3 { margin-bottom: 7px; font-size: 22px; }
.teaching-register p { margin-bottom: 0; color: rgba(23,23,20,.68); font-size: 16px; }

.project-index { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 72px; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.project-index article { min-height: 320px; display: flex; flex-direction: column; padding: 28px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.project-top { display: flex; justify-content: space-between; gap: 12px; font-family: "IBM Plex Mono", monospace; font-size: 9px; text-transform: uppercase; }
.project-state { padding: 4px 6px; border: 1px solid currentColor; }
.state-shipped, .state-live { color: var(--green); }
.state-building { color: #9f6500; }
.state-system { color: #5a6780; }
.state-prototype { color: #8d573a; }
.state-making { color: #6c7139; }
.project-index h3 { margin: 66px 0 13px; font-family: "Instrument Serif", serif; font-size: 37px; font-weight: 400; }
.project-index p { margin-bottom: 30px; color: rgba(23,23,20,.68); font-size: 15px; }
.project-index a, .project-no-link { margin-top: auto; font-family: "IBM Plex Mono", monospace; font-size: 10px; text-transform: uppercase; }
.project-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }

.contact { border-top: 1px solid var(--ink); background: var(--green-soft); }
.contact-grid { display: grid; grid-template-columns: minmax(340px, 0.72fr) minmax(0, 1.28fr); gap: 90px; align-items: center; padding-block: 105px; }
.portrait-frame { position: relative; max-width: 520px; border: 1px solid var(--ink); background: var(--paper); }
.portrait-frame::before { content: "PORTRAIT / 2026"; position: absolute; z-index: 1; top: 15px; left: 16px; padding: 5px 7px; background: var(--paper); font-family: "IBM Plex Mono", monospace; font-size: 9px; letter-spacing: .1em; }
.portrait-frame img { aspect-ratio: 1; object-fit: cover; filter: saturate(.82) contrast(1.02); }
.contact-copy .label { color: var(--green); }
.contact-copy h2 { max-width: 830px; }
.contact-copy > p:not(.label):not(.resume-note) { max-width: 700px; font-size: 21px; }
.resume-note { margin-top: 24px; color: rgba(23,23,20,.58); font-family: "IBM Plex Mono", monospace; font-size: 10px; }

footer { padding-block: 48px; color: var(--paper); background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px; align-items: start; }
.footer-grid strong { font-size: 22px; }
.footer-grid p { margin: 4px 0 0; color: #a8aaa4; font-size: 14px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.footer-links a { font-family: "IBM Plex Mono", monospace; font-size: 10px; text-transform: uppercase; }
.footer-note { text-align: right; }

@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; }
  .evidence { display: grid; grid-template-columns: 1fr 1fr; }
  .evidence-head { grid-column: 1 / -1; }
  .evidence-item:nth-child(even) { border-right: 1px solid var(--rule); }
  .case-study { grid-template-columns: 160px 1fr; }
  .case-proof { grid-column: 2; }
  .case-links { grid-column: 2; }
  .teaching-grid { grid-template-columns: 1fr; gap: 60px; }
  .project-index { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  body { font-size: 17px; }
  .page-shell { width: min(100% - 36px, var(--page)); }
  .section-shell { padding-block: 84px; }
  .site-header { align-items: flex-start; padding-block: 21px; }
  .identity { flex-direction: column; gap: 2px; }
  .identity span { padding-left: 0; border: 0; }
  .site-header nav { max-width: 270px; justify-content: flex-end; flex-wrap: wrap; gap: 13px 18px; }
  .site-header nav a:nth-child(2), .site-header nav a:nth-child(3) { display: none; }
  .hero { min-height: auto; padding-block: 54px; }
  h1 { font-size: clamp(58px, 12vw, 84px); }
  .hero-deck { grid-template-columns: 1fr; gap: 8px; }
  .capability-register { grid-template-columns: 1fr; }
  .capability-register article { min-height: auto; border-right: 0; border-bottom: 1px solid var(--ink); }
  .capability-register article:last-child { border-bottom: 0; }
  .capability-register h3 { margin-top: 36px; }
  .case-study { grid-template-columns: 1fr; gap: 26px; }
  .case-proof, .case-links { grid-column: 1; }
  .workbench-head { align-items: flex-start; flex-direction: column; }
  .shipping-ledger article { grid-template-columns: 90px 1fr; padding-block: 25px; }
  .shipping-ledger article > :last-child { grid-column: 2; }
  .timeline { margin-left: 0; }
  .timeline article { grid-template-columns: 130px 1fr; gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 52px; }
  .portrait-frame { max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-note { text-align: left; }
}

@media (max-width: 560px) {
  .top-signal { height: 7px; }
  .site-header nav a:not(.nav-contact) { display: none; }
  h1 { font-size: 54px; line-height: .92; }
  h2 { font-size: 48px; }
  .hero-deck p:last-child { font-size: 19px; }
  .evidence { grid-template-columns: 1fr; }
  .evidence-head { grid-column: 1; }
  .evidence-item:nth-child(even) { border-right: 0; }
  .case-main h3 { font-size: 39px; }
  .shipping-ledger article { grid-template-columns: 1fr; gap: 12px; }
  .shipping-ledger article > :last-child { grid-column: 1; }
  .timeline article { grid-template-columns: 1fr; gap: 10px; }
  .teaching-register article { grid-template-columns: 1fr; gap: 10px; }
  .project-index { grid-template-columns: 1fr; }
  .project-index article { min-height: 280px; }
  .contact-actions .button { width: 100%; }
  .footer-links { grid-template-columns: 1fr; }
}

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

@media print {
  .top-signal, .site-header nav, .hero-actions, .contact-actions { display: none; }
  body { background: white; color: black; }
  .workbench { background: white; color: black; }
  .workbench p { color: #333; }
}
