:root {
  color-scheme: light;
  --black: #1a1d24;
  --graphite: #d8d0c0;
  --paper: #f5f1e7;
  --paper-soft: #504a42;
  --blueprint: #254c62;
  --oxide: #a04a2a;
  --safety: #b9851b;
  --sage: #7f9369;
  --line: rgba(26, 29, 36, 0.22);
  --grid: rgba(26, 29, 36, 0.075);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    radial-gradient(circle at 12% 20%, rgba(160, 74, 42, 0.08), transparent 26%),
    var(--paper);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
  color: var(--black);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 241, 231, 0.86);
  padding: 14px clamp(16px, 4vw, 54px);
  backdrop-filter: blur(18px);
}

.mark,
.topbar nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mark {
  min-width: 0;
  text-decoration: none;
}

.mark span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(242, 179, 61, 0.52);
  color: var(--oxide);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-weight: 900;
}

.mark b {
  color: var(--black);
  font-size: 14px;
}

.topbar nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar nav a {
  color: var(--paper-soft);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(290px, 430px);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  padding: clamp(70px, 10vh, 120px) clamp(16px, 5vw, 72px) 56px;
}

.hero-copy {
  display: grid;
  gap: 24px;
  max-width: 980px;
}

.eyebrow {
  margin: 0;
  color: var(--safety);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  max-width: 960px;
  color: var(--black);
  font-size: clamp(50px, 8vw, 118px);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  color: var(--black);
  font-size: clamp(32px, 4.4vw, 62px);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  color: var(--paper);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
}

.hero-lede,
.drafting-table p,
.section-head p,
.closing-card h2 {
  color: var(--paper-soft);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.48;
}

.hero-lede {
  max-width: 820px;
}

.hero-actions,
.meter-row,
.resume-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(242, 179, 61, 0.58);
  background: var(--black);
  color: var(--paper);
  padding: 12px 17px;
  font-weight: 900;
  text-decoration: none;
}

.button.ghost {
  border-color: rgba(244, 240, 230, 0.24);
  background: rgba(26, 29, 36, 0.045);
  color: var(--black);
}

.sheet-card-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 920px;
}

.sheet-card-row a {
  min-height: 168px;
  display: grid;
  align-content: space-between;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(26, 29, 36, 0.04), transparent 42%),
    rgba(245, 241, 231, 0.72);
  padding: 14px;
  text-decoration: none;
}

