:root {
  --paper: #f7f3eb;
  --paper-strong: #fffdf8;
  --ink: #252a27;
  --ink-soft: #5d625e;
  --line: #d8d0c3;
  --green: #395c49;
  --blue: #355f78;
  --brown: #7a5a3e;
  --clay: #b98562;
  --sage: #dfe8dd;
  --mist: #e7edf0;
  --shadow: 0 18px 40px rgba(45, 41, 34, 0.10);
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--green);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(53, 95, 120, 0.45);
  outline-offset: 4px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
}

h1 {
  max-width: 900px;
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4.4vw, 4.25rem);
  font-weight: 500;
  letter-spacing: 0;
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 500;
  letter-spacing: 0;
}

h3 {
  font-size: 1.15rem;
  letter-spacing: 0;
}

code {
  padding: 0.08rem 0.3rem;
  background: rgba(57, 92, 73, 0.10);
  border: 1px solid rgba(57, 92, 73, 0.16);
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-160%);
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--paper-strong);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.narrow {
  max-width: 840px;
}

.section-pad {
  padding-block: clamp(3rem, 7vw, 7rem);
}

.no-top {
  padding-top: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 243, 235, 0.92);
  border-bottom: 1px solid rgba(216, 208, 195, 0.75);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(calc(100% - 2rem), var(--container));
  min-height: 72px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-links a {
  padding: 0.55rem 0.75rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
  text-decoration: none;
}

.nav-links a[href="about.html"] {
  display: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-links a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--green);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 6px auto;
  background: currentColor;
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.lede {
  color: var(--ink-soft);
  font-size: clamp(1.06rem, 1.8vw, 1.28rem);
  line-height: 1.65;
}

.home-hero {
  padding-top: clamp(2.5rem, 5vw, 5.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero-copy h1 {
  margin-bottom: 1.3rem;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.05rem;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fffdf8;
}

.button.secondary,
.button.quiet {
  background: rgba(255, 253, 248, 0.45);
}

.button.secondary:hover,
.button.quiet:hover {
  border-color: var(--green);
}

.hero-visual,
.case-image {
  margin: 0;
}

.hero-visual img,
.case-image img,
.project-card img {
  width: 100%;
  background: var(--sage);
  border: 1px solid var(--line);
  object-fit: cover;
}

.hero-visual img {
  display: block;
  height: auto;
  aspect-ratio: auto;
  border: 0;
  box-shadow: none;
}

.hero-emoji {
  margin-top: 1.4rem;
  font-size: clamp(1.3rem, 2vw, 1.5rem);
  line-height: 1.7;
}

figcaption {
  margin-top: 0.65rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

.section-heading-row,
.two-column,
.about-grid,
.resume-list-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
}

.section-heading-row {
  align-items: end;
  margin-bottom: 1.5rem;
}

.full-heading-row {
  display: block;
}

.full-heading-row h2 {
  max-width: none;
}

.full-heading-row .text-link {
  display: inline-block;
  margin-top: 0.25rem;
}

.section-heading-row .text-link {
  justify-self: end;
}

.text-link,
.back-link {
  color: var(--green);
  font-weight: 700;
}

.back-link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: clamp(4rem, 7vw, 6rem);
  text-decoration: underline;
}

.back-link:link,
.back-link:visited,
.back-link:hover,
.back-link:active,
.back-link:focus {
  text-decoration: underline;
}

.muted-band {
  background: var(--paper-strong);
  border-block: 1px solid var(--line);
}

.stack > * + * {
  margin-top: 1rem;
}

.project-grid,
.project-index-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.project-index {
  display: grid;
  gap: clamp(2.25rem, 5vw, 4rem);
}

body[data-page="projects"] .project-masonry {
  position: relative;
  display: block;
}

body[data-page="projects"] .project-masonry > .project-card {
  position: absolute;
}

body[data-page="projects"] .project-card {
  display: block;
  border: 0;
  box-shadow: none;
}

body[data-page="projects"] .project-card img,
body[data-page="projects"] .project-image-link {
  border: 0;
  box-shadow: none;
}

body[data-page="projects"] .project-card img {
  outline: 0;
}

body[data-page="projects"] .project-card .project-card-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 16px;
  height: auto;
  min-height: 0;
  padding: 24px;
}

body[data-page="projects"] .project-card-body > * {
  margin: 0;
}

@media (max-width: 520px) {
  body[data-page="projects"] .project-card .project-card-body {
    padding: 18px;
  }
}

