:root {
  --paper: #fbfbf8;
  --ink: #2b2d29;
  --muted: #71736d;
  --line: #d9dad4;
  --soft: #f1f2ed;
  --green: #5f7768;
  --blue: #567483;
  --rust: #9a654d;
  --max: 1080px;
  --text: 720px;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: #a9aba3; text-underline-offset: .18em; }
a:hover { text-decoration-color: currentColor; }
button { font: inherit; }

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

.site-header {
  width: min(var(--max), calc(100% - 3rem));
  margin: 0 auto;
  padding: 1.6rem 0 1.35rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
  border-bottom: 1px solid var(--line);
}
.identity { display: block; text-decoration: none; width: fit-content; }
.identity strong { display: block; font-size: 1rem; line-height: 1.2; font-weight: 600; }
.identity span { display: block; margin-top: .25rem; color: var(--muted); font-family: var(--serif); font-size: .9rem; }
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem 1.4rem; }
.site-nav a { text-decoration: none; color: var(--muted); font-size: .84rem; }
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--ink); }
.menu-toggle { display: none; border: 0; padding: 0; background: none; color: var(--ink); }

.shell { width: min(var(--max), calc(100% - 3rem)); margin: 0 auto; }
.narrow { width: min(var(--text), calc(100% - 3rem)); margin: 0 auto; }

.home-intro {
  display: grid;
  grid-template-columns: minmax(230px, .72fr) minmax(0, 1.28fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
  padding: clamp(4rem, 9vw, 8rem) 0 3rem;
}
.home-intro h1,
.page-intro h1 { margin: 0; font-size: clamp(2.35rem, 5vw, 4.15rem); line-height: 1.06; letter-spacing: -.035em; font-weight: 500; }
.home-intro .role { margin: .9rem 0 0; color: var(--muted); font-family: var(--serif); font-size: 1.05rem; }
.intro-copy { max-width: 40rem; }
.intro-copy p { margin: 0 0 1rem; font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.6; }
.intro-copy .small { color: var(--muted); font-family: var(--sans); font-size: .85rem; }

.quiet-hero { margin: 0 0 clamp(5rem, 10vw, 9rem); }
.quiet-hero img { width: 100%; max-height: 560px; object-fit: cover; filter: saturate(.75); }
.caption { margin: .65rem 0 0; color: var(--muted); font-size: .73rem; }

.content-section { padding: 0 0 clamp(5rem, 9vw, 8rem); scroll-margin-top: 2rem; }
.section-heading {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  align-items: baseline;
  padding-top: 1rem;
  margin-bottom: 2.5rem;
  border-top: 1px solid var(--line);
}
.section-heading h2 { margin: 0; font-size: 1.35rem; font-weight: 500; }
.section-heading p { max-width: 42rem; margin: 0; color: var(--muted); font-family: var(--serif); }

.photo-strip { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: .8rem; }
.photo-strip img { width: 100%; height: 280px; object-fit: cover; filter: saturate(.82); }
.section-link { display: inline-block; margin-top: 1.2rem; font-size: .84rem; }

.work-list { border-top: 1px solid var(--line); }
.work-row {
  display: grid;
  grid-template-columns: 115px 1fr 220px;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.work-row:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.work-row .type { color: var(--muted); font-family: var(--mono); font-size: .68rem; line-height: 1.45; text-transform: uppercase; letter-spacing: .03em; }
.work-row h3 { margin: 0 0 .35rem; font-size: 1.12rem; font-weight: 500; line-height: 1.35; }
.work-row p { margin: 0; color: var(--muted); font-family: var(--serif); font-size: .95rem; }
.work-row .year { color: var(--muted); text-align: right; font-size: .78rem; }

.page-intro { padding: clamp(4rem, 8vw, 7rem) 0 3.5rem; }
.page-intro h1 { max-width: 15ch; }
.page-intro .lede { max-width: 46rem; margin: 1.5rem 0 0; font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.35rem); }
.page-intro .note { max-width: 46rem; margin: 1rem 0 0; color: var(--muted); font-size: .82rem; }
.anchor-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; margin-top: 2rem; font-size: .84rem; }

