@font-face {
  font-display: swap;
  font-family: "PP Neue Montreal";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/neuemontreal-bold.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "PP Neue Montreal";
  font-style: normal;
  font-weight: 500;
  src: url("../fonts/neuemontreal-medium.woff2") format("woff2");
}

html {
  --site-bg: #fff;
  font-size: clamp(12px, 0.72vw + 9px, 20px);
}

body[data-page="project"] {
  margin: 0;
  background: #fff;
  color: #1b1b1b;
  font-family: "PP Neue Montreal", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body.lightbox-locked {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

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

.project-page {
  padding: 8rem 40px 10rem;
}

.project-story,
.project-notes {
  width: min(100%, 88rem);
  margin: 0 auto;
}

.project-hero {
  width: 100%;
  margin: 0;
}

.project-hero__top,
.project-hero__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 28rem);
  gap: 2rem;
  align-items: start;
}

.project-hero__top {
  align-items: start;
  margin-bottom: 2.8rem;
}

.project-back,
.project-label,
.project-date,
.story-label {
  font-family: "PP Neue Montreal", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.84rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.project-label,
.project-date {
  margin: 0;
}

.project-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 1.95rem;
  padding: 0 0.45rem;
  background: var(--header-menu-chip-bg, rgba(17, 17, 17, 0.92));
  color: var(--header-menu-chip-text, #fff);
  text-decoration: none;
  transition: transform 0.1s ease-out;
}

.project-back:active {
  transform: scale(0.95);
}

.project-heading h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  font-weight: 700;
  max-width: 11ch;
}

.project-heading h2 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 3.2rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  font-weight: 700;
  max-width: 11ch;
}

.project-heading h2 {
  max-width: none;
  margin-left: -0.055em;
}

.project-heading h2 + h1 {
  max-width: none;
  margin-left: -0.04em;
}

.project-summary {
  font-size: 1.12rem;
  line-height: 1.55;
  color: #1b1b1b;
}

.project-summary p {
  margin: 0 0 1rem;
}

.project-summary__cta {
  gap: 0.6rem;
  margin-top: 0.15rem;
}

.project-summary__cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
}

.project-summary__cta-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.55;
  fill: none;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.project-hero__media {
  margin: 4rem 0 0;
  overflow: hidden;
  background: transparent;
}

.project-hero__media img {
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
}

.project-hero__media video {
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
}

.project-story {
  padding-top: 5rem;
}

.project-story__lead {
  display: block;
  font-size: 1.2rem;
  line-height: 1.55;
  margin-bottom: 4rem;
}

.project-story__spacer,
.project-notes__spacer {
  display: none;
}

.project-story__content,
.project-notes__content {
  max-width: 58rem;
}

.project-story__content > p:last-child {
  margin: 0;
}

.project-story__content .story-label,
.project-grid__text .story-label,
.project-notes__content .story-label {
  margin: 0 0 1rem;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.78fr;
  column-gap: 2rem;
  row-gap: 2rem;
  align-items: start;
}

.project-grid__media {
  margin: 0;
  background: transparent;
  overflow: hidden;
}

.project-grid__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-grid__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-grid__media video.is-pending-start-time {
  opacity: 0;
}

.project-grid__media--video {
  background: transparent;
}

.project-grid__media--video video {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.project-grid__media iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

.project-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
  transition: background 0.4s ease;
}

.project-lightbox.is-active {
  background: rgba(0, 0, 0, 0.88);
  pointer-events: all;
}

.project-lightbox__bg {
  position: absolute;
  inset: 0;
}

.project-lightbox__media {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 88vh;
  opacity: 0;
  transform: scale(0.88) translateY(24px);
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.35s ease;
}