.project-toc {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 0;
}

.project-toc-label {
  margin-bottom: 0.65rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.project-toc a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: 100%;
  padding: 1rem 1.125rem;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.project-toc a:hover,
.project-toc a:focus-visible {
  color: var(--brown);
  border-color: var(--brown);
}

.project-toc a:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 3px;
}

.project-toc span {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.5;
}

.project-toc-arrow {
  flex: 0 0 auto;
}

body[data-page="projects"] .project-category-navigation + .project-group {
  margin-top: calc(40px - clamp(2.25rem, 5vw, 4rem));
}

body[data-page="projects"] .project-category-navigation + .project-group .project-group-heading {
  padding-top: 0;
  border-top: 0;
}

.project-group {
  scroll-margin-top: 96px;
}

.project-group-heading {
  margin-bottom: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.project-group-heading h2 {
  margin-bottom: 0.55rem;
}

body[data-page="projects"] .project-group-heading h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.125rem);
}

.project-group-heading p:not(.eyebrow),
.empty-group-note {
  max-width: 760px;
  color: var(--ink-soft);
}

.project-card {
  display: grid;
  min-width: 0;
  background: rgba(255, 253, 248, 0.46);
  border-top: 1px solid var(--line);
  transition: transform 180ms ease;
}

.project-card:hover {
  transform: translateY(-2px);
}

.project-card-pending {
  background: transparent;
}

.project-card-pending:hover {
  transform: none;
}

.project-card-pending .project-card-body {
  padding-top: 1.1rem;
}

.project-card-status {
  margin-bottom: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.project-card-large:first-child {
  grid-column: span 2;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1.25rem;
}

.project-image-link {
  display: block;
  text-decoration: none;
}

.project-card img {
  aspect-ratio: 16 / 10;
}

.project-card-large:first-child img {
  height: 100%;
  min-height: 380px;
  aspect-ratio: auto;
}

.project-card-body {
  padding: 1.2rem 1.1rem 1.4rem;
}

.project-card-large:first-child .project-card-body {
  align-self: end;
  padding: 1.75rem 1.4rem 1.75rem 0.25rem;
}

.project-card h3 {
  margin-bottom: 0.55rem;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2vw, 2.1rem);
  font-weight: 500;
}

.project-card h3 a {
  text-decoration: none;
}

.project-card p {
  color: var(--ink-soft);
}

.project-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
  color: var(--brown);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 0.22rem 0.5rem;
  background: rgba(53, 95, 120, 0.08);
  border: 1px solid rgba(53, 95, 120, 0.15);
  color: var(--blue);
  font-size: 0.75rem;
  line-height: 1.35;
}