.sheet-card-row span,
.sheet-card-row small {
  color: var(--paper-soft);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sheet-card-row b {
  color: var(--black);
  font-size: 22px;
  line-height: 1.05;
}

.instrument-panel {
  position: relative;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(244, 240, 230, 0.2);
  background:
    linear-gradient(135deg, rgba(38, 79, 104, 0.12), rgba(245, 241, 231, 0.92)),
    repeating-linear-gradient(0deg, rgba(26, 29, 36, 0.05) 0, rgba(26, 29, 36, 0.05) 1px, transparent 1px, transparent 11px);
  padding: 18px;
  box-shadow: 16px 16px 0 rgba(160, 74, 42, 0.18);
}

.instrument-screen {
  min-height: 270px;
  display: grid;
  align-content: end;
  gap: 12px;
  border: 1px solid rgba(244, 240, 230, 0.2);
  background: rgba(26, 29, 36, 0.92);
  padding: 18px;
}

.screen-label,
.stamp,
.role-meta span,
.ledger-grid span {
  color: var(--oxide);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.instrument-screen strong {
  color: var(--paper);
  font-size: 36px;
  line-height: 0.96;
}

.instrument-screen p,
.photo-grid figcaption {
  color: #ded6c9;
  line-height: 1.55;
}

.role p,
.role li,
.ledger-grid p {
  color: var(--paper-soft);
  line-height: 1.55;
}

.meter-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.meter-row div {
  border: 1px solid rgba(244, 240, 230, 0.17);
  padding: 12px;
}

.meter-row span,
.meter-row b {
  display: block;
}

.meter-row span {
  color: var(--paper-soft);
  font-size: 12px;
  font-weight: 800;
}

.meter-row b {
  margin-top: 3px;
  color: var(--black);
  font-size: 22px;
}

.stamp {
  border: 1px solid rgba(242, 179, 61, 0.32);
  padding: 10px;
}

.title-block {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  border: 1px solid var(--line);
  background: rgba(245, 241, 231, 0.72);
}

.title-block span,
.title-block b {
  min-height: 34px;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 7px 9px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.title-block span {
  color: var(--paper-soft);
  font-weight: 900;
  text-transform: uppercase;
}

.title-block b {
  color: var(--black);
}

.proof-strip,
.drafting-table,
.experience,
.field-gallery,
.capabilities,
.ledger,
.closing-card {
  padding: clamp(56px, 8vw, 96px) clamp(16px, 5vw, 72px);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 240, 230, 0.045);
}

.proof-strip article {
  min-height: 250px;
  display: grid;
  align-content: end;
  gap: 12px;
  border-right: 1px solid var(--line);
  padding: 22px;
}

.proof-strip article:last-child {
  border-right: 0;
}

.proof-strip span {
  color: var(--oxide);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 42px;
  font-weight: 900;
}

.proof-strip strong {
  color: var(--black);
  font-size: 24px;
  line-height: 1.08;
}

.proof-strip p {
  color: var(--paper-soft);
  line-height: 1.5;
}

.drafting-table,
.capabilities {
  display: grid;
  grid-template-columns: minmax(240px, 0.44fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.section-head {
  max-width: 900px;
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.role {
  position: relative;
  min-height: 430px;
  display: grid;
  align-content: start;
  border: 1px solid rgba(244, 240, 230, 0.16);
  background: rgba(255, 253, 246, 0.56);
  padding: 22px;
  overflow: hidden;
}

.role::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px auto;
  width: 86px;
  height: 86px;
  border: 1px solid var(--line);
  background:
    linear-gradient(45deg, transparent 48%, rgba(244, 240, 230, 0.16) 49%, rgba(244, 240, 230, 0.16) 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(244, 240, 230, 0.16) 49%, rgba(244, 240, 230, 0.16) 51%, transparent 52%);
  opacity: 0.72;
}

.role.cad {
  border-color: rgba(38, 79, 104, 0.62);
}

.role.water {
  border-color: rgba(127, 147, 105, 0.58);
}

.role.field {
  border-color: rgba(179, 84, 62, 0.62);
}

.role.ai {
  border-color: rgba(242, 179, 61, 0.48);
}

.role-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
}

.role-meta b {
  color: var(--paper-soft);
  font-size: 12px;
}

.org {
  color: var(--safety);
  font-weight: 850;
}

.role ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.field-gallery {
  background: #11150f;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  grid-auto-rows: 310px;
  gap: 14px;
}

.photo-grid figure {
  position: relative;
  margin: 0;
  border: 1px solid rgba(244, 240, 230, 0.16);
  overflow: hidden;
  background: var(--graphite);
}

.photo-grid .wide {
  grid-row: span 2;
}

.photo-grid img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.photo-grid figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: rgba(26, 29, 36, 0.86);
  border: 1px solid rgba(244, 240, 230, 0.18);
  padding: 10px;
  font-size: 13px;
  backdrop-filter: blur(8px);
}

.chip-board {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-board span {
  border: 1px solid rgba(244, 240, 230, 0.16);
  background: rgba(255, 253, 246, 0.58);
  color: var(--black);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 850;
}

.ledger {
  background:
    linear-gradient(90deg, rgba(245, 241, 231, 0.92), rgba(38, 79, 104, 0.12)),
    var(--paper);
}

.ledger-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ledger-grid article {
  min-height: 260px;
  border: 1px solid rgba(244, 240, 230, 0.15);
  background: rgba(255, 253, 246, 0.58);
  padding: 18px;
}

.ledger-grid .ready {
  border-color: rgba(127, 147, 105, 0.56);
}

.ledger-grid .verify {
  border-color: rgba(242, 179, 61, 0.48);
}

.ledger-grid .private {
  border-color: rgba(179, 84, 62, 0.56);
}

.closing-card {
  min-height: 64vh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 22px;
  border-top: 1px solid var(--line);
}

.closing-card h2 {
  max-width: 1100px;
  color: var(--black);
  font-size: clamp(38px, 6vw, 86px);
  line-height: 0.95;
}

@media (max-width: 980px) {
  .hero,
  .drafting-table,
  .capabilities,
  .proof-strip,
  .timeline,
  .ledger-grid,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .proof-strip article {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .photo-grid {
    grid-auto-rows: auto;
  }

  .photo-grid .wide {
    grid-row: auto;
  }

  .photo-grid img {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar nav {
    justify-content: flex-start;
  }

  .meter-row {
    grid-template-columns: 1fr;
  }

  .instrument-panel {
    box-shadow: 8px 8px 0 rgba(160, 74, 42, 0.18);
  }

  .sheet-card-row {
    grid-template-columns: 1fr;
  }
}

/* Selected work keeps the drafting-table language with readable case detail. */
.case-section{padding:48px clamp(16px,4vw,54px);scroll-margin-top:90px}.case-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.case-study{padding:28px;background:rgba(255,255,255,.64);border:1px solid var(--line);border-top:3px solid var(--blueprint);scroll-margin-top:90px}.case-label{font:700 12px ui-monospace,monospace;color:var(--blueprint);display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap}.case-study h3{font-size:clamp(23px,2.5vw,32px);line-height:1.15;margin:24px 0 12px}.case-tools{font-size:13px;color:var(--paper-soft)}.case-study dl{margin:24px 0}.case-study dt{font-weight:750;margin-top:18px}.case-study dd{margin:6px 0 0;line-height:1.65;max-width:66ch}.case-study details{border-top:1px solid var(--line);padding-top:14px;font-size:13px;line-height:1.6}.case-study summary{cursor:pointer;font-weight:650}a:focus-visible,summary:focus-visible{outline:3px solid var(--blueprint);outline-offset:4px}@media(max-width:760px){.case-grid{grid-template-columns:1fr}.case-study{padding:22px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Readable headings on paper cards; deliberate inverse text on dark photos. */
h3,.case-study h3,.role h3,.ledger-grid h3{color:var(--black)}
.field-gallery h2,.field-gallery .section-head p,.photo-grid figcaption{color:#f5f1e7}
.org{color:#76530f}

.portfolio-video{width:100%;max-width:1100px;aspect-ratio:16/9;background:#0b0f12}
