:root {
  --ink: #17231f;
  --muted: #58645f;
  --paper: #f5f4ee;
  --surface: #fffef9;
  --surface-alt: #e9ede8;
  --line: #d5dbd5;
  --forest: #185944;
  --forest-dark: #103f33;
  --forest-soft: #d9e6de;
  --blue: #294c65;
  --blue-soft: #dfe8ed;
  --clay: #b96b4e;
  --clay-soft: #eee0d8;
  --max-width: 1180px;
  --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;
  scroll-padding-top: 86px;
}

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

img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--clay); outline-offset: 4px; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .75rem 1rem;
  color: white;
  background: var(--ink);
}

.skip-link:focus { top: 1rem; }

.site-header {
  position: relative;
  z-index: 5;
  width: min(calc(100% - 3rem), var(--max-width));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--surface);
  background: var(--forest);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

nav { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); }
nav a { color: var(--muted); font-size: .88rem; font-weight: 600; text-decoration: none; }
nav a:hover { color: var(--forest); }

main, footer {
  width: min(calc(100% - 3rem), var(--max-width));
  margin: 0 auto;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; }
h1 { margin-bottom: .35rem; font-size: clamp(4.5rem, 10.5vw, 8rem); line-height: .92; letter-spacing: -.06em; }
h2 { margin-bottom: 1.5rem; font-size: clamp(2.45rem, 5vw, 4.3rem); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
h3 { margin-bottom: .75rem; font-size: 1.35rem; line-height: 1.25; }

.eyebrow {
  margin: 0 0 1rem;
  color: var(--forest);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero {
  min-height: 700px;
  padding: 6.5rem 0 7rem;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .72fr);
  gap: clamp(3rem, 8vw, 7.5rem);
  align-items: center;
}

.hero-copy { position: relative; z-index: 1; }
.hero-title {
  margin: 1.1rem 0 1.6rem;
  color: var(--forest);
  font-size: clamp(1.2rem, 2.25vw, 1.55rem);
  font-weight: 720;
  letter-spacing: -.02em;
}
.hero-title span { color: var(--clay); }
.lede { max-width: 760px; margin-bottom: 1rem; color: #45534c; font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.62; }
.hero-note { max-width: 690px; color: var(--muted); font-size: .9rem; }
.actions { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }

.button {
  padding: .72rem 1.05rem;
  border: 1px solid var(--forest);
  border-radius: 2px;
  font-size: .86rem;
  font-weight: 750;
  text-decoration: none;
}
.button.primary { color: white; background: var(--forest); }
.button.secondary { color: var(--forest); background: transparent; }
.button:hover { transform: translateY(-1px); }
.text-link { margin-left: .4rem; color: var(--forest); font-size: .87rem; font-weight: 750; text-underline-offset: 4px; }

.hero-aside {
  position: relative;
  padding: 2.2rem;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 16px 16px 0 var(--forest-soft);
}
.hero-aside::after {
  content: "";
  position: absolute;
  right: -75px;
  bottom: -75px;
  width: 170px;
  height: 170px;
  border: 1px solid var(--clay);
  border-radius: 50%;
  opacity: .28;
}
.aside-label { color: var(--forest); font-size: .7rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.sequence-mark { display: flex; gap: .35rem; margin: 1.5rem 0; }
.sequence-mark span { display: grid; place-items: center; width: 34px; height: 34px; color: var(--forest); background: var(--forest-soft); font-family: var(--serif); font-size: .8rem; font-weight: 700; }
.sequence-mark span:last-child { width: 42px; color: white; background: var(--forest); }
.aside-title { max-width: 330px; margin-bottom: 2rem; font-family: var(--serif); font-size: clamp(1.55rem, 2.6vw, 2.05rem); line-height: 1.22; }
.focus-path { position: relative; z-index: 1; display: grid; gap: .55rem; color: var(--muted); font-size: .76rem; font-weight: 700; }
.focus-path i { display: block; width: 1px; height: 12px; margin-left: 4px; background: var(--clay); }

.section { padding: 7.5rem 0; border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 3.2rem; }
.split-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(3rem, 8vw, 8rem); align-items: end; }
.split-heading h2 { margin-bottom: 0; }
.split-heading > p, .narrow-heading > p { color: var(--muted); font-size: 1.04rem; }
.narrow-heading { max-width: 780px; }

.focus-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.focus-panel { position: relative; min-height: 430px; padding: clamp(2rem, 4vw, 3.2rem); border: 1px solid var(--line); }
.current-panel { background: var(--surface); }
.current-panel::before, .future-panel::before { content: ""; position: absolute; top: 0; left: 0; width: 95px; height: 4px; background: var(--forest); }
.future-panel { background: var(--blue-soft); border-color: #cbd8df; }
.future-panel::before { background: var(--blue); }
.panel-kicker { color: var(--forest); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.future-panel .panel-kicker { color: var(--blue); }
.focus-panel h3 { max-width: 430px; margin: 2rem 0 1.3rem; font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.25rem); font-weight: 500; }
.clean-list { margin: 0; padding: 0; list-style: none; }
.clean-list li { position: relative; padding: .55rem 0 .55rem 1.4rem; border-top: 1px solid rgba(23,35,31,.1); color: #46524d; }
.clean-list li::before { content: ""; position: absolute; left: .15rem; top: 1.18rem; width: 5px; height: 5px; background: var(--forest); border-radius: 50%; }
.future-panel .clean-list li::before { background: var(--blue); }

.questions-section { background: var(--surface); box-shadow: 0 0 0 100vmax var(--surface); clip-path: inset(0 -100vmax); }
.question-grid { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); list-style: none; }
.question-grid li { min-height: 250px; padding: 1.7rem; background: var(--paper); }
.question-grid li:nth-child(1), .question-grid li:nth-child(2), .question-grid li:nth-child(3) { grid-column: span 2; }
.question-grid li:nth-child(4), .question-grid li:nth-child(5) { grid-column: span 3; }
.question-grid span { display: block; margin-bottom: 2.6rem; color: var(--clay); font-size: .72rem; font-weight: 800; }
.question-grid p { margin-bottom: 0; font-family: var(--serif); font-size: 1.28rem; line-height: 1.38; }

.project-stack { display: grid; gap: 1.2rem; }
.project-card { display: grid; grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr); background: var(--surface); border: 1px solid var(--line); }
.project-visual { padding: 1rem; display: flex; flex-direction: column; background: var(--surface-alt); border-right: 1px solid var(--line); }
.project-visual img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid rgba(23,35,31,.08); }
.project-visual p { margin: .85rem .25rem .1rem; color: var(--muted); font-size: .74rem; line-height: 1.45; }
.project-content { padding: clamp(2rem, 5vw, 4.2rem); }
.project-meta { margin-bottom: 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .69rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.status { padding: .32rem .5rem; border-radius: 2px; letter-spacing: .05em; }
.status.active { color: var(--forest); background: var(--forest-soft); }
.status.concept { color: var(--clay); background: var(--clay-soft); }
.status.direction-status { color: var(--blue); background: var(--blue-soft); }
.project-content h3 { max-width: 680px; margin-bottom: 1.2rem; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 500; letter-spacing: -.025em; }
.project-content > p { color: var(--muted); }
.value-note { margin: 1.5rem 0; padding: 1rem 1.1rem; border-left: 3px solid var(--forest); background: #f1f4ef; font-size: .9rem; }
.value-note strong { color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.tags span { padding: .34rem .58rem; color: var(--forest); background: var(--forest-soft); border-radius: 2px; font-size: .69rem; font-weight: 750; }
.reverse .project-visual { order: 2; border-right: 0; border-left: 1px solid var(--line); }

.evidence-section { background: var(--surface-alt); box-shadow: 0 0 0 100vmax var(--surface-alt); clip-path: inset(0 -100vmax); }
.evidence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.evidence-card { min-height: 660px; padding: 2rem; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); }
.evidence-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 2rem; color: white; background: var(--forest); font-family: var(--serif); font-size: 1.3rem; border-radius: 50%; }
.evidence-card:nth-child(2) .evidence-icon { background: var(--blue); }
.evidence-card:nth-child(3) .evidence-icon { background: var(--clay); }
.evidence-card h3 { font-family: var(--serif); font-size: 1.72rem; font-weight: 500; }
.evidence-card > p:not(.relevance) { color: var(--muted); }
.evidence-card ul { margin: 1.2rem 0 2rem; padding-left: 1.1rem; color: #46534d; font-size: .88rem; }
.evidence-card li { margin-bottom: .8rem; }
.relevance { margin: auto 0 0; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .79rem; }
.relevance strong { display: block; margin-bottom: .35rem; color: var(--forest); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery-item { margin: 0; background: var(--surface); border: 1px solid var(--line); }
.gallery-item.wide { grid-column: span 2; }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface-alt); }
.gallery-item.wide img { aspect-ratio: 2 / 1; }
.gallery-item figcaption { padding: .9rem 1rem 1rem; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.gallery-item figcaption span { margin-right: .5rem; color: var(--clay); font-weight: 800; }

.education-section { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.education-section h2 { margin-bottom: 0; }
.education-detail { padding-top: 1.6rem; border-top: 3px solid var(--forest); }
.degree { margin-bottom: .75rem; font-family: var(--serif); font-size: 1.6rem; }
.education-detail > p:not(.degree) { color: var(--muted); }
.education-detail .muted { font-size: .86rem; }

.contact { margin-top: 3rem; padding: clamp(3rem, 8vw, 7rem); color: white; background: var(--forest-dark); }
.contact .eyebrow { color: #a9d5c2; }
.contact h2 { max-width: 940px; font-size: clamp(2.5rem, 5.5vw, 4.6rem); }
.contact > p:not(.eyebrow, .contact-note) { max-width: 790px; color: #d3e1db; font-size: 1.03rem; }
.contact-links { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .65rem; }
.contact-link { padding: .68rem .85rem; border: 1px solid rgba(255,255,255,.5); font-size: .8rem; font-weight: 750; text-decoration: none; }
a.contact-link:hover { color: var(--forest-dark); background: white; }
.contact-link.disabled { cursor: not-allowed; opacity: .58; }
.contact-note { margin: 1rem 0 0; color: #a9c0b6; font-size: .7rem; }

footer { padding: 2.2rem 0 3.5rem; display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .76rem; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-aside { max-width: 630px; }
  .split-heading { grid-template-columns: 1fr; gap: 1rem; }
  .split-heading > p { max-width: 720px; }
  .project-card { grid-template-columns: .85fr 1.15fr; }
  .evidence-grid { grid-template-columns: 1fr 1fr; }
  .evidence-card { min-height: auto; }
  .evidence-card:last-child { grid-column: 1 / -1; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 24px; }
  .site-header { min-height: 76px; }
  nav a:nth-child(2), nav a:nth-child(3) { display: none; }
  .hero { padding: 5rem 0; gap: 3.5rem; }
  .hero-note { font-size: .84rem; }
  .section { padding: 5rem 0; }
  .focus-columns, .project-card, .education-section { grid-template-columns: 1fr; }
  .focus-panel { min-height: auto; }
  .question-grid { grid-template-columns: 1fr; }
  .question-grid li, .question-grid li:nth-child(n) { grid-column: auto; min-height: auto; }
  .question-grid span { margin-bottom: 1.4rem; }
  .project-visual { border-right: 0; border-bottom: 1px solid var(--line); }
  .reverse .project-visual { order: 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .evidence-grid { grid-template-columns: 1fr; }
  .evidence-card:last-child { grid-column: auto; }
  .education-section { gap: 1.5rem; }
  .contact { margin-top: 1rem; }
}

@media (max-width: 480px) {
  .site-header, main, footer { width: min(calc(100% - 2rem), var(--max-width)); }
  h1 { font-size: 4rem; }
  h2 { font-size: 2.5rem; }
  .hero-title { font-size: 1.12rem; }
  .actions { align-items: stretch; }
  .button { text-align: center; }
  .text-link { width: 100%; margin: .5rem 0 0; }
  .hero-aside { padding: 1.5rem; box-shadow: 9px 9px 0 var(--forest-soft); }
  .sequence-mark span { width: 31px; height: 31px; }
  .project-content { padding: 1.5rem; }
  .project-meta { align-items: flex-start; }
  .project-content h3 { font-size: 2rem; }
  .evidence-card { padding: 1.5rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.wide { grid-column: auto; }
  .gallery-item.wide img { aspect-ratio: 4 / 3; }
  .contact { margin-left: -1rem; margin-right: -1rem; padding: 3.5rem 1rem; }
  .contact-links { align-items: stretch; flex-direction: column; }
  .contact-link { text-align: center; }
  footer { flex-direction: column; }
}

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