:root {
  --ink: #1e2924;
  --forest: #164d40;
  --sage: #b9c6a9;
  --lime: #cfdf5b;
  --paper: #f4f0e8;
  --warm-white: #fffdf8;
  --rust: #c4583e;
  --line: #d3d0c8;
  --muted: #657069;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", sans-serif; font-size: 16px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }

.site-header { min-height: 76px; padding: 0 4.5vw; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: rgba(244, 240, 232, .94); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(8px); }
.wordmark { font: 700 25px/1 "Fraunces", serif; letter-spacing: 0; }
.wordmark span { color: var(--rust); }
nav { display: flex; gap: 30px; margin-left: auto; }
nav a, .header-contact { font-size: 13px; font-weight: 600; }
nav a { color: var(--muted); }
nav a:hover { color: var(--forest); }
.header-contact { appearance: none; padding: 0 0 2px; color: var(--ink); border: 0; border-bottom: 1px solid var(--ink); background: transparent; font-family: inherit; cursor: pointer; }

.hero { min-height: calc(100vh - 76px); padding: 10vh 8vw 7vh; display: grid; grid-template-columns: minmax(300px, 1.25fr) minmax(250px, .75fr); grid-template-rows: auto auto; gap: 38px 9vw; align-items: center; background-color: var(--warm-white); background-image: linear-gradient(rgba(22, 77, 64, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(22, 77, 64, .045) 1px, transparent 1px); background-size: 36px 36px; }
.hero-copy { max-width: 660px; }
.eyebrow, .section-label, .role-type, .founder-kicker, .project-number { text-transform: uppercase; letter-spacing: 0; font: 500 11px/1.2 "DM Mono", monospace; }
.eyebrow { color: var(--forest); margin: 0 0 20px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: 0; }
h1 { max-width: 650px; margin-bottom: 25px; font: 700 clamp(46px, 5.4vw, 82px)/.98 "Fraunces", serif; }
.intro { max-width: 550px; color: #45504a; font-size: 19px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; gap: 13px; padding: 13px 18px; border: 1px solid transparent; font-size: 14px; font-weight: 700; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--forest); }
.button-secondary { border-color: var(--ink); background: rgba(255, 253, 248, .82); }
.portrait-wrap { margin: 0; justify-self: end; width: min(100%, 400px); }
.portrait-frame { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; background: var(--sage); box-shadow: 17px 17px 0 var(--lime); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
figcaption { margin-top: 17px; color: var(--muted); font: 400 11px/1.2 "DM Mono", monospace; text-transform: uppercase; }
.hero-note { grid-column: 1; display: flex; align-items: flex-start; gap: 13px; max-width: 420px; color: var(--muted); font-size: 14px; }
.hero-note p { margin: 0; }
.note-rule { width: 32px; height: 1px; margin-top: 11px; flex: 0 0 auto; background: var(--rust); }

.section { padding: 112px 8vw; }
.section-label { color: var(--muted); display: flex; gap: 12px; align-items: center; }
.section-label span { color: var(--rust); }
.story { border-top: 1px solid var(--line); }
.story-grid { display: grid; grid-template-columns: .95fr 1fr; gap: 10vw; margin-top: 48px; }
h2 { font: 600 clamp(35px, 4vw, 57px)/1.06 "Fraunces", serif; }
.story-grid h2 { max-width: 560px; margin: 0; }
.story-copy { color: #4a554e; font-size: 17px; }
.story-copy p { margin-bottom: 21px; }
.focus-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 55px; }
.focus-list span { padding: 8px 11px; border: 1px solid var(--line); color: var(--forest); font: 500 11px/1.2 "DM Mono", monospace; text-transform: uppercase; }

.timeline-section { color: var(--warm-white); background: var(--forest); }
.timeline-section .section-label { color: #c5d3ca; }
.timeline-section .section-label span { color: var(--lime); }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 60px; }
.section-heading h2 { max-width: 650px; margin: 45px 0 0; }
.timeline { list-style: none; margin: 72px 0 0; padding: 0; }
.timeline-item { display: grid; grid-template-columns: 125px minmax(0, 1fr); gap: 50px; padding: 0 0 46px; position: relative; }
.timeline-item:not(:last-child)::before { content: ""; position: absolute; left: 4px; top: 25px; bottom: -2px; width: 1px; background: rgba(255,255,255,.24); }
.timeline-item::after { content: ""; position: absolute; left: 0; top: 8px; width: 9px; height: 9px; border: 2px solid var(--lime); background: var(--forest); border-radius: 50%; }
.timeline-date { padding-left: 23px; color: #c5d3ca; font: 400 11px/1.35 "DM Mono", monospace; text-transform: uppercase; }
.timeline-item article { max-width: 750px; border-bottom: 1px solid rgba(255,255,255,.22); padding-bottom: 46px; }
.role-type { color: var(--lime); margin-bottom: 12px; }
.timeline h3 { margin-bottom: 2px; font: 600 clamp(25px, 2.6vw, 37px)/1.1 "Fraunces", serif; }
.organization { margin-bottom: 17px; font-size: 14px; font-weight: 700; }
.organization span { color: #c5d3ca; font-weight: 400; }
.timeline article > p:last-of-type { max-width: 690px; margin-bottom: 0; color: #e1e8e3; }
.milestone::after { background: var(--lime); }
.featured-role article { border: 1px solid rgba(207, 223, 91, .6); padding: 29px; background: rgba(0, 0, 0, .09); }
.role-tags { display: flex; gap: 8px; flex-wrap: wrap; padding: 0; margin: 24px 0 0; list-style: none; }
.role-tags li { padding: 6px 9px; background: var(--lime); color: var(--forest); font: 500 10px/1.2 "DM Mono", monospace; text-transform: uppercase; }

.systems { background: var(--warm-white); }
.systems-intro { display: grid; grid-template-columns: 1fr .82fr; gap: 10vw; margin-top: 49px; }
.systems-intro h2 { max-width: 620px; margin: 0; }
.systems-intro > p { max-width: 520px; margin: 8px 0 0; color: var(--muted); font-size: 17px; }
.systems-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 7vw; margin-top: 65px; }
.system-panel { padding: 30px; color: var(--warm-white); background: var(--ink); }
.system-panel-label { margin-bottom: 29px; color: var(--lime); font: 500 10px/1.2 "DM Mono", monospace; text-transform: uppercase; }
.platform-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.platform-list li { padding: 13px 0; border-top: 1px solid rgba(255, 255, 255, .2); font: 600 20px/1.1 "Fraunces", serif; }
.systems-responsibilities { display: grid; gap: 0; }
.systems-responsibilities article { display: grid; grid-template-columns: 42px 1fr; column-gap: 16px; padding: 0 0 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.systems-responsibilities article:last-child { margin-bottom: 0; }
.systems-responsibilities span { grid-row: span 2; color: var(--rust); font: 500 11px/1.2 "DM Mono", monospace; }
.systems-responsibilities h3 { margin-bottom: 8px; font: 600 23px/1.1 "Fraunces", serif; }
.systems-responsibilities p { margin: 0; color: var(--muted); font-size: 15px; }

.founder { background: var(--rust); color: var(--warm-white); }
.section-label.light { color: #ffe4d6; }
.section-label.light span { color: var(--lime); }
.founder-layout { display: grid; grid-template-columns: 1fr .82fr; gap: 10vw; margin-top: 50px; }
.founder-kicker { color: var(--lime); margin-bottom: 17px; }
.founder h2 { max-width: 590px; margin: 0; }
.founder-copy { font-size: 17px; color: #fff2e9; }
.founder-copy p { margin-bottom: 20px; }
.button-cream { margin-top: 16px; color: var(--ink); background: var(--warm-white); }

.projects { background: var(--paper); }
.compact-heading { display: block; }
.compact-heading h2 { margin: 42px 0 0; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 52px; background: var(--line); border: 1px solid var(--line); }
.project-card { min-height: 286px; padding: 27px; background: var(--warm-white); display: flex; flex-direction: column; }
.project-card-link { transition: background .2s, color .2s; }
.project-card-link:hover { color: var(--warm-white); background: var(--forest); }
.project-number { color: var(--rust); margin-bottom: auto; }
.project-card-link:hover .project-number { color: var(--lime); }
.project-card h3 { margin: 43px 0 10px; font: 600 27px/1.1 "Fraunces", serif; }
.project-card p:not(.project-number) { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.project-card-link:hover p:not(.project-number) { color: #d5e1da; }
.card-link { margin-top: 23px; color: var(--rust); font-size: 13px; font-weight: 700; }
.project-card-link:hover .card-link { color: var(--lime); }
.card-link b { margin-left: 7px; }

.site-footer { padding: 62px 8vw 35px; color: var(--warm-white); background: var(--ink); }
.site-footer p { max-width: 760px; margin-bottom: 28px; font: 600 clamp(31px, 4vw, 54px)/1.05 "Fraunces", serif; }
.site-footer > a { display: inline-block; border-bottom: 1px solid var(--lime); color: var(--lime); font-size: 16px; font-weight: 600; }
.site-footer small { display: block; margin-top: 75px; color: #abb7af; font: 400 10px/1.2 "DM Mono", monospace; text-transform: uppercase; }

.contact-dialog { width: min(calc(100% - 40px), 520px); padding: 0; border: 0; color: var(--ink); background: var(--warm-white); box-shadow: 0 20px 70px rgba(13, 34, 27, .28); }
.contact-dialog::backdrop { background: rgba(20, 39, 33, .68); backdrop-filter: blur(3px); }
.contact-dialog-content { position: relative; padding: 49px; }
.contact-dialog h2 { margin: 0 0 18px; font-size: clamp(39px, 7vw, 56px); }
.contact-dialog p:not(.eyebrow) { max-width: 370px; margin-bottom: 34px; color: var(--muted); font-size: 16px; }
.dialog-close { position: absolute; top: 15px; right: 15px; display: grid; width: 35px; height: 35px; place-items: center; border: 1px solid var(--line); border-radius: 0; color: var(--ink); background: transparent; font-size: 26px; font-weight: 400; line-height: 1; cursor: pointer; }
.dialog-close:hover { color: var(--warm-white); border-color: var(--forest); background: var(--forest); }
.contact-detail { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--forest); font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.contact-detail span { color: var(--rust); font: 500 10px/1.2 "DM Mono", monospace; text-transform: uppercase; }
.contact-detail:hover { color: var(--rust); }

@media (max-width: 760px) {
  .site-header { padding: 0 6vw; min-height: 66px; }
  nav { display: none; }
  .header-contact { margin-left: auto; }
  .hero { min-height: auto; padding: 68px 6vw 55px; grid-template-columns: 1fr; gap: 42px; }
  h1 { font-size: clamp(45px, 13vw, 64px); }
  .intro { font-size: 17px; }
  .portrait-wrap { justify-self: start; width: min(85vw, 390px); }
  .hero-note { grid-column: auto; }
  .section { padding: 74px 6vw; }
  .story-grid, .founder-layout, .systems-intro, .systems-grid { grid-template-columns: 1fr; gap: 30px; margin-top: 34px; }
  .story-copy { font-size: 16px; }
  .systems-intro > p { margin-top: 0; font-size: 16px; }
  .system-panel { padding: 24px; }
  .section-heading h2 { margin-top: 34px; }
  .timeline { margin-top: 48px; }
  .timeline-item { grid-template-columns: 1fr; gap: 12px; padding-left: 24px; padding-bottom: 37px; }
  .timeline-item::after { left: 0; }
  .timeline-item:not(:last-child)::before { left: 4px; }
  .timeline-date { padding-left: 0; }
  .timeline-item article { padding-bottom: 37px; }
  .featured-role article { padding: 22px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 235px; }
}

@media (max-width: 420px) {
  .header-contact { font-size: 12px; }
  .contact-dialog-content { padding: 46px 27px 27px; }
  .hero-actions { display: grid; }
  .button { justify-content: space-between; }
  .focus-list { display: grid; grid-template-columns: 1fr 1fr; }
  .focus-list span { font-size: 9px; }
}