:root {
  --paper: #f4f1ea;
  --paper-deep: #e9e4da;
  --surface: #faf9f5;
  --ink: #171715;
  --muted: #65645e;
  --line: #cbc6ba;
  --accent: #8d2e25;
  --accent-soft: #ead9d5;
  --dark: #1c1d1a;
  --dark-muted: #b8b6ad;
  --max: 1220px;
  --serif: Georgia, "Times New Roman", 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 {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(23, 23, 21, .055) .6px, transparent .6px);
  background-size: 6px 6px;
  content: "";
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }

.wrap {
  width: min(var(--max), calc(100% - 56px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  top: -80px;
  left: 18px;
  z-index: 100;
  padding: 11px 14px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
}

.skip:focus { top: 18px; }

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

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(203, 198, 186, .92);
  background: rgba(244, 241, 234, .9);
  backdrop-filter: blur(18px);
}

.nav__inner {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 28px;
}

.brand {
  min-width: 48px;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.06em;
}

.brand span { color: var(--accent); }

.nav__links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.nav__links a,
.control {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.nav__links a { padding: 12px 0; }
.nav__links a:hover,
.control:hover { color: var(--ink); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.control {
  min-width: 40px;
  padding: 10px;
  border: 1px solid var(--line);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: transform .18s ease, background .18s ease;
}

.button:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.button--small {
  min-height: 38px;
  padding: 9px 14px;
}

.text-link {
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  font-size: 12px;
  font-weight: 700;
}

.text-link:hover { color: var(--accent); }

.eyebrow,
.kicker,
.evidence-label,
.case-panel__number {
  margin: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.045em;
}

h1 i,
h2 i {
  color: var(--accent);
  font-weight: 400;
}

.hero { padding: 76px 0 70px; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}

.hero__copy { padding-top: 10px; }

.hero h1 {
  max-width: 820px;
  margin-top: 22px;
  font-size: clamp(50px, 6.7vw, 88px);
  line-height: .96;
}

.hero__role {
  margin: 28px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
}

.hero__lead {
  max-width: 770px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 35px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.hero__meta li {
  position: relative;
  color: var(--muted);
  font-size: 11px;
}

.hero__meta li + li::before {
  position: absolute;
  left: -12px;
  color: var(--accent);
  content: "/";
}

.portrait { position: relative; }

.portrait__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-deep);
}

.portrait__frame::after {
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(255,255,255,.55);
  content: "";
  pointer-events: none;
}

.portrait__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 23%;
  filter: saturate(.72) contrast(1.03);
}

.portrait__note {
  position: absolute;
  right: -18px;
  bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  width: min(310px, calc(100% - 20px));
  padding: 17px;
  border: 1px solid var(--line);
  background: rgba(250, 249, 245, .94);
  box-shadow: 0 18px 55px rgba(23, 23, 21, .14);
  backdrop-filter: blur(12px);
}

.status-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.portrait__note b,
.portrait__note small { display: block; }
.portrait__note b { font-size: 12px; }
.portrait__note small { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.45; }

.proof {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(250, 249, 245, .4);
}

.proof__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.proof__grid div {
  min-width: 0;
  padding: 25px 20px;
  border-right: 1px solid var(--line);
}

.proof__grid div:first-child { padding-left: 0; }
.proof__grid div:last-child { padding-right: 0; border-right: 0; }

.proof__grid strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 400;
  line-height: 1;
}

