.design-page {
  background: var(--black);
}

.design-page main {
  width: min(100%, 1180px);
  margin: 0 auto;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.design-intro {
  display: grid;
  min-height: 215px;
  grid-template-columns: minmax(220px, 30%) 1fr;
  border-bottom: 1px solid var(--cyan);
  background: var(--paper);
  color: var(--black);
}

.design-intro > .eyebrow {
  padding: 1.5rem;
  border-right: 1px solid var(--black);
}

.design-intro__headline {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 2rem 2.2rem;
  border-left: 7px solid var(--violet);
}

.design-intro__headline h1 {
  margin: 0 0 0.7rem;
  font: 400 54px/0.9 "Overload", Arial, Helvetica, sans-serif;
}

.design-intro__headline p {
  font: 10px/1.5 monospace;
}

.project {
  border-bottom: 1px solid var(--cyan);
}

.project + .project {
  margin-top: 38px;
  border-top: 1px solid var(--cyan);
}

.project__line {
  display: grid;
  min-height: 72px;
  grid-template-columns: 150px minmax(180px, 1fr) minmax(190px, auto);
  align-items: center;
  gap: 1rem;
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--line);
  box-shadow: inset 7px 0 0 var(--violet);
}

.project__line > * {
  min-width: 0;
}

.project__line > p {
  color: var(--muted);
  font: 9px/1.3 monospace;
  text-transform: uppercase;
}

.project__line > p:first-child {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
}

.project__line > p:last-child {
  overflow-wrap: anywhere;
  text-align: right;
}

.project__line h2 {
  font: 400 24px/1 "Overload", Arial, Helvetica, sans-serif;
}

.project__gallery {
  display: grid;
  min-width: 0;
  width: calc(100% - 32px);
  max-width: 980px;
  gap: 8px;
  margin: 16px auto;
  padding: 8px;
  background: #121617;
}

.project__gallery--bookable {
  aspect-ratio: 2.25 / 1;
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 0.55fr));
}

.work-visual {
  display: grid;
  min-width: 0;
  width: 100%;
  height: auto;
  place-items: center;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--black);
  cursor: zoom-in;
}

.project__gallery > .work-visual {
  height: 100%;
}

.work-visual img {
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 160ms ease;
}

.work-visual--promo,
.work-visual--portrait {
  padding: 1.2rem;
}

.work-visual--promo img,
.work-visual--portrait img {
  object-fit: contain;
}

.work-visual:hover img,
.work-visual:focus-visible img {
  filter: saturate(1.16) contrast(1.04);
}

.work-visual:focus-visible {
  outline: 4px solid var(--cyan);
  outline-offset: -4px;
}

.poster-grid {
  display: grid;
  width: calc(100% - 32px);
  max-width: 980px;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 16px auto;
  padding: 8px;
}

.poster-grid figure {
  min-width: 0;
}

.poster-grid .work-visual {
  aspect-ratio: 1 / 1;
  height: auto;
  border-bottom: 1px solid var(--line);
}

.poster-grid figcaption {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  background: #121617;
  font: 9px/1.2 monospace;
}

.poster-grid figcaption strong {
  font-size: 9px;
  text-align: right;
}

.poster-grid figcaption > span {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 700;
}

.design-contact {
  display: flex;
  min-height: 125px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem;
  background: var(--paper);
  color: var(--black);
}

.design-contact h2 {
  font: 400 27px/1 "Overload", Arial, Helvetica, sans-serif;
}

.design-contact a {
  font: 10px/1.3 monospace;
  text-underline-offset: 0.3rem;
}

.design-lightbox {
  width: min(94vw, 1500px);
  height: min(92vh, 1000px);
  padding: 48px 14px 14px;
  border: 1px solid var(--cyan);
  border-radius: 0;
  background: var(--black);
  color: var(--paper);
}

.design-lightbox::backdrop {
  background: rgba(13, 17, 18, 0.9);
}

.design-lightbox img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.design-lightbox__close {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--black);
  background: var(--yellow);
  color: var(--black);
  cursor: pointer;
  font: 700 25px/1 Arial, Helvetica, sans-serif;
}

.design-lightbox__close:hover,
.design-lightbox__close:focus-visible {
  background: var(--pink);
  outline: 0;
}

@media (max-width: 760px) {
  .design-page main {
    border-right: 0;
    border-left: 0;
  }

  .design-intro {
    display: block;
    min-height: 190px;
  }

  .design-intro > .eyebrow {
    padding: 1rem;
    border-right: 0;
  }

  .design-intro__headline {
    min-height: 130px;
    padding: 1rem 1rem 1.25rem;
    border-top: 1px solid var(--black);
    border-left-width: 5px;
  }

  .design-intro__headline h1 {
    font-size: 42px;
  }

  .project__line {
    min-height: 82px;
    grid-template-columns: auto 1fr;
    gap: 0.45rem 1rem;
    padding: 0.75rem 1rem;
    box-shadow: inset 5px 0 0 var(--violet);
  }

  .project__line h2 {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 21px;
  }

  .project__line > p:last-child {
    justify-self: end;
  }

  .project__gallery--bookable {
    aspect-ratio: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project__gallery,
  .poster-grid {
    width: calc(100% - 12px);
    margin: 6px auto 12px;
  }

  .project__gallery--bookable .work-visual--promo {
    grid-column: 1 / -1;
    aspect-ratio: 1.55 / 1;
  }

  .project__gallery--bookable .work-visual--portrait {
    aspect-ratio: 0.68 / 1;
  }

  .work-visual--promo,
  .work-visual--portrait {
    padding: 0.65rem;
  }

  .poster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 6px 6px 12px;
    gap: 6px;
  }

  .poster-grid figure {
    display: flex;
    min-width: 0;
    flex-direction: column;
  }

  .poster-grid figure:last-child {
    width: calc(50% - 3px);
    grid-column: 1 / -1;
    justify-self: center;
  }

  .poster-grid figcaption {
    min-height: 58px;
    flex: 1;
  }

  .project + .project {
    margin-top: 48px;
  }

  .design-contact {
    min-height: 120px;
    align-items: flex-start;
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.25rem 1rem;
  }

  .design-page .site-foot {
    min-height: 138px;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .project__line {
    grid-template-columns: 100px minmax(160px, 1fr) minmax(150px, auto);
  }

  .project__line > p:last-child {
    font-size: 8px;
  }
}

@media (max-width: 430px) {
  .design-page .main-nav__brand {
    min-width: 96px;
  }

  .design-page .main-nav__brand img {
    left: 3px;
    width: 90px;
  }

  .design-page .main-nav__links a {
    padding: 0 0.3rem;
    font-size: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-visual img {
    transition: none;
  }
}
