:root {
  --bg: #fff;
  --fg: #000;
  --muted: rgba(0, 0, 0, 0.52);
  --project-red: #C10E1A;
  --paper: rgba(0, 0, 0, 0.08);
  --gutter: 8px;
  --header-height: 34px;
  --body-font: Arial, Helvetica, sans-serif;
  --header-font: Helvetica, Arial, sans-serif;
}

@media (min-width: 768px) {
  :root {
    --gutter: 16px;
    --header-height: 38px;
  }
}

@media (min-width: 1280px) {
  :root {
    --header-height: 48px;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body-font);
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.15;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

button {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  width: 100%;
  min-height: var(--header-height);
  padding: 0.55rem var(--gutter);
  font-family: var(--header-font);
}

.site-nav {
  display: grid;
  grid-area: 1 / 1;
  grid-template-columns: 1fr min-content 1fr;
  align-items: center;
  gap: var(--gutter);
  width: 100%;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.nav-links-left {
  justify-self: start;
}

.nav-links-right {
  justify-self: end;
}

.nav-link,
.nav-logo {
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.72;
  text-transform: uppercase;
  transition: color 180ms ease, font-size 180ms ease;
}

.nav-link {
  font-size: clamp(0.875rem, 0.62vw + 0.72rem, 1.45rem);
}

.nav-logo {
  justify-self: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.35rem, 3.2vw, 3.7rem);
  letter-spacing: 0.08em;
  line-height: 0.9;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--project-red);
}

.site-tagline {
  position: absolute;
  top: clamp(3rem, 6vw, 5.2rem);
  left: 50%;
  max-width: 28rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.875rem, 0.7vw + 0.7rem, 1.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-align: center;
  text-transform: lowercase;
  transition: opacity 180ms ease;
  transform: translateX(-50%);
}

html.is-header-compact .nav-logo {
  font-size: clamp(0.875rem, 0.62vw + 0.72rem, 1.45rem);
}

html.is-scrolling-down .site-tagline {
  opacity: 0;
  pointer-events: none;
}

.work-main {
  padding: 24svh var(--gutter) 10rem;
}

.work-grid {
  display: flex;
  flex-direction: column;
  gap: var(--gutter);
  margin: 0;
  padding: 0;
  list-style: none;
}

.work-item {
  color: var(--project-red);
}

.work-image-link {
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--paper);
}

.work-item.is-portrait .work-image-link {
  aspect-ratio: 4 / 5;
}

.work-item.is-landscape .work-image-link {
  aspect-ratio: 16 / 9;
}

.work-item.is-tall .work-image-link {
  aspect-ratio: 2 / 3;
}

.work-item.is-wide .work-image-link {
  aspect-ratio: 16 / 9;
}

.work-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 180ms ease;
  user-select: none;
}

.work-image-link:hover img {
  opacity: 0.78;
}

.work-caption {
  max-width: 26rem;
  padding-top: 0.55rem;
}

