:root {
  --ink: #102234;
  --navy: #082b4c;
  --blue: #145c7d;
  --paper: #f7f4ed;
  --white: #fffdf8;
  --gold: #ba8731;
  --mist: #dce7e7;
  --line: rgba(16, 34, 52, .2);
  --muted: #53616b;
  --max: 1240px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
p { margin: 0 0 1.25rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(3.3rem, 8vw, 7.5rem); letter-spacing: -.055em; }
h2 { font-size: clamp(2.4rem, 5vw, 4.8rem); letter-spacing: -.04em; }
h3 { font-size: clamp(1.55rem, 2.5vw, 2.35rem); letter-spacing: -.025em; }

.skip { position: fixed; left: 1rem; top: -5rem; padding: .75rem 1rem; background: var(--ink); color: white; z-index: 100; }
.skip:focus { top: 1rem; }
.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--line); }
.nav-wrap { max-width: var(--max); margin: auto; min-height: 88px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; gap: 1rem; align-items: center; text-decoration: none; font-weight: 650; letter-spacing: -.01em; }
.monogram { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font: 600 1rem var(--serif); }
.nav-links { display: flex; align-items: center; gap: 2rem; font-size: .91rem; }
.nav-links a { text-decoration: none; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--blue); }
.nav-contact { border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.menu-button { display: none; background: none; border: 0; font: inherit; color: inherit; }

.eyebrow { text-transform: uppercase; letter-spacing: .15em; font-size: .74rem; font-weight: 700; color: var(--blue); }
.hero { max-width: var(--max); margin: auto; min-height: calc(100vh - 89px); padding: clamp(5rem, 11vh, 9rem) 32px 4rem; display: flex; flex-direction: column; justify-content: space-between; }
.hero-copy { max-width: 1100px; }
.hero h1 { max-width: 1000px; margin: 1.2rem 0 2rem; }
.hero-intro { max-width: 720px; margin-left: min(24vw, 300px); font-size: clamp(1.08rem, 1.5vw, 1.35rem); color: var(--muted); }
.hero-foot { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-top: 5rem; }
.text-link { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: .2rem; font-weight: 650; }
.text-link::after { content: '↗'; font-size: 1.05em; }
.scroll-note { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.section { padding: clamp(5rem, 11vw, 10rem) 32px; }
.section-inner { max-width: var(--max); margin: auto; }
.section-head { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; margin-bottom: clamp(3.5rem, 7vw, 7rem); }
.section-head p { max-width: 650px; font-size: 1.12rem; color: var(--muted); }
.dark { background: var(--ink); color: var(--white); }
.dark .eyebrow, .dark .muted { color: #a9c6cc; }
.dark .text-link { border-color: currentColor; }
.white { background: var(--white); }

.project { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); border-top: 1px solid currentColor; padding: 2rem 0 7rem; gap: clamp(2.5rem, 7vw, 7rem); }
.project:last-child { padding-bottom: 0; }
.project-number { font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; opacity: .7; margin-bottom: 3rem; }
.project h3 { font-size: clamp(2.3rem, 4.8vw, 4.7rem); margin-bottom: 1.5rem; }
.project-summary { max-width: 610px; font-size: 1.12rem; color: var(--muted); }
.dark .project-summary { color: #c8d2d6; }
.project-meta { align-self: end; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 2.2rem 0; }
.dark .metric-row { border-color: rgba(255,255,255,.25); }
.metric { padding: 1.25rem 1rem 1.25rem 0; }
.metric strong { display: block; font: 500 clamp(1.4rem, 3vw, 2.4rem) var(--serif); }
.metric span { display: block; margin-top: .25rem; font-size: .74rem; line-height: 1.35; color: var(--muted); }
.dark .metric span { color: #abc0c6; }

.principle { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; align-items: start; }
.principle-statement { font: 500 clamp(2.3rem, 5vw, 5.2rem)/1.05 var(--serif); letter-spacing: -.04em; }
.principle-copy { max-width: 700px; margin-left: auto; font-size: 1.13rem; }
.path { margin-top: 5rem; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.path-step { padding: 2rem clamp(1rem, 2vw, 2rem) 2.2rem 0; }
.path-step + .path-step { border-left: 1px solid var(--line); padding-left: clamp(1rem, 2vw, 2rem); }
.path-step span { display: block; color: var(--gold); font-weight: 700; margin-bottom: .7rem; }
.path-step strong { font-family: var(--serif); font-size: 1.35rem; }

.evidence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.evidence-card { background: var(--paper); min-height: 460px; padding: clamp(2rem, 5vw, 4rem); display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; }
.evidence-card:hover { background: var(--mist); }
.evidence-card h3 { max-width: 500px; margin: 1.4rem 0; }
.evidence-card p { max-width: 520px; color: var(--muted); }
.card-arrow { font-size: 1.6rem; align-self: end; }

.scale-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 4rem; border-top: 1px solid var(--line); }
.scale-item { padding: 2rem 2rem 0 0; }
.scale-item + .scale-item { border-left: 1px solid var(--line); padding-left: 2rem; }
.scale-item strong { display: block; font: 500 clamp(2.5rem, 5vw, 5rem) var(--serif); letter-spacing: -.05em; color: var(--navy); }
.scale-item span { display: block; max-width: 220px; font-size: .83rem; color: var(--muted); }

.closing { padding: clamp(6rem, 14vw, 13rem) 32px 4rem; }
.closing h2 { max-width: 1000px; margin: 1.5rem 0 3rem; }
.footer { max-width: var(--max); margin: auto; padding: 2rem 32px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .8rem; }

.page-hero { max-width: var(--max); margin: auto; padding: clamp(5rem, 10vw, 9rem) 32px clamp(4rem, 8vw, 7rem); }
.page-hero h1 { max-width: 1050px; margin: 1.4rem 0 2.2rem; font-size: clamp(3.4rem, 7vw, 7rem); }
.page-lede { max-width: 760px; font-size: clamp(1.1rem, 1.8vw, 1.4rem); color: var(--muted); }
.case-meta { max-width: var(--max); margin: auto; padding: 0 32px 3rem; display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.case-meta div { padding-right: 2rem; }
.case-meta span { display: block; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .5rem; }
.case-meta strong { font-weight: 550; }
.case-band { background: var(--navy); color: white; }
.case-band-inner { max-width: var(--max); margin: auto; padding: 3rem 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.case-band strong { display: block; font: 500 clamp(1.8rem, 4vw, 3.7rem) var(--serif); }
.case-band span { display: block; color: #b8d0d6; font-size: .78rem; max-width: 190px; }
.chapter { max-width: 900px; margin: auto; padding: clamp(5rem, 10vw, 9rem) 32px; }
.chapter.wide { max-width: var(--max); }
.chapter-label { display: flex; gap: 1rem; align-items: center; margin-bottom: 2rem; }
.chapter-label::before { content: ''; width: 42px; height: 1px; background: var(--gold); }
.chapter h2 { margin-bottom: 2.3rem; }
.chapter p { font-size: 1.08rem; color: #344755; }
.pull { margin: 4rem 0; padding: 2rem 0 2rem clamp(1.5rem, 5vw, 4rem); border-left: 2px solid var(--gold); font: 500 clamp(1.8rem, 3.5vw, 3.2rem)/1.2 var(--serif); letter-spacing: -.025em; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 8rem); }
.two-col h3 { margin-bottom: 1.3rem; }
.clean-list { padding: 0; margin: 2rem 0 0; list-style: none; border-top: 1px solid var(--line); }
.clean-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.lifecycle { display: grid; grid-template-columns: repeat(5, 1fr); margin: 4rem 0 2rem; border: 1px solid var(--line); }
.stage { min-height: 190px; padding: 1.5rem; position: relative; }
.stage + .stage { border-left: 1px solid var(--line); }
.stage small { color: var(--gold); font-weight: 700; }
.stage strong { display: block; font: 500 1.25rem var(--serif); margin: 2rem 0 .8rem; }
.stage span { font-size: .75rem; color: var(--muted); }
.artifact { margin-top: 4rem; padding: clamp(1rem, 3vw, 2rem); background: white; border: 1px solid var(--line); }
.artifact img { width: 100%; height: auto; }
.caption { margin-top: 1.2rem; display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; font-size: .82rem; color: var(--muted); }
.caption strong { color: var(--ink); }
.decision-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 4rem; }
.decision { background: var(--white); padding: 2rem; }
.decision strong { display: block; font: 500 1.35rem var(--serif); margin-bottom: .7rem; }
.decision p { font-size: .92rem; margin: 0; }
.case-next { background: var(--ink); color: white; padding: 6rem 32px; }
.case-next-inner { max-width: var(--max); margin: auto; }
.case-next a { display: flex; align-items: end; justify-content: space-between; gap: 3rem; text-decoration: none; }
.case-next span { color: #abc0c6; }
.case-next h2 { margin-top: 1rem; max-width: 900px; }
.case-next .arrow { font-size: 3rem; }

.work-list { max-width: var(--max); margin: auto; padding: 0 32px 8rem; }
.work-row { display: grid; grid-template-columns: 90px 1fr 260px; gap: 2rem; align-items: start; padding: 2.5rem 0; border-top: 1px solid var(--line); text-decoration: none; }
.work-row:last-child { border-bottom: 1px solid var(--line); }
.work-row h2 { font-size: clamp(2rem, 4vw, 4rem); }
.work-row p { color: var(--muted); }
.work-row:hover h2 { color: var(--blue); }
.about-grid { max-width: var(--max); margin: auto; padding: 0 32px clamp(6rem,12vw,11rem); display: grid; grid-template-columns: 1fr 2fr; gap: clamp(3rem, 10vw, 10rem); }
.about-portrait { margin: 0 0 2.2rem; max-width: 340px; }
.about-portrait img { width: 100%; height: auto; border-bottom: 3px solid var(--gold); }
.about-body p { font-size: clamp(1.1rem, 1.7vw, 1.35rem); }
.timeline { margin-top: 4rem; }
.timeline-item { display: grid; grid-template-columns: 180px 1fr; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.timeline-item:last-child { border-bottom: 1px solid var(--line); }
.resume-section { max-width: 1000px; margin: auto; padding: 0 32px 5rem; }
.resume-role { display: grid; grid-template-columns: 220px 1fr; gap: 3rem; padding: 3rem 0; border-top: 1px solid var(--line); }
.resume-role h3 { margin-bottom: .5rem; }
.resume-role ul { padding-left: 1.2rem; }
.resume-role li { margin-bottom: .8rem; }

@media (max-width: 820px) {
  .nav-wrap { min-height: 72px; padding: 0 20px; }
  .menu-button { display: block; }
  .nav-links { display: none; position: fixed; inset: 73px 0 0; background: var(--paper); padding: 3rem 20px; flex-direction: column; align-items: flex-start; font: 500 2rem var(--serif); }
  .nav-links.open { display: flex; }
  .hero, .section, .page-hero, .chapter, .closing { padding-left: 20px; padding-right: 20px; }
  .hero { min-height: calc(100svh - 73px); }
  .hero-intro { margin-left: 0; }
  .hero-foot { align-items: start; flex-direction: column; }
  .section-head, .principle, .project, .two-col, .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .path { grid-template-columns: 1fr; }
  .path-step + .path-step { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .project { padding-bottom: 5rem; }
  .project-number { margin-bottom: 1.5rem; }
  .evidence-grid, .decision-grid { grid-template-columns: 1fr; }
  .evidence-card { min-height: 360px; }
  .scale-grid { grid-template-columns: 1fr 1fr; }
  .scale-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .case-meta { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; padding-left: 20px; padding-right: 20px; }
  .case-band-inner { grid-template-columns: 1fr 1fr; padding-left: 20px; padding-right: 20px; }
  .lifecycle { grid-template-columns: 1fr; }
  .stage { min-height: auto; }
  .stage + .stage { border-left: 0; border-top: 1px solid var(--line); }
  .stage strong { margin: 1rem 0 .4rem; }
  .caption { grid-template-columns: 1fr; gap: .5rem; }
  .work-row { grid-template-columns: 50px 1fr; }
  .work-row p { grid-column: 2; }
  .timeline-item, .resume-role { grid-template-columns: 1fr; gap: .5rem; }
  .about-grid, .work-list, .resume-section { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 520px) {
  h1 { font-size: clamp(3.1rem, 15vw, 4.8rem); }
  .brand > span:last-child { display: none; }
  .metric-row { grid-template-columns: 1fr; }
  .metric + .metric { border-top: 1px solid var(--line); }
  .scale-grid { grid-template-columns: 1fr; }
  .scale-item + .scale-item { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .case-band-inner { grid-template-columns: 1fr 1fr; }
  .case-next a { align-items: start; }
  .case-next .arrow { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