.project-lightbox.is-active .project-lightbox__media {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.project-lightbox__media img,
.project-lightbox__media video {
  display: block;
  max-width: 90vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.project-lightbox__media img {
  border-radius: 0;
}

.project-lightbox__media video {
  max-width: 76.5vw;
  max-height: 74.8vh;
  border-radius: 6px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}

.project-lightbox__media video::-webkit-media-controls-panel {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
}

.project-lightbox__close {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 3;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-family: "PP Neue Montreal", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.1s ease-out;
}

.project-lightbox.is-active .project-lightbox__close {
  opacity: 1;
  pointer-events: auto;
}

.project-lightbox__close:active {
  transform: scale(0.92);
}

.project-lightbox__close:hover {
  color: #fff;
}

.project-zoom-hover-label {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  transform: translate(16px, -50%);
  transition: opacity 0.2s ease;
  mix-blend-mode: difference;
}

.project-zoom-hover-label span {
  display: block;
  color: #fff;
  font-family: "PP Neue Montreal", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  body:has([data-project-lightbox-item]:hover) .project-zoom-hover-label {
    opacity: 1;
  }

  body:has(.project-lightbox.is-active) .project-zoom-hover-label {
    opacity: 0;
  }
}

.project-grid__media--tall {
  grid-row: span 2;
}

.project-grid__media--wide {
  grid-column: 1 / -1;
}

.project-grid__duo {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 901px) {
  .project-grid {
    row-gap: 5rem;
  }

  .project-grid__duo--acronym {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.05fr);
    align-items: start;
  }
}

.project-grid__text {
  font-size: 1.06rem;
  line-height: 1.58;
  color: #1b1b1b;
}

.project-grid__text p {
  margin: 0 0 1rem;
}

.project-notes {
  padding-top: 5rem;
}

.project-notes__inner {
  display: block;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  padding-top: 2rem;
}

.project-notes__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #1b1b1b;
}

.project-notes__columns p {
  margin: 0 0 1rem;
}

.project-notes__columns p:last-child {
  margin-bottom: 0;
}

.shared-contact {
  z-index: 180 !important;
}

@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  [data-project-lightbox-item] {
    cursor: pointer;
  }
}

@media (max-width: 900px) {
  .project-lightbox,
  .project-zoom-hover-label {
    display: none !important;
  }

  .project-grid__media--acronym-mobile {
    display: flex;
    justify-content: center;
  }

  .project-page {
    padding: 7rem 1rem 9rem;
  }

  .project-hero__top,
  .project-hero__intro,
  .project-story__lead,
  .project-grid,
  .project-notes__inner,
  .project-notes__columns {
    grid-template-columns: 1fr;
  }

  .project-story__spacer,
  .project-notes__spacer {
    display: none;
  }

  .project-heading h1 {
    max-width: none;
  }
}

@media (min-width: 641px) and (max-width: 1100px) {
  .project-page {
    padding: 7.2rem 24px 8.6rem;
  }

  .project-hero__top,
  .project-hero__intro {
    gap: 1.5rem;
  }

  .project-heading h1 {
    font-size: clamp(3.5rem, 8.4vw, 5.6rem);
    max-width: 10ch;
  }

  .project-summary,
  .project-grid__text,
  .project-notes__columns {
    font-size: 1.02rem;
  }
}

@media (max-width: 640px) {
  .project-page {
    padding: 8.1rem 0.9rem 8.4rem;
  }

  .project-back {
    display: none;
  }

  .project-summary__cta {
    display: inline-flex;
  }

  .project-hero__top {
    margin-bottom: 2rem;
  }

  .project-heading h1 {
    font-size: clamp(2.45rem, 12vw, 4.2rem);
    line-height: 0.96;
    letter-spacing: -0.045em;
  }

  .project-summary,
  .project-story__lead,
  .project-grid__text,
  .project-notes__columns {
    font-size: 1rem;
  }
}

@media (max-width: 400px) {
  .project-page {
    padding: 7.6rem 0.75rem 8rem;
  }

  .project-back,
  .project-label,
  .project-date,
  .story-label {
    font-size: 0.72rem;
  }

  .project-heading h1 {
    font-size: clamp(2.05rem, 11vw, 3.3rem);
  }
}

@media (max-height: 540px) {
  .project-page {
    padding-top: 5.9rem;
    padding-bottom: 6rem;
  }

  .project-hero__top {
    margin-bottom: 1.35rem;
  }

  .project-hero__intro {
    gap: 1.15rem;
  }

  .project-heading h1 {
    font-size: clamp(1.65rem, 5.5vw, 2.8rem);
    line-height: 0.98;
    max-width: none;
  }

  .project-summary {
    font-size: 0.94rem;
    line-height: 1.45;
  }
}

