@font-face {
  font-family: "Formula";
  src: url("/fonts/formula-condensed-light.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 300;
}

:root {
  --ink: #070707;
  --paper: #ffffff;
  --signal: #df2b23;
  --muted: #77736f;
  --line: #d8d6d2;
  --display: "Formula", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --body: Raleway, Inter, Arial, sans-serif;
  --page: min(100% - 3.75rem, 92rem);
  color-scheme: light;
  font-synthesis: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.65rem 0.9rem;
  transform: translateY(-150%);
  background: var(--paper);
  color: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  height: 4.65rem;
  background: #000;
  color: #fff;
}

.site-header__inner {
  width: var(--page);
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  width: 4rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
}

.brand img {
  width: 3.35rem;
  height: 2.5rem;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.45rem, 2.5vw, 2.6rem);
}

.site-nav a {
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 300;
  line-height: 1;
  text-decoration: none;
  text-transform: lowercase;
  transition: color 150ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--signal);
}

.menu-toggle {
  width: 2.75rem;
  height: 2.75rem;
  display: none;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  width: 1.55rem;
  height: 1px;
  display: block;
  position: relative;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before { top: -0.48rem; }
.menu-toggle span::after { top: 0.48rem; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
.menu-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }

main {
  min-height: 60vh;
}

.hero {
  width: var(--page);
  min-height: clamp(34rem, 66vh, 47rem);
  margin-inline: auto;
  padding-block: clamp(8rem, 16vh, 13rem) 6rem;
  display: flex;
  align-items: center;
}

.hero__title {
  max-width: 86rem;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4.7rem, 7.65vw, 8.2rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 0.98;
}

.hero__title span {
  display: block;
}

.featured {
  width: var(--page);
  margin-inline: auto;
  padding-bottom: 6rem;
}

.section-kicker,
.works-title,
.contact-link,
.empty-state__title {
  font-family: var(--display);
  font-weight: 300;
}

.section-kicker {
  margin: 0 0 2.5rem;
  font-size: 2rem;
  line-height: 1;
}

.featured-group {
  display: grid;
  grid-template-columns: minmax(8rem, 14rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 5rem);
  padding-block: 1.75rem 4.75rem;
  border-top: 1px solid var(--line);
}

.featured-group__label {
  position: sticky;
  top: 6.5rem;
  align-self: start;
  margin: 0;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 300;
  line-height: 1.1;
}

.featured-group__images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: start;
}

.featured-group__images figure {
  margin: 0;
  overflow: hidden;
  background: #ecebea;
}

.featured-group__images figure:nth-child(2) {
  margin-top: 4rem;
}

.featured-group__images img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: saturate(0.92);
  transition: filter 350ms ease, transform 700ms cubic-bezier(.2,.65,.3,1);
}

.featured-group__images figure:nth-child(2) img {
  aspect-ratio: 4 / 3;
}

