:root {
  --paper: #f3f0e8;
  --paper-2: #ece7dc;
  --ink: #141414;
  --muted: #68645c;
  --line: rgba(20, 20, 20, 0.18);
  --soft-line: rgba(20, 20, 20, 0.10);
  --accent: #e9553f;
  --max: 1440px;
  --pad: clamp(22px, 4vw, 68px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 14% 8%, rgba(255,255,255,.68), transparent 26%),
    radial-gradient(circle at 84% 14%, rgba(255,255,255,.38), transparent 30%),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .20;
  z-index: 100;
  background-image:
    linear-gradient(rgba(30,30,30,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,30,30,.018) 1px, transparent 1px);
  background-size: 4px 4px, 4px 4px;
  mix-blend-mode: multiply;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

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

.site-header {
  min-height: 94px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 28px;
  position: relative;
  z-index: 10;
}

.wordmark {
  justify-self: start;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.04em;
}
.wordmark span { color: var(--accent); }

.site-header nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 38px); }
.site-header nav a,
.header-location {
  font-size: .72rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  font-weight: 650;
}
.site-header nav a { position: relative; }
.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 1px;
  background: var(--accent);
  transition: right .2s ease;
}
.site-header nav a:hover::after { right: 0; }
.header-location { justify-self: end; margin: 0; color: var(--muted); }

.hero {
  min-height: min(800px, calc(100vh - 94px));
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(390px, .96fr);
  grid-template-rows: 1fr auto;
  column-gap: clamp(42px, 7vw, 110px);
  padding-top: clamp(68px, 9vw, 138px);
  padding-bottom: 32px;
  position: relative;
}

.hero-copy { align-self: center; padding-bottom: 34px; }
.eyebrow {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: .69rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 1px;
}

h1, h2, h3, blockquote { margin-top: 0; }
.hero h1 {
  margin-bottom: 30px;
  font-size: clamp(4rem, 8.9vw, 9.8rem);
  line-height: .78;
  letter-spacing: -.075em;
  font-weight: 820;
}
.hero h1 em,
.section-heading h2 em,
.contact-section h2 em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.055em;
}
.hero h1 em { display: inline-block; }
.hero h1 > span { color: var(--accent); }
.hero-intro {
  max-width: 630px;
  margin: 0 0 34px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 1.65vw, 1.55rem);
  line-height: 1.52;
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.primary-link,
.quiet-link,
.contact-link {
  font-size: .76rem;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.primary-link {
  display: inline-flex;
  padding: 14px 0 9px;
  border-bottom: 1px solid var(--ink);
}
.quiet-link { color: var(--muted); }
.resume-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 19px 12px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: .78rem;
  font-weight: 780;
  letter-spacing: .085em;
  line-height: 1;
  text-transform: uppercase;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.resume-link span {
  font-size: 1.05rem;
  line-height: .8;
  transition: transform .18s ease;
}
.resume-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}
.resume-link:hover span { transform: translateY(2px); }
.primary-link:hover,
.quiet-link:hover,
.contact-link:hover { color: var(--accent); }

.hero-figure {
  align-self: center;
  max-width: 620px;
  justify-self: end;
  width: 100%;
}
.figure-shell {
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(20,20,20,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,20,20,.055) 1px, transparent 1px);
  background-size: 28px 28px;
  overflow: hidden;
}
.figure-shell::before,
.figure-shell::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 1px;
  background: var(--accent);
}
.figure-shell::before { top: 22px; left: 0; }
.figure-shell::after { right: 0; bottom: 22px; }
.phase-portrait {
  width: 100%;
  height: auto;
  display: block;
  color: #242424;
  padding: clamp(16px, 2.8vw, 34px);
}
.phase-portrait text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  letter-spacing: .05em;
}
.trajectory { stroke: var(--accent); stroke-linecap: round; }
.trajectory-point { fill: var(--accent); }
.trajectory-ring { stroke: var(--accent); }
.figure-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  padding-top: 15px;
  color: var(--muted);
  align-items: start;
}
.figure-meta span {
  font: 700 .66rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .09em;
}
.figure-meta p { margin: 0; font: italic 1rem/1.45 Georgia, serif; }

