@font-face { font-family: "Roboto Mono"; src: url("assets/roboto-mono.ttf") format("truetype"); font-style: normal; font-weight: 100 700; font-display: swap; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { font-family: "Roboto Mono", monospace; margin: 0; background: #fff; color: #111; }
body { isolation: isolate; }
.screen-background { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: center; image-rendering: pixelated; filter: grayscale(1); opacity: 0.065; pointer-events: none; user-select: none; }
.layout { display: grid; grid-template-columns: 217px minmax(0, 1fr); gap: 32px; max-width: 1660px; margin: 0 auto; padding: 40px 5.2vw 80px 40px; }
.sidebar { position: fixed; top: 40px; left: max(40px, calc((100vw - 1660px) / 2 + 40px)); width: 217px; max-height: calc(100dvh - 80px); overflow-y: auto; align-self: start; }
.layout > main { grid-column: 2; }
.logo { display: block; width: 100%; aspect-ratio: 217 / 116; position: relative; overflow: hidden; background: #000; }
.logo img { position: absolute; width: 758.52535%; height: auto; max-width: none; left: -39.63134%; top: -99.13793%; }
nav { display: flex; flex-direction: column; align-items: flex-end; gap: 21px; margin-top: 21px; font: 14px/1.4 "Roboto Mono", monospace; text-transform: uppercase; }
nav a, nav span { color: inherit; text-decoration: none; }
nav a:hover { opacity: .55; }
nav span { cursor: default; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-content: start; }
.project { margin: 0; position: relative; aspect-ratio: 1; overflow: hidden; background: #f3f3f3; }
.gallery > a { display: block; color: inherit; cursor: pointer; }
.gallery > a:focus-visible { outline-offset: 4px; }
.project-detail { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(240px, 1fr); gap: 24px; align-items: start; }
.project-images { display: grid; gap: 24px; min-width: 0; }
.project-description { position: sticky; top: 40px; max-height: calc(100dvh - 80px); overflow-y: auto; font: 14px/2 "Roboto Mono", monospace; overflow-wrap: anywhere; }
.project-description h1 { margin: 0 0 40px; font: 400 clamp(30px, 2.6vw, 40px)/1 "Times New Roman", Times, serif; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.project-description p { margin: 0 0 24px; }
.project-description .disciplines { margin-top: 40px; }
.project-original { aspect-ratio: 502 / 535; }
.project.project-original img { width: calc(1188 / 502 * 100%); left: calc(237 / 502 * -100%); top: calc(101 / 535 * -100%); }
.project img { position: absolute; width: calc(1646 / 354 * 100%); height: auto; max-width: none; left: calc(var(--x) / 354 * -100%); top: calc(var(--y) / 354 * -100%); }
.project.project-photo { aspect-ratio: auto; background: transparent; }
.project.project-photo img { display: block; position: static; width: 100%; height: auto; max-width: 100%; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 10; background: #000; color: #fff; padding: 12px 18px; font-family: "Roboto Mono", monospace; }
.skip-link:focus { top: 16px; }
a:focus-visible { outline: 2px solid #176de5; outline-offset: 6px; }
@media (min-width: 1500px) { .layout { grid-template-columns: 245px minmax(0, 1fr); padding-top: 48px; } .sidebar { top: 48px; width: 245px; } .project-description { top: 48px; max-height: calc(100dvh - 96px); } }
@media (max-width: 1100px) { .layout { grid-template-columns: 170px minmax(0, 1fr); gap: 26px; padding: 30px; } .sidebar { top: 30px; left: 30px; width: 170px; max-height: calc(100dvh - 60px); } .project-description { top: 30px; max-height: calc(100dvh - 60px); } .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; } }
@media (max-width: 640px) { .layout { display: block; padding: 24px 20px 48px; } .sidebar { position: sticky; top: 0; left: auto; width: 100%; max-height: none; overflow: visible; z-index: 5; background: #fff; padding: 12px 0 20px; margin-bottom: 24px; } .logo { width: 154px; } nav { margin-top: 14px; flex-direction: row; justify-content: flex-start; align-items: center; flex-wrap: wrap; gap: 14px 20px; } .gallery { grid-template-columns: 1fr; gap: 24px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 900px) { .project-detail { grid-template-columns: minmax(0, 1fr); } .project-description { position: static; max-height: none; overflow: visible; grid-row: 1; font-size: 16px; line-height: 1.8; } }
@media (min-width: 641px) and (max-width: 800px) { .gallery { grid-template-columns: 1fr; } }

/* Consistent portfolio thumbnails, independent of the full project images. */
.gallery > .project-photo { aspect-ratio: 1; background: #f0f0f0; }
.gallery > .project-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

@media (hover: hover) { .gallery > .project-photo:hover { opacity: 0.75; } }

.project-video { aspect-ratio: 16 / 9; background: #000; }
.project-video iframe { display: block; width: 100%; height: 100%; border: 0; }
