:root {
  --paper: #f3f0e8;
  --paper-2: #e9e5da;
  --ink: #111a1d;
  --muted: #5f696b;
  --line: #cbc7bb;
  --blue: #2454d3;
  --orange: #e85c2c;
  --deep: #10252a;
  --white: #fffef9;
  --shell: min(1180px, calc(100vw - 48px));
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }

.shell { width: var(--shell); margin-inline: auto; }

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

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

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(17, 26, 29, .16);
  background: rgba(243, 240, 232, .94);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 720;
  letter-spacing: -.02em;
}

.monogram {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: -.08em;
}

nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 650; }
nav a:not(.nav-cta):hover { color: var(--blue); }

.nav-cta {
  padding: 8px 13px;
  border: 1px solid var(--ink);
}

.nav-cta:hover { color: var(--white); background: var(--ink); }

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr);
  align-items: center;
  gap: clamp(56px, 8vw, 120px);
  padding-block: 112px 104px;
}

.eyebrow,
.project-meta,
.proof-heading {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.eyebrow { margin-bottom: 22px; color: var(--muted); }

.status-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 9px;
  border-radius: 50%;
  background: #22a36a;
  box-shadow: 0 0 0 4px rgba(34, 163, 106, .12);
}

h1, h2, h3 { margin: 0; line-height: 1.05; }

h1 {
  max-width: 790px;
  font-family: var(--serif);
  font-size: clamp(58px, 7.5vw, 104px);
  font-weight: 500;
  letter-spacing: -.065em;
}

.hero-lede {
  max-width: 720px;
  margin-top: 34px;
  color: #394548;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.5;
  letter-spacing: -.018em;
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 700;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--ink); }
.button-primary:hover { background: var(--blue); border-color: var(--blue); }
.button-quiet:hover { color: var(--white); background: var(--ink); }

.hero-proof { border-top: 3px solid var(--ink); }
.proof-heading { display: flex; justify-content: space-between; padding: 12px 0; color: var(--muted); border-bottom: 1px solid var(--line); }
.proof-row { display: grid; grid-template-columns: 100px 1fr; gap: 22px; align-items: baseline; padding: 19px 0; border-bottom: 1px solid var(--line); }
.proof-row strong { font-family: var(--serif); font-size: 32px; font-weight: 500; letter-spacing: -.04em; }
.proof-row span { color: var(--muted); font-size: 13px; line-height: 1.45; }

.scope-strip { border-block: 1px solid var(--ink); }
.scope-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.scope-grid span { padding: 17px 20px; text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; border-right: 1px solid var(--ink); }
.scope-grid span:first-child { border-left: 1px solid var(--ink); }

.section { padding-block: 118px; }

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .55fr);
  gap: 80px;
  align-items: end;
  margin-bottom: 58px;
}

.section-heading h2,
.about-grid h2,
.contact-inner h2 {
  max-width: 760px;
  font-family: var(--serif);
  font-size: clamp(42px, 5.2vw, 70px);
  font-weight: 500;
  letter-spacing: -.052em;
}

.section-heading > p { max-width: 450px; color: var(--muted); font-size: 16px; }

.feature-project {
  background: var(--white);
  border: 1px solid var(--line);
}

.figure-button {
  width: 100%;
  display: block;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: inherit;
  background: #eae8e0;
  border: 0;
  border-radius: 0;
  cursor: zoom-in;
}

.figure-button img { width: 100%; height: auto; transition: transform .25s ease; }
.figure-button:hover img { transform: scale(1.008); }
.feature-visual { aspect-ratio: 1600 / 660; border-bottom: 1px solid var(--line); }
.feature-copy { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 100px); padding: clamp(34px, 5vw, 64px); }
.project-meta { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); }

.feature-copy h3,
.project-card h3 {
  margin-top: 30px;
  font-family: var(--serif);
  font-size: clamp(31px, 3.2vw, 45px);
  font-weight: 500;
  letter-spacing: -.04em;
}

.feature-detail p { color: #465154; }
.feature-detail p + p { margin-top: 18px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 30px; padding: 0; list-style: none; }
.tag-list li { padding: 6px 10px; border: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 10px; text-transform: uppercase; }

.text-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--blue);
  font-size: 14px;
  font-weight: 750;
}

.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.project-actions { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 22px; }