.hero-footer {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  color: var(--muted);
  font-size: .66rem;
  font-weight: 680;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.hero-footer span:nth-child(2) { text-align: center; }
.hero-footer span:nth-child(3) { text-align: right; }

.work-section,
.projects-section,
.capabilities-section,
.contact-section {
  padding: clamp(88px, 10vw, 150px) 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(170px, .75fr) minmax(0, 2fr) minmax(220px, .8fr);
  gap: 36px;
  align-items: start;
  margin-bottom: clamp(62px, 7vw, 104px);
}
.section-heading > .eyebrow { margin-top: 13px; }
.section-heading h2,
.contact-section h2 {
  margin-bottom: 0;
  font-size: clamp(3rem, 5.7vw, 6.65rem);
  line-height: .92;
  letter-spacing: -.058em;
}
.section-aside {
  margin: 11px 0 0;
  max-width: 330px;
  font-family: Georgia, serif;
  font-size: 1rem;
  color: var(--muted);
}

.research-list { border-top: 1px solid var(--line); }
.research-item {
  display: grid;
  grid-template-columns: 90px minmax(0, 1.65fr) minmax(200px, .65fr);
  gap: 34px;
  padding: 42px 0 46px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.research-index {
  font: 600 .76rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--accent);
}
.research-item .eyebrow { margin-bottom: 12px; }
.research-item h3,
.project-card h3 {
  margin-bottom: 15px;
  font-size: clamp(1.85rem, 3vw, 3.4rem);
  line-height: 1;
  letter-spacing: -.045em;
}
.research-description {
  max-width: 760px;
  margin: 0 0 22px;
  color: #2b2a27;
  font-family: Georgia, serif;
  font-size: 1.02rem;
  line-height: 1.65;
}
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags span {
  border: 1px solid var(--line);
  padding: 7px 9px;
  font-size: .64rem;
  line-height: 1;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.research-note {
  margin: 4px 0 0;
  color: var(--muted);
  font: italic .94rem/1.5 Georgia, serif;
}

.principle-band {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(74px, 8vw, 112px) 0;
}
.principle-band .eyebrow { color: rgba(243,240,232,.58); }
.principle-band blockquote {
  max-width: 1180px;
  margin-bottom: clamp(50px, 6vw, 84px);
  font: 400 clamp(2.4rem, 5.2vw, 6rem)/1 Georgia, serif;
  letter-spacing: -.045em;
}
.principle-sequence {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 16px;
  color: rgba(243,240,232,.63);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
}
.principle-sequence i { height: 1px; background: rgba(243,240,232,.23); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.project-card {
  min-height: 510px;
  padding: clamp(27px, 3vw, 42px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,.08);
  transition: background .2s ease, transform .2s ease;
}
.project-card:hover { background: rgba(255,255,255,.34); transform: translateY(-2px); }
.project-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 52px;
  color: var(--muted);
  font-size: .65rem;
  font-weight: 720;
  letter-spacing: .1em;
}
.project-topline span:first-child { color: var(--accent); }
.project-summary {
  margin: 0 0 30px;
  font-family: Georgia, serif;
  color: #35322f;
  line-height: 1.62;
}
.project-result {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  display: flex;
  gap: 18px;
  align-items: baseline;
  margin: auto 0 18px;
}
.project-result strong {
  font-size: clamp(2.3rem, 4vw, 4.6rem);
  letter-spacing: -.06em;
  line-height: 1;
}
.project-result span { color: var(--muted); font-size: .84rem; line-height: 1.35; }
.project-stack,
.project-note { margin: 0; color: var(--muted); font-size: .75rem; }
.project-stack { margin-bottom: 8px; font-weight: 700; }
.project-note { font-family: Georgia, serif; font-style: italic; line-height: 1.5; }

.experience-section {
  padding-top: clamp(88px, 10vw, 150px);
  padding-bottom: clamp(88px, 10vw, 150px);
  border-top: 1px solid var(--line);
}
.experience-list { border-top: 1px solid var(--line); }
.experience-row {
  display: grid;
  grid-template-columns: 160px minmax(260px, .95fr) minmax(0, 1.35fr);
  gap: 34px;
  padding: 29px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.experience-row > span {
  color: var(--muted);
  font: 650 .68rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .06em;
}
.experience-row strong { font-size: 1.08rem; letter-spacing: -.015em; }
.experience-row p { margin: 4px 0 0; color: var(--muted); }
.experience-row > p { margin-top: 0; max-width: 660px; font-family: Georgia, serif; color: #373430; }

.capabilities-section .wrap { border-top: 1px solid var(--line); }
.capabilities-section > .wrap > .eyebrow { padding-top: 24px; margin-bottom: 54px; }
.capability-row {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(0, 2fr);
  gap: 30px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}
.capability-row span { font-size: .68rem; font-weight: 760; letter-spacing: .11em; }
.capability-row p { margin: 0; font: 1.03rem/1.55 Georgia, serif; }

.contact-section { background: var(--paper-2); }
.contact-section .wrap {
  display: grid;
  grid-template-columns: minmax(180px,.7fr) minmax(0,1.55fr) minmax(280px,.75fr);
  gap: 36px;
  align-items: start;
}
.contact-section .eyebrow { margin-top: 14px; }
.contact-section > .wrap > p:not(.eyebrow) {
  margin: 12px 0 0;
  max-width: 430px;
  font: 1.05rem/1.62 Georgia, serif;
  color: #373430;
}
.contact-actions {
  grid-column: 2 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.contact-link { text-transform: none; letter-spacing: .015em; font-size: .95rem; }

.site-footer {
  min-height: 108px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: center;
  color: var(--muted);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.site-footer span:nth-child(2) { text-align: center; }
.site-footer a { text-align: right; }
.site-footer a:hover { color: var(--accent); }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: auto 1fr; }
  .site-header nav { justify-self: end; }
  .header-location { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding-bottom: 64px; }
  .hero-figure { justify-self: start; max-width: 760px; }
  .hero-footer { margin-top: 56px; }
  .section-heading { grid-template-columns: 150px 1fr; }
  .section-aside { grid-column: 2; }
  .research-item { grid-template-columns: 62px 1fr; }
  .research-note { grid-column: 2; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 0; }
  .experience-row { grid-template-columns: 120px 1fr; }
  .experience-row > p { grid-column: 2; }
  .contact-section .wrap { grid-template-columns: 150px 1fr; }
  .contact-section > .wrap > p:not(.eyebrow) { grid-column: 2; }
  .contact-actions { grid-column: 2; }
}

@media (max-width: 720px) {
  :root { --pad: 20px; }
  .site-header { min-height: 76px; }
  .site-header nav { gap: 13px; overflow-x: auto; justify-content: flex-end; }
  .site-header nav a { font-size: .61rem; white-space: nowrap; }
  .hero { padding-top: 60px; }
  .hero h1 { font-size: clamp(3.8rem, 21vw, 7rem); }
  .hero-intro { font-size: 1.05rem; }
  .hero-actions { gap: 16px; }
  .resume-link { min-height: 50px; padding-inline: 20px; }
  .hero-footer { grid-template-columns: 1fr; gap: 7px; }
  .hero-footer span:nth-child(2),
  .hero-footer span:nth-child(3) { text-align: left; }
  .section-heading { grid-template-columns: 1fr; gap: 16px; }
  .section-heading > .eyebrow { margin-top: 0; }
  .section-aside { grid-column: 1; }
  .research-item { grid-template-columns: 40px 1fr; gap: 18px; }
  .research-note { grid-column: 2; }
  .principle-sequence { grid-template-columns: 1fr 1fr; gap: 16px 24px; }
  .principle-sequence i { display: none; }
  .experience-row { grid-template-columns: 1fr; gap: 10px; }
  .experience-row > p { grid-column: 1; }
  .capability-row { grid-template-columns: 1fr; gap: 9px; }
  .contact-section .wrap { grid-template-columns: 1fr; }
  .contact-section > .wrap > p:not(.eyebrow),
  .contact-actions { grid-column: 1; }
  .site-footer { grid-template-columns: 1fr; gap: 7px; padding: 26px 0; }
  .site-footer span:nth-child(2), .site-footer a { text-align: left; }
}

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