/* ---------------------------------------------------------------------- */
/* Credits                                                                 */
/* ---------------------------------------------------------------------- */

.project-credits {
  width: min(100%, 88rem);
  margin: 0 auto;
  padding-top: 5rem;
}

.project-credits__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  padding-top: 2rem;
}

.project-credits__item {
  min-width: 0;
}

.project-credits__item dt {
  margin: 0 0 0.75rem;
  color: rgba(27, 27, 27, 0.5);
}

.project-credits__item dd {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #1b1b1b;
}

/* ---------------------------------------------------------------------- */
/* Next project                                                            */
/* ---------------------------------------------------------------------- */

.project-next {
  width: min(100%, 88rem);
  margin: 0 auto;
  padding-top: 5rem;
}

.project-next__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label icon"
    "title icon"
    "meta  icon";
  align-items: center;
  column-gap: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  padding-top: 2rem;
  color: #1b1b1b;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.1s ease-out;
}

.project-next__link:hover {
  opacity: 0.55;
}

.project-next__link:active {
  transform: scale(0.99);
}

.project-next__label,
.project-next__meta {
  font-size: 0.84rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(27, 27, 27, 0.5);
}

.project-next__label {
  grid-area: label;
  margin-bottom: 0.9rem;
}

.project-next__title {
  grid-area: title;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.project-next__meta {
  grid-area: meta;
  margin-top: 0.9rem;
}

.project-next__icon {
  grid-area: icon;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-next__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.1;
  fill: none;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.project-next__link:hover .project-next__icon {
  transform: translateX(0.35rem);
}

/* ---------------------------------------------------------------------- */
/* In-page video controls                                                  */
/* ---------------------------------------------------------------------- */

.video-shell {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.project-hero__media .video-shell,
.project-grid__media--video .video-shell,
.project-grid__media--acronym-mobile .video-shell {
  height: auto;
}

.video-ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem;
  pointer-events: none;
}

/* On a device with a real cursor the controls stay out of the way until the
   visitor hovers the video. They stay up while the sound is on, and while a
   control has keyboard focus. Touch devices have no hover, so they keep them
   visible. */
@media (hover: hover) and (pointer: fine) {
  .video-ui {
    opacity: 0;
    transition: opacity 0.25s ease;
  }

  .video-shell:hover .video-ui,
  .video-shell:has(:focus-visible) .video-ui,
  .video-shell.has-sound .video-ui {
    opacity: 1;
  }
}

.video-ui::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.video-ui > * {
  position: relative;
  pointer-events: auto;
}

.video-ui__sound {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease-out;
}

.video-ui__sound:hover {
  background: rgba(17, 17, 17, 0.85);
}

.video-ui__sound:active {
  transform: scale(0.9);
}

.video-ui__sound svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.video-ui__mute,
.video-ui__wave {
  transition: opacity 0.15s ease;
}

.video-ui__wave {
  opacity: 0;
}

.video-ui__sound[aria-pressed="true"] .video-ui__wave {
  opacity: 1;
}

.video-ui__sound[aria-pressed="true"] .video-ui__mute {
  opacity: 0;
}

.video-ui__bar {
  flex: 1 1 auto;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  touch-action: none;
  transition: height 0.15s ease;
}

.video-ui__bar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  bottom: -10px;
}

.video-ui__bar:hover,
.video-ui__bar:focus-visible {
  height: 4px;
}

.video-ui__bar:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.8);
  outline-offset: 4px;
}

.video-ui__fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: #fff;
}

@media (max-width: 900px) {
  .project-credits__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .project-credits__list {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .project-credits__item dd,
  .project-next__title {
    font-size: 1rem;
  }

  .project-next__title {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .project-next__icon {
    width: 1.6rem;
    height: 1.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-next__link,
  .project-next__icon,
  .video-ui,
  .video-ui__sound,
  .video-ui__bar,
  .video-ui__mute,
  .video-ui__wave {
    transition: none;
  }

  .project-next__link:hover .project-next__icon {
    transform: none;
  }
}