.proof__grid span {
  display: block;
  max-width: 190px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.proof__note {
  margin: 0;
  padding: 12px 0 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.section { padding: 94px 0; }
.section--tint { background: var(--paper-deep); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 60px;
  align-items: end;
  margin-bottom: 45px;
}

.section-head--compact { align-items: center; }

.section-head h2,
.contact-card h2,
.credentials > div:first-child h2 {
  max-width: 820px;
  margin-top: 15px;
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1;
}

.section-head > p,
.section-head__aside p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.section-head__aside p { margin-top: 12px; }

.case-grid {
  display: grid;
  grid-template-columns: 1.25fr .875fr .875fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.case-panel {
  min-height: 315px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(250, 249, 245, .25);
}

.case-panel--lead { background: var(--surface); }

.case-panel h3 {
  max-width: 480px;
  margin: 58px 0 16px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.15;
}

.case-panel p:not(.case-panel__number),
.case-panel li {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.case-panel ul {
  margin: 0;
  padding-left: 18px;
}

.case-panel li + li { margin-top: 8px; }

.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  margin-top: 20px;
  border: 1px solid var(--line);
  background: var(--dark);
  color: #efede6;
}

.flow > div { padding: 21px; }
.flow > span { align-self: center; color: #77766f; }
.flow small,
.flow b { display: block; }
.flow small { color: #9c9a91; font-family: var(--mono); font-size: 8px; letter-spacing: .1em; }
.flow b { margin-top: 8px; font-size: 11px; font-weight: 600; line-height: 1.45; }

.capabilities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.capabilities article {
  min-height: 290px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(250, 249, 245, .28);
}

.capabilities article > span {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 10px;
}

.capabilities h3 {
  margin: 72px 0 12px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
}

.capabilities p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.featured { display: grid; gap: 16px; }

.project {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  border: 1px solid var(--line);
  background: rgba(250, 249, 245, .35);
}

.project__meta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  padding: 27px;
  border-right: 1px solid var(--line);
}

.project__index,
.project__status {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.project__index { color: var(--accent); }
.project__status { display: block; margin-top: 8px; color: var(--muted); line-height: 1.5; }

.project h3 {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.05;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 24px 0;
}

.tags span {
  padding: 5px 7px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8px;
}

.project__body { padding: 29px; }

.project__summary {
  max-width: 780px;
  margin: 0 0 33px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.45;
}

.project__evidence {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project__evidence div {
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.project__evidence b {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project__evidence p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.more-work { margin-top: 50px; }

.more-work__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.selected { display: grid; grid-template-columns: repeat(2, 1fr); }

.work {
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr) auto;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.work:nth-child(odd) { padding-right: 25px; }
.work:nth-child(even) { padding-left: 25px; border-left: 1px solid var(--line); }
.work small { color: var(--accent); font-family: var(--mono); font-size: 8px; line-height: 1.45; }
.work h3 { margin: 0 0 7px; font-size: 13px; }
.work p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.work a { font-size: 10px; font-weight: 700; }

.section--ink {
  background: var(--dark);
  color: #f1efe8;
}

.section--ink .kicker,
.section--ink h2 i { color: #ed9d91; }

.section-head--inverse > p,
.section-head--inverse .section-head__aside p { color: var(--dark-muted); }

.timeline { border-top: 1px solid #41423d; }

.timeline article {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  gap: 34px;
  padding: 31px 0;
  border-bottom: 1px solid #41423d;
}

.timeline time {
  padding-top: 5px;
  color: #a8a69e;
  font-family: var(--mono);
  font-size: 10px;
}

.timeline__title {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: baseline;
}

.timeline h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
}

.timeline__title span { color: #aaa89f; font-size: 10px; text-align: right; }

.timeline article p {
  max-width: 800px;
  margin: 15px 0 0;
  color: #cbc9c1;
  font-size: 12px;
  line-height: 1.75;
}

.independent {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 32px;
  padding: 29px;
  border: 1px solid #41423d;
}

.independent span { color: #aaa89f; font-family: var(--mono); font-size: 9px; }
.independent h3 { margin: 10px 0 0; font-family: var(--serif); font-size: 24px; font-weight: 400; }
.independent p { margin: 0; color: #aaa89f; font-size: 11px; line-height: 1.7; }

.method {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  list-style: none;
}

.method li {
  min-height: 235px;
  padding: 27px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.method span { display: block; color: var(--accent); font-family: var(--mono); font-size: 9px; }
.method b { display: block; margin-top: 55px; font-family: var(--serif); font-size: 23px; font-weight: 400; }
.method p { margin: 11px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }

.credentials {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
  align-items: start;
}

.credentials__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.credentials__grid article {
  min-height: 190px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.credentials__grid small { color: var(--accent); font-family: var(--mono); font-size: 8px; letter-spacing: .08em; }
.credentials__grid h3 { margin: 35px 0 8px; font-family: var(--serif); font-size: 21px; font-weight: 400; }
.credentials__grid p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }

.contact-section { padding-bottom: 110px; }

.contact-card {
  position: relative;
  padding: 58px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.contact-card::after {
  position: absolute;
  right: -70px;
  bottom: -130px;
  width: 360px;
  height: 360px;
  border: 1px solid var(--accent-soft);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(234, 217, 213, .25), 0 0 0 80px rgba(234, 217, 213, .15);
  content: "";
  pointer-events: none;
}

.contact-card h2 { position: relative; z-index: 1; max-width: 850px; margin-top: 16px; }
.contact-card > p:not(.kicker) { position: relative; z-index: 1; max-width: 680px; color: var(--muted); font-size: 13px; line-height: 1.7; }

.contact-card__links {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 21px;
  margin-top: 29px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 25px 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 1050px) {
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
  .hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 45px; }
  .proof__grid { grid-template-columns: repeat(3, 1fr); }
  .proof__grid div { border-bottom: 1px solid var(--line); }
  .proof__grid div:nth-child(3) { border-right: 0; }
  .proof__grid div:nth-child(n+4) { border-bottom: 0; }
  .proof__grid div:nth-child(4) { padding-left: 0; }
  .case-grid { grid-template-columns: 1fr 1fr; }
  .case-panel--lead { grid-column: 1 / -1; min-height: 260px; }
  .capabilities { grid-template-columns: repeat(2, 1fr); }
  .selected { grid-template-columns: 1fr; }
  .work:nth-child(n) { padding-left: 0; padding-right: 0; border-left: 0; }
  .credentials { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  .wrap { width: min(var(--max), calc(100% - 30px)); }
  .hero { padding: 55px 0 50px; }
  .hero__grid,
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .hero__copy,
  .portrait,
  .section-head > * { min-width: 0; }
  .hero__grid { gap: 38px; }
  .hero h1 { font-size: clamp(43px, 12vw, 60px); }
  .hero__lead { font-size: 15px; }
  .portrait { max-width: 480px; }
  .portrait__note { right: -4px; }
  .proof__grid { grid-template-columns: 1fr 1fr; }
  .proof__grid div:nth-child(n) { padding: 20px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .proof__grid div:nth-child(odd) { padding-left: 0; }
  .proof__grid div:nth-child(even) { border-right: 0; }
  .proof__grid div:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .section { padding: 70px 0; }
  .section-head { gap: 22px; }
  .section-head h2,
  .contact-card h2,
  .credentials > div:first-child h2 { font-size: clamp(38px, 11vw, 52px); }
  .case-grid,
  .capabilities,
  .credentials__grid,
  .method { grid-template-columns: 1fr; }
  .case-panel--lead { grid-column: auto; }
  .case-panel { min-height: auto; }
  .case-panel h3 { margin-top: 42px; }
  .flow { grid-template-columns: 1fr; }
  .flow > span { display: none; }
  .flow > div:not(:first-child) { border-top: 1px solid #41423d; }
  .capabilities article,
  .method li { min-height: auto; }
  .capabilities h3,
  .method b { margin-top: 42px; }
  .project { grid-template-columns: 1fr; }
  .project__meta { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .project__meta .tags { margin-bottom: 16px; }
  .project__evidence { grid-template-columns: 1fr; }
  .work { grid-template-columns: 110px minmax(0, 1fr) auto; }
  .timeline article { grid-template-columns: 1fr; gap: 13px; }
  .timeline__title { display: block; }
  .timeline__title span { display: block; margin-top: 8px; text-align: left; }
  .independent { grid-template-columns: 1fr; gap: 22px; }
  .contact-card { padding: 34px 24px; }
  .footer__inner { flex-direction: column; }
}

@media (max-width: 480px) {
  .nav__inner { gap: 8px; }
  .control--print { display: none; }
  .button--small { padding-inline: 11px; }
  .hero__actions { align-items: flex-start; flex-direction: column; gap: 15px; }
  .hero__meta { display: grid; gap: 8px; }
  .hero__meta li + li::before { display: none; }
  .proof__grid { grid-template-columns: 1fr; }
  .proof__grid div:nth-child(n) { grid-column: auto; padding-left: 0; border-right: 0; }
  .work { grid-template-columns: 1fr auto; }
  .work small { grid-column: 1 / -1; }
  .contact-card__links { align-items: flex-start; flex-direction: column; }
}

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

@media print {
  :root { --paper: #fff; --surface: #fff; --ink: #000; --muted: #222; --line: #999; --accent: #000; }
  @page { size: A4; margin: 14mm; }
  body { background: #fff; color: #000; font-family: "Times New Roman", serif; font-size: 11pt; }
  body::before,
  .nav,
  .hero__actions,
  .portrait,
  .more-work,
  .contact-section,
  footer { display: none !important; }
  .wrap { width: 100%; }
  .hero,
  .section { padding: 22px 0; }
  .hero__grid,
  .section-head,
  .project,
  .timeline article,
  .credentials { display: block; }
  .hero h1 { font-size: 34pt; }
  .hero__lead { font-size: 11pt; }
  .proof__grid { grid-template-columns: repeat(5, 1fr); }
  .proof__grid div { padding: 10px; border-bottom: 0; }
  .proof__grid strong { font-size: 18pt; }
  .case-grid,
  .capabilities,
  .method,
  .credentials__grid { grid-template-columns: repeat(2, 1fr); }
  .case-panel,
  .capabilities article,
  .method li,
  .credentials__grid article { min-height: auto; break-inside: avoid; }
  .flow { background: #fff; color: #000; }
  .project { break-inside: avoid; margin-bottom: 12px; }
  .project__meta { min-height: auto; }
  .project__evidence { grid-template-columns: repeat(3, 1fr); }
  .section--ink { background: #fff; color: #000; }
  .timeline article,
  .timeline { border-color: #999; }
  .timeline article p,
  .timeline__title span,
  .timeline time,
  .independent p { color: #222; }
}