.page-intro {
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

body[data-page="resume"] .page-intro { padding-block: 2rem; }
.resume-intro { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.resume-intro h1 { margin: 0; }
.resume-photo { width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; object-position: center 55%; border-radius: 7px; }
.resume-content { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); column-gap: clamp(2.5rem, 5vw, 4.5rem); row-gap: 2rem; padding-bottom: 4rem; align-items: start; }
.resume-portrait { grid-column: 1; grid-row: 1; width: 85%; justify-self: center; }
.resume-identity { grid-column: 2; grid-row: 1; }
.resume-sidebar { grid-column: 1; grid-row: 2; }
.resume-primary { grid-column: 2; grid-row: 2; }
.resume-sidebar > .resume-section:first-child,
.resume-primary > .resume-section:first-child { border-top: 0; padding-top: 0; }
.resume-sidebar, .resume-primary { min-width: 0; }
.resume-portrait, .resume-identity { margin-bottom: 0; }
.resume-name { font-size: clamp(2rem, 3vw, 2.6rem); margin-bottom: .6rem; }
.resume-location { color: var(--ink-soft); margin-bottom: .6rem; }
.resume-contact { display: flex; gap: 1.25rem; }
.resume-updated { color: var(--ink-soft); font-size: .8rem; margin: .8rem 0 0; }
.resume-updated + .button { margin-top: calc(.75rem + 24px); }
.resume-sidebar .resume-entry-heading { flex-direction: column; gap: .4rem; }
.resume-sidebar .resume-meta { text-align: left; }
.resume-sidebar .resume-section { font-size: .9rem; }
.resume-sidebar .resume-section h2 { font-size: 1.5rem; }
.resume-sidebar h3 { font-size: 1rem; }
.resume-coursework { font-size: inherit; color: inherit; }
.resume-section { border-top: 1px solid var(--line); padding-top: 1.6rem; margin-bottom: 2.4rem; }
.resume-section h2 { font-size: clamp(1.5rem, 2.3vw, 1.9rem); margin-bottom: 1.6rem; }
.resume-entry + .resume-entry { margin-top: 1.8rem; }
.resume-entry-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; column-gap: 1.5rem; row-gap: .4rem; }
.resume-primary .resume-entry-heading > div:first-child { flex: 1 1 340px; }
.resume-entry-heading > div:first-child { min-width: 0; }
.resume-entry h3 { line-height: 1.4; margin-bottom: .25rem; }
.resume-entry h3 a { text-decoration: underline; }
.resume-role { margin-bottom: 0; }
.resume-meta { flex-shrink: 0; text-align: right; color: var(--ink-soft); font-size: .9rem; }
.resume-meta p { margin: 0; }
.resume-entry ul { padding-left: 1.25rem; margin: .65rem 0 0; }
.resume-entry li { padding-left: .2rem; margin-bottom: .4rem; }
.resume-skills { margin: 0; }
.resume-skills > div { display: grid; grid-template-columns: 1fr; gap: .15rem; margin-bottom: 1rem; }
.resume-skills dt { font-weight: 600; }
.resume-skills dd { margin: 0; }
@media (max-width: 800px) {
  .resume-content { grid-template-columns: 80px minmax(0, 1fr); gap: 0 1.25rem; }
  .resume-sidebar, .resume-primary { display: contents; }
  .resume-portrait { grid-column: 1; grid-row: 1; width: 100%; }
  .resume-identity { grid-column: 2; grid-row: 1; }
  .resume-portrait, .resume-identity { margin-bottom: 2rem; }
  .resume-name { font-size: clamp(1.6rem, 5vw, 2rem); }
  .resume-location { font-size: .85rem; }
  .resume-contact { gap: 1rem; font-size: .9rem; }
  .resume-content .resume-section { grid-column: 1 / -1; }
  #resume-0 { scroll-margin-top: 5rem; }
  .resume-section:has(#resume-0) { grid-row: 2; }
  .resume-section:has(#resume-1) { grid-row: 3; }
  .resume-section:has(#resume-2) { grid-row: 4; }
  .resume-section:has(#resume-3) { grid-row: 5; }
  .resume-photo { width: 80px; }
  .resume-entry-heading { flex-direction: column; gap: .4rem; }
  .resume-primary .resume-entry-heading > div:first-child { flex: auto; }
  .resume-meta { text-align: left; }
  .resume-skills > div { grid-template-columns: 1fr; gap: .1rem; margin-bottom: .9rem; }
}

.case-hero .tag-list {
  margin: 0;
}

body[data-page="projects"] .page-intro {
  padding-top: 2rem;
  padding-bottom: 1.5rem;
}

body:is([data-page="projects"], [data-page="resume"]) .page-intro h1 {
  margin-bottom: 0;
  font-size: clamp(2.25rem, 3.375vw, 2.8125rem);
  font-weight: 500;
  line-height: 1.08;
}

.case-hero .case-intro {
  max-width: 820px;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
}

.case-hero {
  padding-top: clamp(0.5rem, 1vw, 1rem);
  padding-bottom: 0;
}

.case-hero-grid {
  display: block;
  max-width: 820px;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.case-hero-grid h1 {
  margin-bottom: 1.5rem;
}

.project-meta-block {
  margin-top: 1.25rem;
}

.project-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  margin: 0;
  padding: 0;
  color: var(--brown);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.45;
  list-style: none;
  text-transform: none;
}

.project-meta-strip-secondary {
  margin-top: 0.35rem;
}

.project-meta-strip li:not(:last-child)::after {
  content: "·";
  margin-left: 0.7rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.focus-area-block {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  align-items: center;
  margin-top: 0.85rem;
}

.focus-area-block .tag-list {
  margin: 0;
}

.case-top-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1rem;
  font-size: 0.94rem;
}

.report-link-arrow {
  display: inline-block;
  width: 0.75em;
  height: 0.75em;
  vertical-align: baseline;
}

.case-hero-grid:has(.project-meta-block + .case-intro) .case-intro {
  margin-top: 1.25rem;
}

.case-image img[src$="/lancaster-park-city-center/housing-market.png"] {
  padding: clamp(16px, 2vw, 24px);
  background: #fff;
}

.image-gallery:has(img[src$="/lancaster-park-city-center/scenario-1.png"]) {
  max-width: 820px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.case-gallery:has(img[src$="/lancaster-park-city-center/scenario-1.png"]),
.case-text:has(+ .case-gallery img[src$="/lancaster-park-city-center/scenario-1.png"]) {
  margin-bottom: 2rem;
}

.project-card img[src$="/lancaster-park-city-center/report-cover.png"] {
  object-position: center top;
}

body[data-page="projects"] .project-card img[src$="/allegheny-forward/logo-cover.png"] {
  object-fit: contain;
  background: transparent;
  filter: none;
}

body[data-page="projects"] .project-card img[src$="/lancaster-park-city-center/report-cover.png"],
body[data-page="projects"] .project-card img[src$="/haddon-township-downtown-action-plan/report-cover.png"] {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.image-gallery img[src*="/lancaster-park-city-center/scenario-"],
.image-gallery img[src*="/lancaster-park-city-center/report-spread-"] {
  aspect-ratio: auto;
  background: #fff;
}

.image-gallery:has(img[src$="/lancaster-park-city-center/report-spread-28-29.png"]) {
  max-width: 820px;
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 520px) {
  .project-toc {
    grid-template-columns: 1fr;
  }

  .image-gallery:has(img[src$="/lancaster-park-city-center/scenario-1.png"]) {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hero-case-image {
  margin-top: 0;
  margin-bottom: clamp(2rem, 5vw, 4.5rem);
}

.hero-case-image img {
  max-height: 760px;
  object-fit: contain;
  background: var(--paper-strong);
}

.case-body {
  padding-bottom: 2rem;
}

.case-section {
  margin-bottom: clamp(2rem, 5vw, 4.5rem);
}

.case-text {
  max-width: 820px;
}

.case-text p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.case-image.full img {
  max-height: 820px;
  object-fit: contain;
  background: var(--paper-strong);
}

.case-media-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.case-text-media .case-text-copy p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.case-text-media .case-image {
  min-width: 0;
}

.case-media-layout:has(img[src$="/allegheny-forward/high-injury-network.png"]) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-media-layout .case-image:has(img[src$="/allegheny-forward/high-injury-network.png"]) {
  width: 100%;
  max-width: 320px;
  justify-self: center;
}

.case-visual {
  margin-bottom: clamp(1.5rem, 3vw, 3rem);
}

.figure-source {
  display: block;
  margin-top: 0.2rem;
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.4;
}

.case-gallery h2 {
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.case-gallery > p {
  max-width: 820px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.image-gallery img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: var(--paper-strong);
}

.image-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.image-pair img {
  aspect-ratio: 4 / 3;
}

.image-pair img[src*="/allegheny-forward/"] {
  aspect-ratio: auto;
}

/* Haddon report figures retain their complete maps, legends, and page proportions. */
.image-pair img[src*="/haddon-township-downtown-action-plan/"],
.image-gallery img[src*="/haddon-township-downtown-action-plan/"] {
  aspect-ratio: auto;
}

.image-gallery:has(img[src$="/haddon-township-downtown-action-plan/report-spread-62-63.png"]) {
  grid-template-columns: 1fr;
  max-width: 820px;
}

.image-pair img[src$="/haddon-township-downtown-action-plan/recommendations-map.png"],
.image-pair img[src$="/haddon-township-downtown-action-plan/crossing-action.png"] {
  aspect-ratio: 4 / 3;
  padding: clamp(20px, 2vw, 28px);
  object-fit: contain;
  background: #fff;
}

.image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.supporting-info {
  max-width: 920px;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.supporting-info dl {
  display: grid;
  gap: 0.8rem;
  margin: 0;
}

.supporting-info div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 1rem;
}

.supporting-info dt {
  color: var(--brown);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.supporting-info dd {
  margin: 0;
  color: var(--ink-soft);
}

.project-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-block: 2rem 5rem;
  border-top: 1px solid var(--line);
}

.project-nav a {
  min-height: 92px;
  padding: 1rem;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  text-decoration: none;
}

.project-nav a.project-nav-next {
  grid-column: 2;
  text-align: right;
}

.project-nav span {
  display: block;
  color: var(--brown);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resume-list {
  display: grid;
  gap: 1rem;
}

.resume-list article {
  padding-block: 1rem;
  border-top: 1px solid var(--line);
}

.resume-list h3 {
  margin-bottom: 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
}

.resume-list p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

body[data-page="contact"] .contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 45%);
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
}

body[data-page="contact"] .contact-photo {
  display: block;
  width: 100%;
  height: auto;
}

body[data-page="contact"] .contact-content h1 {
  margin-bottom: 1rem;
}

body[data-page="contact"] .contact-content .lede {
  max-width: 720px;
  margin-bottom: 0;
}

body[data-page="contact"] .contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 3rem;
  margin-top: 2rem;
}

body[data-page="contact"] .contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.5rem;
  text-decoration: none;
}

body[data-page="contact"] .contact-links span {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

body[data-page="contact"] .contact-links svg {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

@media (max-width: 800px) {
  body[data-page="contact"] .contact-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  body[data-page="contact"] .contact-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

.site-footer {
  padding-block: 2rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-grid p {
  margin: 0;
}

.footer-grid div {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-grid a {
  color: var(--ink-soft);
}

.lightbox {
  width: min(94vw, 1280px);
  max-height: 92vh;
  padding: 1rem;
  background: var(--paper-strong);
  border: 1px solid var(--line);
}

.lightbox::backdrop {
  background: rgba(37, 42, 39, 0.72);
}

.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
}

.lightbox-close {
  min-height: 40px;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 72px 0 auto;
    display: grid;
    gap: 0;
    padding: 1rem;
    background: var(--paper-strong);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    transition: transform 180ms ease;
  }

  .nav-open .nav-links {
    transform: translateY(0);
  }

  .nav-links a {
    padding: 0.9rem 0;
    font-size: 1.05rem;
  }

  .hero-grid,
  .section-heading-row,
  .two-column,
  .about-grid,
  .resume-list-grid,
  .contact-grid,
  .case-hero-grid,
  .project-card-large:first-child,
  .image-pair,
  .project-nav {
    grid-template-columns: 1fr;
  }

  .section-heading-row .text-link {
    justify-self: start;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .image-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-media-layout {
    grid-template-columns: 1fr;
  }

  .case-media-layout:has(img[src$="/allegheny-forward/high-injury-network.png"]) {
    grid-template-columns: 1fr;
  }

  .project-card-large:first-child {
    grid-column: span 1;
  }

  .project-card-large:first-child img {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .project-card-large:first-child .project-card-body {
    padding: 1.2rem 1.1rem 1.4rem;
  }

  .supporting-info div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .project-nav a.project-nav-next {
    grid-column: auto;
    text-align: left;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .project-index-grid {
    grid-template-columns: 1fr;
  }

  .container,
  .nav-shell {
    width: min(calc(100% - 1.25rem), var(--container));
  }

  h1 {
    font-size: clamp(2rem, 9.5vw, 3rem);
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .inline-actions {
    width: 100%;
  }

  .image-gallery {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Complete pop-up boards retain their native proportions in the shared gallery. */
.image-gallery img[src*="/fox-chase-burholme-active-transportation-plan/"] {
  aspect-ratio: auto;
  height: auto;
}

.project-card img[src$='/indego-rebalance-analysis/model-mae-cover.png'] { object-fit: contain; background: #fff; }
/* White space around the complete Indego model comparison only. */
.case-image.full .image-button:has(img[src$="/indego-rebalance-analysis/observed-predicted-comparison.png"]) {
  padding: 3.69458% 6.89655%;
  background: #fff;
}
.case-image.full img[src$="/indego-rebalance-analysis/observed-predicted-comparison.png"] {
  display: block;
  height: auto;
  max-height: none;
  border: 0;
  box-shadow: none;
}

/* Borderless maps for Planning Indego Bike Share Stations only. */
img[src*='/indego-bike-share-stations/'] { border: 0; }
/* Email actions retain their existing link typography and layout. */
[data-copy-email] { cursor: pointer; text-decoration: underline; }
[data-copy-email]:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.email-copy-feedback {
  position: fixed;
  z-index: 10000;
  max-width: min(320px, calc(100vw - 16px));
  padding: .55rem .8rem;
  border-radius: 4px;
  background: var(--green);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: .85rem;
  line-height: 1.4;
  box-shadow: 0 3px 12px #0002;
  pointer-events: none;
  visibility: hidden;
}
.email-copy-feedback.is-visible { visibility: visible; }
.email-copy-buffer { position: fixed; left: -9999px; top: 0; }