.featured-group__images figure:hover img {
  filter: saturate(1);
  transform: scale(1.015);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-size: 1.6rem;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

.text-link::after {
  content: "\2192";
}

.works-page {
  width: min(100% - 3.75rem, 104rem);
  margin-inline: auto;
  padding-block: clamp(6rem, 11vw, 10rem) 6rem;
}

.works-heading {
  text-align: center;
}

.works-title {
  margin: 0 0 2.3rem;
  font-size: clamp(3.3rem, 5vw, 5rem);
  line-height: 1;
}

.filters {
  max-width: 70rem;
  margin: 0 auto clamp(3.5rem, 7vw, 6rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.75rem;
}

.filter-button {
  padding: 0.2rem 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 300;
  line-height: 1.2;
  cursor: pointer;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button[aria-pressed="true"] {
  border-bottom-color: currentColor;
  color: var(--ink);
}

.gallery-status {
  min-height: 1.5rem;
  margin: -3.2rem 0 1.7rem;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

.masonry {
  column-count: 3;
  column-gap: 0.72rem;
}

.photo-card {
  width: 100%;
  margin: 0 0 0.72rem;
  display: inline-block;
  position: relative;
  overflow: hidden;
  break-inside: avoid;
  background: #e7e6e4;
  cursor: zoom-in;
}

.photo-card:nth-child(7n + 1) { aspect-ratio: 2 / 3; }
.photo-card:nth-child(7n + 2) { aspect-ratio: 3 / 2; }
.photo-card:nth-child(7n + 3) { aspect-ratio: 4 / 5; }
.photo-card:nth-child(7n + 4) { aspect-ratio: 1 / 1; }
.photo-card:nth-child(7n + 5) { aspect-ratio: 5 / 4; }
.photo-card:nth-child(7n + 6) { aspect-ratio: 3 / 4; }
.photo-card:nth-child(7n) { aspect-ratio: 16 / 10; }

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.01);
  transition: opacity 420ms ease, filter 650ms ease, transform 650ms ease;
}

.photo-card img.is-loaded {
  opacity: 1;
}

.photo-card img.is-progressive {
  filter: blur(10px);
  transform: scale(1.04);
}

.photo-card:hover img {
  filter: none;
  transform: scale(1.02);
}

.load-more-wrap {
  margin-top: 4rem;
  text-align: center;
}

.load-more {
  min-width: 10rem;
  padding: 0.85rem 1.4rem 0.7rem;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}

.load-more:hover,
.load-more:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.load-more[hidden] {
  display: none;
}

.empty-state {
  padding: 4rem 1rem 6rem;
  border-block: 1px solid var(--line);
  text-align: center;
}

.empty-state[hidden] {
  display: none;
}

.empty-state__title {
  margin: 0 0 0.4rem;
  font-size: 2rem;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.biography {
  width: min(100% - 3.75rem, 160rem);
  margin-inline: auto;
  padding-block: clamp(5rem, 8vw, 8rem) 7rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 4vw, 5rem);
  align-items: start;
}

.biography__copy {
  margin: 0;
  overflow-wrap: break-word;
  font-family: var(--display);
  font-size: clamp(2.7rem, 4vw, 4.15rem);
  font-weight: 300;
  line-height: 1.06;
}

.biography__signature {
  display: block;
  margin-top: 1.15em;
}

.biography__portrait {
  width: 100%;
  position: sticky;
  top: 6.5rem;
  margin: 0;
  overflow: hidden;
  background: #e7e6e4;
}

.biography__portrait img {
  width: 100%;
  height: auto;
}

.biography__portrait .archive-placeholder {
  min-height: 35rem;
}

.contact {
  width: var(--page);
  min-height: calc(100vh - 4.65rem);
  margin-inline: auto;
  padding-block: clamp(7rem, 12vw, 12rem);
  display: grid;
  place-items: center;
}

.contact__inner {
  width: min(100%, 62rem);
  text-align: center;
}

.contact__eyebrow {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-link {
  display: block;
  padding-block: 1.5rem;
  border-block: 1px solid var(--line);
  font-size: clamp(3rem, 7.1vw, 7.4rem);
  line-height: 1;
  overflow-wrap: anywhere;
  text-decoration: none;
  transition: color 160ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--signal);
}

.contact__note {
  max-width: 30rem;
  margin: 2rem auto 0;
  color: var(--muted);
}

.site-footer {
  background: #000;
  color: #fff;
}

.site-footer__inner {
  width: var(--page);
  min-height: 12rem;
  margin-inline: auto;
  padding-block: 2.8rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
}

.site-footer__social {
  display: flex;
  gap: 1.4rem;
}

.site-footer__social a,
.site-footer__email {
  font-family: var(--display);
  font-size: 1.35rem;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.site-footer__meta {
  margin: 1rem 0 0;
  color: #aaa;
  font-size: 0.78rem;
}

.lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  background: rgba(0, 0, 0, 0.96);
  color: #fff;
}

.lightbox[aria-hidden="false"] {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.lightbox__bar {
  min-height: 4.3rem;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lightbox__caption {
  color: #c7c7c7;
  font-size: 0.82rem;
}

.lightbox__close,
.lightbox__nav {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.lightbox__close {
  width: 2.75rem;
  height: 2.75rem;
  font-size: 2rem;
}

.lightbox__stage {
  min-height: 0;
  padding-inline: 5rem;
  display: grid;
  place-items: center;
}

.lightbox__stage img {
  max-width: 100%;
  max-height: calc(100vh - 9rem);
  object-fit: contain;
}

.lightbox__controls {
  position: absolute;
  inset: 50% 0 auto;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.lightbox__nav {
  width: 4.25rem;
  height: 4.25rem;
  font-family: var(--display);
  font-size: 2.5rem;
  pointer-events: auto;
}

.archive-placeholder {
  width: 100%;
  display: grid;
  place-items: center;
  padding: 3rem;
  background: linear-gradient(135deg, #deddda, #f1f0ee 45%, #d0cfcd);
  color: #6a6763;
  text-align: center;
}

.not-found {
  min-height: calc(100vh - 4.65rem);
  display: grid;
  place-items: center;
  text-align: center;
}

.not-found h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(5rem, 15vw, 12rem);
  font-weight: 300;
  line-height: 0.8;
}

@media (max-width: 900px) {
  :root { --page: min(100% - 2rem, 92rem); }

  .menu-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    inset: 4.65rem 0 0;
    padding: 3rem 2rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1rem;
    background: #000;
  }

  .menu-open .site-nav { display: flex; }
  .site-nav a { font-size: clamp(3rem, 14vw, 5rem); }

  .hero {
    min-height: 35rem;
    padding-block: 6rem 4rem;
  }

  .hero__title { font-size: clamp(3.7rem, 14vw, 6.3rem); }

  .featured-group {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }

  .featured-group__label { position: static; }
  .featured-group__images { gap: 0.5rem; }
  .featured-group__images figure:nth-child(2) { margin-top: 2rem; }

  .masonry { column-count: 2; }

  .biography {
    width: var(--page);
    grid-template-columns: 1fr;
    padding-top: 4rem;
  }

  .biography__portrait {
    position: static;
    order: -1;
  }

  .biography__portrait .archive-placeholder { min-height: 22rem; }
}

@media (min-width: 1280px) {
  .masonry { column-count: 4; }
}

@media (max-width: 560px) {
  :root { --page: calc(100% - 1.5rem); }

  .site-header { height: 4.2rem; }
  .site-nav { inset-block-start: 4.2rem; }

  .hero {
    min-height: calc(100svh - 4.2rem);
    padding-block: 5.5rem;
    align-items: flex-start;
  }

  .hero__title { font-size: clamp(3.7rem, 16vw, 5.5rem); }
  .featured { padding-bottom: 4rem; }

  .featured-group__images {
    grid-template-columns: 1fr;
  }

  .featured-group__images figure:nth-child(2) { margin-top: 0; }
  .featured-group__images img,
  .featured-group__images figure:nth-child(2) img { aspect-ratio: auto; }

  .works-page { padding-block: 4.5rem 4rem; }
  .filters { margin-bottom: 4rem; gap: 0.55rem 1.25rem; }
  .gallery-status { margin-top: -2.9rem; }
  .masonry { column-count: 1; }

  .photo-card,
  .photo-card:nth-child(n) { aspect-ratio: auto; }

  .photo-card img { height: auto; }

  .biography { padding-block: 2rem 4rem; }
  .biography__copy { font-size: clamp(2.5rem, 12vw, 3.45rem); }

  .contact { min-height: calc(100svh - 4.2rem); }
  .contact-link { font-size: clamp(2.25rem, 12vw, 4rem); }

  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__email { justify-self: start; }

  .lightbox__stage { padding-inline: 0.5rem; }
  .lightbox__controls { inset-inline: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.001ms !important; }
}
