@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/fonts/jakarta-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/fonts/jakarta-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #fcfcfc;
  --ink: #535353;
  --secondary: #737373;
  --line: #e4e4e2;
  --selected: #f0f0ee;
  --padding: 32px;
  --row-height: 96px;
  --year-column: 16%;
  --name-column: 30%;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); scrollbar-gutter: stable; }
body { margin: 0; color: var(--ink); font: 400 14px/1.5 "Plus Jakarta Sans", sans-serif; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid #535353; outline-offset: 5px; border-radius: 2px; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .35; }
.page { max-width: 1600px; margin: 0 auto; padding: 32px var(--padding) 24px; }
.masthead { display: flex; align-items: baseline; justify-content: space-between; gap: 28px; min-height: 32px; margin-bottom: 64px; }
.name { font-size: 16px; line-height: 20px; }
.discipline { margin: 0; font-size: 14px; color: var(--secondary); }
.index-heading, .project-row { display: grid; grid-template-columns: var(--year-column) var(--name-column) 1fr 44px; padding-inline: 12px; }
.index-heading { height: 37px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--secondary); }
.project-list { list-style: none; margin: 0; padding: 0; }
.project { border-bottom: 1px solid var(--line); position: relative; }
.project-row { align-items: center; min-height: var(--row-height); transition: background-color 160ms ease; }
.project.is-active > .project-row { background-color: var(--selected); }
.year { font-size: 14px; color: var(--secondary); }
.project-title { font-size: 18px; font-weight: 400; margin: 0; line-height: 1.6; }
.project-title a { display: inline-block; padding-block: 8px; }
.project-type { font-size: 14px; color: var(--secondary); }
.project.is-active .project-title { color: #333; }
.preview-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; border-radius: 50%; }
.preview-toggle svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1; fill: none; transition: transform 160ms ease; }
.preview-toggle[aria-expanded="true"] svg { transform: rotate(45deg); }
.project-preview { margin: 0; padding: 0 12px 16px; background: var(--selected); }
.preview-inner { width: min(100%, 520px); margin-inline: auto; }
.preview-stage { position: relative; aspect-ratio: 1; background: #e9e9e6; border-radius: 4px; overflow: hidden; isolation: isolate; }
.preview-media { position: absolute; inset: 0; }
.preview-media img, .preview-media video { display: block; width: 100%; height: 100%; object-fit: contain; background: #e9e9e6; }
.preview-media.is-entering { animation: appear 200ms ease both; }
.preview-error { display: flex; align-items: center; justify-content: center; height: 100%; padding: 32px; text-align: center; color: var(--ink); }
.preview-caption { display: flex; align-items: center; gap: 16px; padding-top: 12px; font-size: 11px; color: var(--secondary); }
.preview-description { margin: 0; flex: 1; }
.gallery-controls { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.gallery-controls button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; font-size: 17px; }
.gallery-controls button:hover { background: #e4e4df; }
.slide-number { font-variant-numeric: tabular-nums; min-width: 35px; text-align: center; font-size: 11px; }
.open-project { display: inline-block; font-size: 12px; padding: 10px 0 0; }
.colophon { margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: 11px; color: var(--secondary); }
.colophon p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 20; padding: 12px 18px; background: #fff; border: 1px solid var(--line); }
.skip-link:focus { top: 20px; }
.no-js .preview-toggle { display: none; }
.no-js .project-title a { text-decoration: underline; }

@keyframes appear { from { opacity: 0; } to { opacity: 1; } }

@media (min-width: 1100px) and (hover: hover) and (pointer: fine) {
  .project-row > .year { grid-column: 1; grid-row: 1; }
  .project-row > .project-title { grid-column: 2; grid-row: 1; }
  .project-row > .project-type { grid-column: 3; grid-row: 1; }
  .project-preview {
    position: fixed;
    right: max(var(--padding), calc((100vw - 1600px) / 2 + var(--padding)));
    top: var(--preview-top, 160px);
    width: clamp(320px, 36vw, 520px);
    padding: 0;
    z-index: 5;
    box-shadow: 0 2px 10px #00000004;
    border-radius: 4px;
  }
  .preview-caption { padding: 10px 12px 12px; }
  .preview-toggle { grid-column: 2; grid-row: 1; justify-self: end; margin-right: 16px; opacity: 0; transition: opacity 160ms ease; }
  .project:hover .preview-toggle, .project:focus-within .preview-toggle, .preview-toggle:focus-visible { opacity: 1; }
  .project-type { position: relative; z-index: 0; }
  .open-project { display: none; }
}

@media (max-width: 1099px) {
  :root { --padding: 24px; --row-height: 80px; --name-column: 49%; }
  .project-title { font-size: 16px; }
  .preview-inner { max-width: 428px; }
  .project-preview { padding-top: 0; }
  .masthead { gap: 20px; }
}

@media (max-width: 599px) {
  :root { --padding: 20px; --row-height: 72px; }
  .masthead { flex-direction: column; gap: 8px; min-height: 48px; margin-bottom: 48px; }
  .name { font-size: 14px; line-height: 18px; }
  .discipline { font-size: 12px; line-height: 15px; }
  .index-heading { grid-template-columns: 72px 1fr; padding-inline: 0; }
  .type-heading { display: none; }
  .project-row { grid-template-columns: 72px minmax(0, 1fr) 44px; grid-template-rows: 36px 35px; padding-inline: 0; }
  .year { grid-row: 1 / 3; align-self: start; margin-top: 16px; font-size: 12px; }
  .project-title { grid-column: 2; grid-row: 1; align-self: end; line-height: 20px; }
  .project-title a { padding-block: 4px 0; }
  .project-type { grid-column: 2; grid-row: 2; align-self: start; margin-top: 4px; font-size: 12px; }
  .preview-toggle { grid-column: 3; grid-row: 1 / 3; }
  .project-preview { padding-inline: 0; padding-bottom: 14px; }
  .preview-caption { align-items: start; gap: 8px; padding-inline: 12px; }
  .gallery-controls { gap: 0; margin-top: -10px; }
  .gallery-controls button { width: 32px; height: 36px; }
  .open-project { margin-inline: 12px; }
  .colophon { margin-top: 48px; }
}

@media (max-width: 359px) {
  :root { --padding: 16px; }
  .project-row { grid-template-columns: 56px minmax(0, 1fr) 40px; }
  .index-heading { grid-template-columns: 56px 1fr; }
  .project-type { font-size: 11px; }
  .preview-caption { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
}