.work-caption h2,
.project-copy h1,
.info-panel h1 {
  margin: 0;
  font-family: var(--body-font);
  font-weight: 900;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.work-caption h2 {
  font-size: clamp(1.25rem, 1.35vw, 2.1rem);
  line-height: 0.82;
}

.work-caption p,
.project-copy p,
.project-meta,
.info-panel p,
.info-links,
.site-footer {
  margin: 0;
  font-size: clamp(0.875rem, 0.55vw + 0.74rem, 1.12rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-transform: lowercase;
}

.work-caption p {
  margin-top: 0.22rem;
}

.work-caption .work-summary {
  max-width: 24rem;
  margin-top: 0.65rem;
  color: var(--fg);
  font-size: clamp(0.72rem, 0.22vw + 0.68rem, 0.86rem);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.22;
  text-transform: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 var(--gutter) var(--gutter);
  color: var(--muted);
}

.site-footer a:hover,
.info-links a:hover,
.project-back:hover {
  color: var(--project-red);
}

.project-main {
  min-height: calc(100svh - var(--header-height));
  padding: clamp(4rem, 13svh, 9rem) var(--gutter) 6rem;
  color: var(--project-red);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: var(--gutter);
}

.project-hero {
  display: grid;
  gap: var(--gutter);
}

.project-media {
  margin: 0;
  overflow: hidden;
  background: var(--paper);
}

.project-media img {
  max-height: calc(100svh - 12rem);
  object-fit: cover;
  object-position: center;
}

.project-copy {
  max-width: 42rem;
}

.project-copy h1 {
  margin-bottom: 0.4rem;
  font-size: clamp(3.2rem, 9.2vw, 10.5rem);
  line-height: 0.76;
}

.project-copy h1.research-title {
  font-size: clamp(3rem, 5.8vw, 6.5rem);
  line-height: 0.82;
}

.project-copy h1.archive-title {
  max-width: 10ch;
  font-size: clamp(2.15rem, 4.4vw, 4.9rem);
  line-height: 0.86;
}

.archive-project-main .project-media {
  justify-self: start;
  width: min(100%, 28rem);
}

.archive-project-main .project-media img {
  max-height: min(72svh, 42rem);
}

.archive-project-main .project-copy {
  max-width: 52rem;
}

.archive-gallery-main {
  display: grid;
  justify-items: center;
  gap: clamp(3.5rem, 8vw, 8.5rem);
  padding: clamp(5rem, 10svh, 7rem) var(--gutter) 10rem;
}

.archive-gallery-frame {
  width: min(72vw, 44rem);
  margin: 0;
}

.archive-gallery-frame img {
  width: 100%;
  max-height: 86svh;
  object-fit: contain;
}

.archive-gallery-full {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
}

.archive-gallery-full img {
  width: 100%;
  max-height: none;
}

.archive-gallery-cover {
  width: min(64vw, 38rem);
}

.archive-gallery-credits {
  width: min(78vw, 42rem);
  margin: clamp(-2rem, -3vw, -0.75rem) 0 0;
  color: var(--fg);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(0.72rem, 0.18vw + 0.67rem, 0.86rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.28;
  text-align: center;
  text-transform: none;
}

.archive-gallery-credits h2 {
  margin: 0 0 1.45rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.15rem, 0.55vw + 1rem, 1.55rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1;
}

.archive-gallery-credits p {
  margin: 0;
}

.archive-gallery-credits a {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.project-copy p {
  max-width: 32rem;
}

.project-copy .project-type {
  margin-bottom: 0.7rem;
}

.research-article {
  display: grid;
  grid-template-columns: minmax(9rem, 0.7fr) minmax(0, 76rem) minmax(9rem, 0.7fr);
  column-gap: clamp(2rem, 4vw, 5rem);
  max-width: none;
  margin: clamp(4rem, 8vw, 8rem) auto 0;
  padding-inline: clamp(0.25rem, 1vw, 1rem);
  color: var(--fg);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(0.9rem, 0.76rem + 0.45vw, 1.28rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.44;
  text-align: justify;
  text-transform: none;
}

.research-article-spaced {
  column-gap: clamp(4rem, 8vw, 10rem);
}

.research-summary {
  justify-self: center;
  max-width: 20rem;
  margin: 0;
  color: rgba(0, 0, 0, 0.92);
  font-size: clamp(0.82rem, 0.7rem + 0.28vw, 1rem);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.22;
  text-align: left;
}

.research-article .research-summary p {
  margin: 0;
}

.research-content {
  grid-column: 2;
  min-width: 0;
  max-width: 76rem;
  padding-top: clamp(9rem, 16vw, 16rem);
}

.research-article h2,
.research-article h3 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.86;
  text-align: left;
  text-transform: uppercase;
}

.research-article h2 {
  max-width: 12ch;
  margin-bottom: clamp(1rem, 2.8vw, 2.2rem);
  font-size: clamp(3rem, 6.6vw, 7.2rem);
}

.research-article h3 {
  margin: clamp(2.4rem, 5vw, 5rem) 0 clamp(0.8rem, 2vw, 1.7rem);
  font-size: clamp(1.45rem, 2.5vw, 3.2rem);
}

.research-article p {
  margin: 0 0 1rem;
}

.research-article p:last-child {
  margin-bottom: 0;
}

.research-figure {
  margin: clamp(2rem, 5vw, 4.5rem) 0;
}

.research-figure img {
  width: 100%;
  height: auto;
  background: var(--paper);
}

.research-figure-full {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
}

.research-figure-portrait {
  width: min(26rem, 62vw);
  margin-inline: auto;
}

.info-main {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(2rem, 5vw, 4rem);
  min-height: calc(100svh - var(--header-height));
  padding: clamp(5rem, 13svh, 9rem) var(--gutter) var(--gutter);
}

.info-hero {
  align-self: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 30rem);
  align-items: start;
  gap: clamp(2rem, 6vw, 6rem);
}

.info-panel {
  display: grid;
  justify-items: start;
  max-width: 62rem;
}

.info-panel h1 {
  max-width: 16ch;
  font-size: clamp(2.7rem, 6vw, 7rem);
  line-height: 0.84;
}

.info-panel p {
  max-width: 32rem;
  margin-top: 1.25rem;
  color: var(--muted);
}

.info-portrait {
  position: relative;
  justify-self: end;
  align-self: start;
  width: min(30vw, 26rem);
  min-width: 14rem;
  margin: 0 3vw 0 0;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--paper);
}

.info-portrait-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transition: opacity 180ms ease;
}

.info-portrait-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.info-portrait:hover .info-portrait-hover {
  opacity: 1;
}

.info-links {
  align-self: end;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: calc(
      (100vw - var(--gutter) * 21) / 20 * 1.5 + var(--gutter) * 0.5
    );
    row-gap: 100px;
    padding-bottom: 100px;
  }

  .project-hero {
    grid-template-columns: minmax(0, 0.62fr) minmax(18rem, 0.38fr);
    align-items: end;
  }

  .archive-project-main .project-hero {
    grid-template-columns: minmax(14rem, 0.42fr) minmax(0, 0.58fr);
    align-items: center;
  }

}

@media (min-width: 1280px) {
  .work-grid {
    column-gap: calc(
      (100vw - var(--gutter) * 21) / 20 * 2.5 + var(--gutter) * 1.5
    );
    row-gap: 200px;
    padding-bottom: 200px;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: auto;
    padding-top: 0.55rem;
  }

  .site-nav {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .nav-logo,
  .nav-links,
  .site-tagline {
    justify-self: start;
  }

  .site-tagline {
    position: static;
    grid-area: auto;
    margin-top: 1.2rem;
    text-align: left;
    transform: none;
  }

  .work-main {
    padding-top: 16svh;
  }

  .work-caption {
    padding-bottom: 2.75rem;
  }

  .project-main,
  .info-main {
    padding-top: 24svh;
  }

  .info-hero {
    grid-template-columns: 1fr;
  }

  .info-portrait {
    justify-self: start;
    width: min(58vw, 16rem);
    margin: 0;
  }

  .project-meta,
  .site-footer,
  .info-links {
    flex-direction: column;
  }

  .research-article {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-inline: 0;
    text-align: left;
  }

  .research-summary {
    justify-self: start;
    max-width: 100%;
  }

  .research-content {
    grid-column: 1;
    padding-top: 0;
  }

  .research-figure-full {
    width: 100%;
    margin-left: 0;
  }

  .research-figure-portrait {
    width: min(100%, 22rem);
  }

  .project-media img {
    max-height: none;
  }
}
