:root {
  --paper: #f0efeb;
  --surface: #f8f7f4;
  --ink: #222722;
  --muted: #747b74;
  --line: #d9d9d1;
  --accent: #647468;
  --sans: 'DM Sans', Arial, sans-serif;
  --display: 'Space Grotesk', 'DM Sans', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; min-height: 100%; background: linear-gradient(145deg, #f4efec 0%, #eff1ed 38%, #eaf0ef 69%, #f3efe9 100%); background-attachment: fixed; }
body { min-height: 100vh; margin: 0; background: transparent; color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
.topbar { min-height: 60px; padding: 10px max(24px,calc((100vw - 1080px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); background: rgba(244,242,238,.88); }
.name { flex: 0 0 auto; color: var(--ink); text-decoration: none; font: 500 18px/1.1 var(--display); letter-spacing: -.04em; }
.category-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 17px; max-width: calc(100% - 150px); }
.category-nav a { color: #59615a; text-decoration: none; font-size: 10px; white-space: nowrap; }
.category-nav a:hover { color: var(--ink); }
main { max-width: 1080px; margin: auto; padding: 0 30px; }
.portfolio-cover { width: 100%; margin: 28px auto 4px; }
.portfolio-cover img { display: block; width: 100%; height: auto; }
.section-heading h2 { margin: 0; font: 500 23px/1.2 var(--sans); letter-spacing: -.035em; }
.section { padding: 22px 0 48px; }
.research { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; scroll-margin-top: 78px; }
.video-frame, .image-frame { position: relative; display: block; overflow: hidden; background: #e9e9e4; line-height: 0; }
.video-frame video { display: block; width: 100%; height: auto; object-fit: contain; background: #171918; }
.video-frame iframe { display: block; width: 100%; height: auto; border: 0; background: #171918; }
.image-frame { background: var(--surface); }
.image-frame img { display: block; width: 100%; height: auto; object-fit: contain; }
.research-copy { padding-top: 3px; }
.name-year { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.research-copy h2, .response-copy h2 { margin: 0; font: 500 17px/1.3 var(--sans); letter-spacing: -.02em; }
.name-year time, .caption time, .room-heading time, .shared-caption time { flex: 0 0 auto; color: var(--muted); font: 400 10px/1.2 var(--sans); font-variant-numeric: tabular-nums; }
.project-summary, .response-copy > p:last-child { margin: 0; color: #59615c; font-size: 12px; line-height: 1.6; }
.play { position: absolute; right: 10px; bottom: 10px; border: 0; border-radius: 3px; padding: 8px 11px; background: rgba(255,255,255,.96); color: var(--ink); font: 500 10px var(--sans); line-height: 1.2; cursor: pointer; }
.play span { margin-left: 5px; color: var(--accent); }
.video-frame.is-playing .play { opacity: 0; pointer-events: none; }
.video-frame.is-playing:hover .play { opacity: 1; }
.response { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; margin: 28px 0 40px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.response-copy h2 { margin-bottom: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; margin: 52px 0 19px; scroll-margin-top: 78px; }
.section > .section-heading:first-child { margin-top: 40px; }
.work-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.tile .video-frame, .tile .image-frame { background: #e9e9e4; }
.caption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 8px; }
.caption h3, .shared-caption h3 { margin: 0; font: 500 13px/1.35 var(--sans); letter-spacing: -.015em; }
.room-project { padding: 15px; border: 1px solid var(--line); background: var(--surface); }
.room-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 12px; }
.room-heading h3 { margin: 0; font: 500 13px/1.35 var(--sans); }
.process-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); align-items: start; gap: 9px; }
.process-grid figure { min-width: 0; margin: 0; }
.process-grid img { display: block; width: 100%; height: auto; }
.process-grid figcaption { padding-top: 6px; color: var(--muted); font-size: 9px; }
.render-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; gap: 9px; margin-top: 15px; }
.render-grid img { display: block; width: 100%; height: auto; }
.secondary-work { margin-top: 20px; }
.secondary-work .image-frame { aspect-ratio: 1.48; }
.secondary-work .image-frame img { width: 100%; height: 100%; object-fit: cover; }
.demo-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); align-items: start; gap: 15px 12px; }
.demo .video-frame { aspect-ratio: 1.38; }
.demo .video-frame video { width: 100%; height: 100%; object-fit: contain; }
.demo .video-frame iframe { width: 100%; height: 100%; aspect-ratio: auto !important; object-fit: contain; }
.demo .caption { padding-top: 7px; }
.practice-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.practice-grid .video-frame { aspect-ratio: 16 / 9; }
.practice-grid .video-frame video { object-fit: contain; }
.practice-grid .video-frame iframe { width: 100%; height: 100%; aspect-ratio: auto !important; }
.shared-caption { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-top: 11px; }
.shared-caption .affiliation { color: var(--muted); font: 400 10px/1.35 var(--sans); }
.shared-caption time { margin-left: auto; }
.web-project { width: calc(50% - 6px); margin-inline: auto; }
.watercolor-project { width: min(460px,100%); margin-inline: auto; }
.watercolor-project .image-frame { background: var(--surface); }
.watercolor-project .caption { padding: 9px 0 0; }
footer { display: flex; justify-content: space-between; padding: 14px 0 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
footer a { color: var(--accent); text-decoration: none; }
@media (min-width: 900px) {
  .topbar { position: sticky; top: 0; z-index: 5; }
  .section { padding-top: 22px; }
  .research-copy h2, .response-copy h2 { font-size: 17px; }
  .section-heading h2 { font-size: 23px; }
}
@media (max-width: 640px) {
  .topbar { min-height: 68px; padding: 9px 14px; gap: 12px; }
  .name { font-size: 17px; }
  .category-nav { flex: 1 1 auto; max-width: calc(100% - 92px); gap: 6px 11px; }
  .category-nav a { font-size: 9px; }
  main { padding: 0 18px; }
  .section-heading h2 { font-size: 21px; }
  .section { padding-top: 18px; padding-bottom: 36px; }
  .research { grid-template-columns: 1fr; gap: 14px; }
  .research-copy h2, .response-copy h2 { font-size: 17px; }
  .project-summary, .response-copy > p:last-child { font-size: 12px; }
  .response { grid-template-columns: 1fr; gap: 12px; margin: 25px 0 33px; padding: 14px 0; }
  .section-heading { margin: 40px 0 15px; }
  .section > .section-heading:first-child { margin-top: 28px; }
  .work-grid { gap: 17px 10px; }
  .caption h3, .shared-caption h3 { font-size: 11px; }
  .caption time, .name-year time, .room-heading time, .shared-caption time { font-size: 9px; }
  .room-project { padding: 9px; }
  .room-heading { padding-bottom: 10px; }
  .process-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 8px; }
  .render-grid { gap: 5px; margin-top: 12px; }
  .demo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px 10px; }
  .practice-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .demo .caption { gap: 5px; }
  .demo .caption h3 { font-size: 10px; }
  .shared-caption { margin-top: 9px; gap: 5px 8px; }
  .shared-caption .affiliation { font-size: 9px; }
  .web-project { width: 100%; }
  .watercolor-project { width: min(390px,100%); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