.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 22px; }
.project-card { min-height: 500px; border: 1px solid var(--line); background: var(--white); }
.project-card .card-body { padding: clamp(30px, 4vw, 48px); }
.project-card p { margin-top: 20px; color: #465154; }
.project-card-visual { grid-column: 1 / -1; min-height: 0; }
.card-image { aspect-ratio: 1600 / 502; border-bottom: 1px solid var(--line); background: #ece9e2; }
.security-image { aspect-ratio: 1200 / 640; border-bottom: 1px solid rgba(255, 255, 255, .16); background: #0b1220; }
.evidence-image { aspect-ratio: 1200 / 640; border-bottom: 1px solid var(--line); background: #0b1820; }
.project-card-copy { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 100px); }
.project-card-copy h3 { max-width: 520px; }
.project-card-copy > div:last-child > p:first-child { margin-top: 0; }

.project-card-dark { color: var(--white); background: var(--deep); border-color: var(--deep); }
.project-card-dark .project-meta, .project-card-dark p { color: #b9c6c6; }
.project-card-dark .honesty-note { border-color: rgba(255, 255, 255, .22); }
.project-card-dark .honesty-note span { color: #ff9a73; }

.mini-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 30px; border-block: 1px solid rgba(255, 255, 255, .24); }
.mini-metrics div { padding: 18px 12px 18px 0; border-right: 1px solid rgba(255, 255, 255, .24); }
.mini-metrics div:last-child { padding-left: 14px; border-right: 0; }
.mini-metrics div:nth-child(2) { padding-left: 14px; }
.mini-metrics strong, .mini-metrics span { display: block; }
.mini-metrics strong { font-family: var(--serif); font-size: 28px; font-weight: 500; }
.mini-metrics span { margin-top: 3px; color: #9cadad; font-size: 11px; }

.honesty-note { padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; }
.honesty-note span { display: block; margin-bottom: 4px; color: #b83d18; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }

.system-flow { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto; align-items: center; gap: 10px; margin-top: 42px; padding-block: 22px; border-block: 1px solid var(--line); }
.system-flow span { font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.system-flow i { height: 1px; background: var(--ink); position: relative; }
.system-flow i::after { content: ""; position: absolute; top: -3px; right: 0; width: 7px; height: 7px; border-top: 1px solid; border-right: 1px solid; transform: rotate(45deg); }

.section-tinted { background: var(--paper-2); border-block: 1px solid var(--line); }
.section-tinted .eyebrow, .section-tinted .role-main > p:last-child { color: #535d5f; }
.section-tinted .section-heading .text-link { align-self: end; justify-self: end; }
.timeline { border-top: 2px solid var(--ink); }
.role { display: grid; grid-template-columns: 150px minmax(300px, 1fr) minmax(220px, .55fr); gap: 44px; padding: 34px 0 38px; border-bottom: 1px solid #bcb8ac; }
.role-when { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.role-org { margin-bottom: 6px; color: var(--blue); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.role h3 { font-family: var(--serif); font-size: 28px; font-weight: 500; letter-spacing: -.025em; }
.role-main > p:last-child { max-width: 650px; margin-top: 13px; color: var(--muted); }
.role ul { margin: 0; padding: 0; list-style: none; }
.role li { padding: 8px 0; border-bottom: 1px solid #c7c3b8; font-family: var(--mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }

.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px 100px; }
.about-copy { padding-top: 45px; font-size: 18px; }
.about-copy p + p { margin-top: 20px; color: var(--muted); }
.practice-list { grid-column: 2; margin: 30px 0 0; border-top: 2px solid var(--ink); }
.practice-list div { display: grid; grid-template-columns: 130px 1fr; gap: 28px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.practice-list dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; }
.practice-list dd { margin: 0; color: var(--muted); }

.education { display: grid; grid-template-columns: .55fr 1fr 1fr; gap: 44px; align-items: start; margin-top: 100px; padding-top: 28px; border-top: 2px solid var(--ink); }
.education .eyebrow { margin: 0; }
.education strong, .education span { display: block; }
.education strong { font-family: var(--serif); font-size: 20px; font-weight: 500; }
.education span { margin-top: 7px; color: var(--muted); font-size: 13px; }

.contact-section { color: var(--white); background: var(--blue); }
.contact-inner { padding-block: 100px; }
.contact-inner .eyebrow { color: #d8e0ff; }
.contact-inner h2 { max-width: 900px; }
.contact-inner > p:not(.eyebrow) { max-width: 680px; margin-top: 26px; color: #d8e0ff; font-size: 18px; }
.contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; margin-top: 38px; font-size: 14px; font-weight: 700; }
.button-light { color: var(--blue); background: var(--white); border-color: var(--white); }
.button-light:hover { color: var(--white); background: var(--ink); border-color: var(--ink); }
.contact-links > a:not(.button):hover { text-decoration: underline; text-underline-offset: 5px; }

.site-footer { color: #b9c5c5; background: #0b171a; }
.site-footer .shell { display: flex; justify-content: space-between; gap: 30px; padding-block: 24px; font-size: 12px; }

.lightbox {
  width: min(96vw, 1680px);
  max-width: none;
  max-height: 96vh;
  padding: 46px 18px 14px;
  overflow: auto;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--ink);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .34);
}

.lightbox::backdrop { background: rgba(7, 15, 18, .84); }
.lightbox img { width: 100%; max-height: calc(96vh - 85px); object-fit: contain; }
.lightbox p { margin-top: 8px; color: var(--muted); font-family: var(--mono); font-size: 10px; text-align: center; text-transform: uppercase; }
.lightbox-close { position: absolute; top: 9px; right: 12px; padding: 4px 8px; color: var(--ink); background: transparent; border: 0; font: 700 12px/1.4 var(--sans); cursor: pointer; }
.lightbox-close span { margin-left: 4px; font-size: 18px; vertical-align: -1px; }

.not-found {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: 80px;
}

.not-found h1 { max-width: 900px; }
.not-found > p:not(.eyebrow) { max-width: 560px; margin: 28px 0; color: var(--muted); font-size: 19px; }

@media (max-width: 980px) {
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 70px; padding-block: 90px; }
  .hero-copy { max-width: 820px; }
  .hero-proof { max-width: 620px; }
  .role { grid-template-columns: 115px 1fr; }
  .role > ul { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; }
  .role li { padding: 6px 9px; border: 1px solid #c7c3b8; }
}

@media (max-width: 760px) {
  :root { --shell: min(100% - 30px, 1180px); }
  html { scroll-padding-top: 65px; }
  .header-inner { min-height: 62px; }
  .wordmark > span:last-child { display: none; }
  nav { gap: 16px; font-size: 12px; }
  nav a[href="#about"] { display: none; }
  .nav-cta { padding: 6px 9px; }
  .hero { padding-block: 72px 78px; }
  h1 { font-size: clamp(52px, 17vw, 76px); }
  .hero-lede { font-size: 18px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .scope-grid { grid-template-columns: repeat(2, 1fr); }
  .scope-grid span { border-bottom: 1px solid var(--ink); }
  .scope-grid span:nth-child(odd) { border-left: 1px solid var(--ink); }
  .scope-grid span:nth-child(3), .scope-grid span:nth-child(4) { border-bottom: 0; }
  .section { padding-block: 82px; }
  .section-heading { grid-template-columns: 1fr; gap: 28px; margin-bottom: 42px; }
  .section-heading h2, .about-grid h2, .contact-inner h2 { font-size: clamp(40px, 12vw, 55px); }
  .feature-copy, .project-card-copy { grid-template-columns: 1fr; gap: 28px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 0; }
  .mini-metrics { grid-template-columns: 1fr 1fr; }
  .mini-metrics div:nth-child(2) { border-right: 0; }
  .mini-metrics div:last-child { grid-column: 1 / -1; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, .24); }
  .system-flow { grid-template-columns: 1fr; gap: 8px; }
  .system-flow i { width: 1px; height: 18px; margin-left: 10px; }
  .system-flow i::after { top: auto; right: -3px; bottom: 0; transform: rotate(135deg); }
  .section-tinted .section-heading .text-link { justify-self: start; }
  .role { grid-template-columns: 1fr; gap: 12px; }
  .role > ul { grid-column: 1; margin-top: 10px; }
  .about-grid { grid-template-columns: 1fr; gap: 20px; }
  .about-copy { padding-top: 10px; }
  .practice-list { grid-column: 1; }
  .practice-list div { grid-template-columns: 1fr; gap: 6px; }
  .education { grid-template-columns: 1fr; gap: 28px; margin-top: 70px; }
  .contact-links { align-items: flex-start; }
  .contact-links .button { flex-basis: 100%; }
  .site-footer .shell { flex-direction: column; gap: 5px; }
}

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

@media print {
  .site-header, .scope-strip, .hero-actions, .contact-section, .site-footer { display: none; }
  body { background: white; }
  .hero { min-height: auto; padding-block: 32px; }
  .section { padding-block: 32px; }
}