.project-section { padding: 1.2rem 0 clamp(4rem, 8vw, 7rem); border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.project-section > header { display: grid; grid-template-columns: 180px 1fr; gap: 2rem; margin-bottom: 2.8rem; }
.project-section > header h2 { margin: 0; font-size: 1.35rem; font-weight: 500; }
.project-section > header p { max-width: 42rem; margin: 0; color: var(--muted); font-family: var(--serif); }

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
  margin: 0;
  padding: 0;
  list-style: none;
}
.photo-gallery--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.photo-gallery--panoramas { grid-template-columns: minmax(0, 1fr); }
.archive-photo { margin: 0; }
.archive-photo a { display: block; }
.archive-photo img { width: 100%; height: auto; }
.photo-gallery:not(.photo-gallery--three) .archive-photo--portrait img {
  width: auto;
  max-height: 32rem;
  margin-inline: auto;
  object-fit: contain;
}
.archive-photo figcaption {
  margin-top: .45rem;
  color: var(--muted);
  font-size: .8rem;
}
.photography-methods { font-size: .95rem; }
.photography-methods div { grid-template-columns: 7rem 1fr; }
.photography-statement { max-width: var(--text); font-family: var(--serif); font-size: 1.05rem; }
.photography-statement p:first-child { margin-top: 0; }
.photography-masthead { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.photography-masthead img { width: 100%; height: auto; }
.photography-about {
  display: grid;
  grid-template-columns: minmax(0, var(--text)) minmax(0, 230px);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.project-entry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; padding: 2.3rem 0; border-top: 1px solid var(--line); }
.project-entry:first-of-type { border-top: 0; padding-top: 0; }
.entry-meta { margin-bottom: .55rem; color: var(--muted); font-family: var(--mono); font-size: .65rem; letter-spacing: .03em; text-transform: uppercase; }
.project-entry h3 { margin: 0 0 .8rem; font-size: clamp(1.35rem, 2.4vw, 1.85rem); line-height: 1.25; font-weight: 500; }
.project-entry p { margin: 0 0 1rem; font-family: var(--serif); }
.project-entry .more { font-family: var(--sans); font-size: .82rem; }

.media-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #e7e8e2; }
.media-frame iframe,
.media-frame video,
.media-frame canvas { width: 100%; height: 100%; border: 0; display: block; }
.media-frame.squareish { aspect-ratio: 4 / 3; }
.media-note { margin: .55rem 0 0 !important; color: var(--muted); font-family: var(--sans) !important; font-size: .72rem; line-height: 1.45; }
.splat-frame { aspect-ratio: 16 / 10; }
.pointcloud-entry { display: block; }
.pointcloud-entry > p { max-width: 46rem; }
.pointcloud-frame { aspect-ratio: auto; height: clamp(28rem, 58vw, 38rem); background: #14212b; }

.detail-head { padding: clamp(3.5rem, 7vw, 6rem) 0 2.8rem; border-bottom: 1px solid var(--line); }
.breadcrumbs { margin: 0 0 2.5rem; color: var(--muted); font-size: .76rem; }
.breadcrumbs a { text-decoration: none; }
.detail-head h1 { max-width: 20ch; margin: 0; font-size: clamp(2.1rem, 4.5vw, 3.65rem); line-height: 1.12; letter-spacing: -.03em; font-weight: 500; }
.detail-summary { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(240px, .7fr); gap: 4rem; align-items: start; margin-top: 2rem; }
.detail-summary > p { margin: 0; font-family: var(--serif); font-size: 1.15rem; }
.metadata { margin: 0; font-size: .78rem; }
.metadata div { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: .35rem 0; }
.metadata dt { color: var(--muted); }
.metadata dd { margin: 0; }

.detail-media { padding: 2.5rem 0 1rem; }
.media-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.article { width: min(var(--text), calc(100% - 3rem)); margin: 0 auto; padding: 3rem 0 6rem; }
.article section { margin: 0 0 3rem; }
.article h2 { margin: 0 0 .8rem; font-size: 1.3rem; font-weight: 500; }
.article h3 { margin: 2rem 0 .6rem; font-size: 1rem; font-weight: 600; }
.article p,
.article li { font-family: var(--serif); font-size: 1.05rem; }
.article p { margin: 0 0 1.15rem; }
.article ul { padding-left: 1.25rem; }
.article li { margin-bottom: .45rem; }
.article blockquote { margin: 2rem 0; padding-left: 1.25rem; border-left: 2px solid var(--green); font-family: var(--serif); font-size: 1.2rem; }
.article .small-note { padding: 1rem; background: var(--soft); color: var(--muted); font-family: var(--sans); font-size: .78rem; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 2.5rem 0 4rem; }
.principle { padding-top: .8rem; border-top: 2px solid var(--line); }
.principle h2 { font-size: 1rem; }
.principle p { color: var(--muted); font-family: var(--serif); font-size: .92rem; }

.contact-list { margin-top: 0; }
.contact-list h2 { margin: 0; font-size: 1.18rem; font-weight: 500; }
.contact-list .contact-role { margin: .35rem 0 1rem; color: var(--green); font-family: var(--sans); font-weight: 500; }
.contact-links { display: grid; gap: .3rem; padding: 0; list-style: none; font-size: .88rem; overflow-wrap: anywhere; }

.range-demo { padding: 1rem; border: 1px solid var(--line); background: #f5f6f1; }
.range-canvas-wrap { position: relative; aspect-ratio: 16 / 8; }
.range-canvas-wrap canvas { width: 100%; height: 100%; display: block; }
.range-controls { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-top: .65rem; }
.range-controls p { margin: 0; color: var(--muted); font-size: .72rem; }
.range-toggle { border: 1px solid var(--line); border-radius: 2rem; padding: .35rem .7rem; background: white; color: var(--ink); cursor: pointer; font-size: .72rem; }

.site-footer { width: min(var(--max), calc(100% - 3rem)); margin: 0 auto; padding: 1.5rem 0 3rem; display: flex; justify-content: space-between; gap: 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.site-footer p { margin: 0; }

@media (max-width: 780px) {
  .site-header { width: min(100% - 2rem, var(--max)); grid-template-columns: 1fr auto; }
  .menu-toggle { display: block; }
  .site-nav { display: none; grid-column: 1 / -1; justify-content: flex-start; padding-top: 1rem; }
  .nav-open .site-nav { display: flex; }
  .shell, .narrow { width: min(100% - 2rem, var(--max)); }
  .home-intro,
  .section-heading,
  .project-section > header,
  .project-entry,
  .detail-summary { grid-template-columns: 1fr; gap: 1.2rem; }
  .home-intro { padding-top: 3.5rem; }
  .photo-strip { grid-template-columns: 1fr 1fr; }
  .photo-strip img { height: 220px; }
  .photo-strip img:last-child { grid-column: 1 / -1; }
  .photo-gallery--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-row { grid-template-columns: 88px 1fr; }
  .work-row .year { display: none; }
  .project-entry { padding: 2rem 0; }
  .project-entry .media-frame,
  .project-entry .range-demo { order: -1; }
  .media-pair, .principles { grid-template-columns: 1fr; }
  .detail-summary { margin-top: 1.4rem; }
}

@media (max-width: 480px) {
  .photo-strip { grid-template-columns: 1fr; }
  .photo-strip img, .photo-strip img:last-child { grid-column: auto; height: 240px; }
  .photo-gallery { grid-template-columns: minmax(0, 1fr); }
  .photography-about { grid-template-columns: minmax(0, 1fr); }
  .photography-about .archive-photo { max-width: 230px; }
  .work-row { grid-template-columns: 1fr; gap: .5rem; }
  .site-footer { flex-direction: column; }
}

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