@import url("https://fonts.googleapis.com/css2?family=Pirata+One&display=swap");

:root {
  font-family: Helvetica, Arial, sans-serif;
  color: #000;
  background: #fff;
  font-synthesis: none;
  font-size: 16px;
  letter-spacing: .04em;
  --heading-font: "Pirata One", "Arial Black", sans-serif;
  --rule: 1px solid #000;
}
* { box-sizing: border-box; }
body { margin: 0; padding: 0 32px; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
a:focus-visible { outline: 2px solid #000; outline-offset: 5px; }
.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  padding: 32px 0 26px;
  border-bottom: 3px solid #000;
}
.wordmark {
  font-family: var(--heading-font);
  font-size: clamp(28px, 4vw, 64px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.15;
  overflow-wrap: anywhere;
  min-width: 0;
  text-transform: uppercase;
}
.wordmark:hover { text-decoration: none; }
.wordmark span {
  font-family: Helvetica, Arial, sans-serif;
  display: block;
  margin-top: 18px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .035em;
  line-height: 1.4;
}
nav { display: flex; gap: 6px; flex-wrap: wrap; }
nav a {
  border: var(--rule);
  padding: 10px 12px;
  font-size: 12px;
  text-transform: uppercase;
}
nav a:hover, nav [aria-current] { background: #000; color: #fff; text-decoration: none; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  font-size: 12px;
  text-transform: uppercase;
}
h1 { margin: 0; font-family: var(--heading-font); font-size: 22px; font-weight: 400; line-height: 1.4; }
.section-heading h1 { font-size: 36px; line-height: 1.2; }
.grid {
  column-count: 3;
  column-gap: 20px;
  background: #fff;
}
.card { display: inline-block; width: 100%; min-width: 0; margin: 0 0 20px; padding: 16px; border: var(--rule); background: #fff; break-inside: avoid; vertical-align: top; }
.card:hover { text-decoration: none; }
.card img, .card video { display: block; width: 100%; height: auto; aspect-ratio: auto; }
.caption { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 7px 12px; padding: 16px 0 2px; font-size: 14px; font-weight: 700; line-height: 1.5; text-transform: uppercase; }
.caption > div { grid-column: 1 / -1; font-family: var(--heading-font); font-size: 28px; font-weight: 400; overflow-wrap: anywhere; min-width: 0; }
.caption small { font-family: Helvetica, Arial, sans-serif; letter-spacing: 0.2em; display: block; margin-top: 0; font-size: 14px; font-weight: 400; }
.caption time { font-size: 16px; font-weight: 400; }
.card:hover .caption > div { text-decoration: underline; text-underline-offset: 4px; }
.about { border-top: 3px solid #000; margin-top: 80px; padding: 28px 0 65px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.about h2 { font-family: var(--heading-font); font-size: clamp(22px, 2.4vw, 36px); font-weight: 400; line-height: 1.3; letter-spacing: 0; overflow-wrap: anywhere; text-transform: uppercase; margin: 0; }
.about h2::before { font-family: Helvetica, Arial, sans-serif; content: "ABOUT"; display: block; font-size: 11px; font-weight: 400; letter-spacing: 0; margin-bottom: 30px; }
.about p { font-size: 16px; line-height: 1.65; max-width: 560px; margin: 0 0 24px; }
.about .note { font-size: 16px; }
.about a { display: inline-block; border: var(--rule); padding: 12px 16px; font-size: 12px; text-transform: uppercase; }
.about a:hover { color: #fff; background: #000; text-decoration: none; }
footer { border-top: var(--rule); padding: 22px 0 26px; display: flex; justify-content: space-between; gap: 20px; font-size: 10px; text-transform: uppercase; }
.project-top { padding: 40px 0; }
.back { font-size: 16px; display: inline-block; margin: 25px 0 50px; text-transform: uppercase; }
.project-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.project-intro h1 { grid-column: 1; font-size: clamp(48px, 6vw, 96px); font-weight: 400; letter-spacing: 0; line-height: 1.2; text-transform: uppercase; overflow-wrap: anywhere; }
.project-intro > div { grid-column: 2; grid-row: 1; min-width: 0; }
.project-intro p { font-size: 16px; line-height: 1.65; margin: 0 0 28px; max-width: 560px; }
.metadata { border-top: var(--rule); padding-top: 16px; display: flex; gap: 35px; font-size: 16px; line-height: 1.6; }
.metadata dt { text-transform: uppercase; font-weight: 700; margin-bottom: 5px; }
.metadata dd { margin: 0; }
.next { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0 60px; font-size: 16px; text-transform: uppercase; }
@media (min-width: 1600px) { body { max-width: 1800px; margin: auto; } }
@media (max-width: 900px) {
  body { padding: 0 22px; }
  .grid { column-count: 2; }
  .header { align-items: flex-start; }
  nav { justify-content: flex-end; }
}
@media (max-width: 560px) {
  body { padding: 0 14px; }
  .header { flex-direction: column; gap: 24px; padding-top: 26px; }
  .wordmark { font-size: clamp(24px, 6.5vw, 36px); }
  .wordmark span { margin-top: 14px; }
  nav { justify-content: flex-start; }
  nav a { font-size: 11px; padding: 9px 12px; }
  .grid { column-count: 1; }
  .card { padding: 12px; }
  .about, .project-intro { grid-template-columns: 1fr; gap: 28px; }
  .about { margin-top: 55px; padding-bottom: 45px; }
  .about h2::before { margin-bottom: 20px; }
  .back { margin-bottom: 32px; }
    .metadata { gap: 20px; flex-wrap: wrap; }
}

.next a { font-size: 16px; display: flex; flex-direction: column; gap: 8px; border: var(--rule); padding: 14px 16px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.next a:last-child { text-align: right; }
.next a span { font-size: 14px; }
.next a:hover { background: #000; color: #fff; text-decoration: none; }
.back { border: var(--rule); padding: 12px 16px; }
@media (max-width: 560px) { .next { flex-direction: column; } }

footer a { font-size: 16px; }

/* Masonry columns keep each asset at its natural aspect ratio. */
.project-gallery { column-count: 3; column-gap: 20px; margin: 40px 0 20px; }
.gallery-item { padding: 16px; background: #fff; margin: 0 0 20px; break-inside: avoid; display: inline-block; width: 100%; border: var(--rule); vertical-align: top; }
.gallery-item img, .gallery-item video { display: block; width: 100%; height: auto; }
@media (max-width: 900px) { .project-gallery { column-count: 2; } }
@media (max-width: 560px) { .project-gallery { column-count: 1; margin-top: 25px; } .gallery-item { padding: 12px; } }

.video-toggle { font: inherit; font-size: 12px; background: #fff; color: #000; border: var(--rule); padding: 8px 10px; margin-top: 12px; cursor: pointer; }

@media (max-width: 560px) { .project-intro > div { grid-column: 1; grid-row: auto; } }

.project-intro > div > p:empty { display: none; }
.project-intro > div > p:empty + .metadata { margin-top: 0; }
