/* ================================
   WORK PROJECT
================================ */
.page--project {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  background: var(--color-bg);
  color: var(--color-text);
}

/* ================================
   HERO
================================ */
.project-hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 155svh;
  background: var(--color-bg);
}

.project-hero__stage {
  position: sticky;
  top: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 100svh;
  perspective: 1800px;
}

.project-hero__meta {
  position: absolute;
  z-index: 6;
  right: var(--page-padding);
  left: var(--page-padding);
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.project-hero__meta--top {
  top: 6rem;
}

.project-hero__meta--bottom {
  bottom: 1.75rem;
}

/* ================================
   HERO TITLE
================================ */
.project-hero__title {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: flex;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
}

.project-hero__title-row {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding-inline: var(--page-padding);
  transform-style: preserve-3d;
  will-change: transform;
}

.project-hero__title-row--right {
  display: flex;
  justify-content: flex-end;
}

.project-hero__word {
  width: max-content;
  max-width: 100%;
  color: var(--color-text);
  font-size: 9rem;
  font-weight: 500;
  line-height: 0.74;
  letter-spacing: -0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transform-style: preserve-3d;
  will-change: transform, opacity, letter-spacing;
}

/* ================================
   HERO MARK
================================ */
.project-hero__mark {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  width: 100%;
  max-width: 100%;
  place-items: center;
  perspective: 1600px;
  pointer-events: none;
}

.project-hero__mark-object {
  width: 5.6rem;
  max-width: calc(100vw - (var(--page-padding) * 2));
  color: var(--color-text);
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}

.project-hero__logo {
  display: block;
  width: 100%;
  height: auto;
}

/* ================================
   HERO LOGO SIZES
================================ */
.project-hero__mark-object--horizontal {
  width: 11rem;
}

.project-hero__mark-object--wide {
  width: 15rem;
}

.project-hero__mark-object--large {
  width: 17rem;
}

/* ================================
   PROJECT INFO
================================ */
.project-info {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding: 7rem var(--page-padding) 13rem;
  background: var(--color-bg);
}

.project-info__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  min-width: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--color-line);
}

.project-info__item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.8rem;
  will-change: transform, opacity;
}

.project-info__value {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.project-info__statement {
  width: min(38rem, 52vw);
  max-width: 100%;
  margin-top: 10rem;
  margin-left: auto;
  font-size: 2.1rem;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.045em;
  will-change: transform, opacity;
}

/* ================================
   PROJECT INTRO
================================ */
.project-intro {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding: 8rem var(--page-padding) 15rem;
  background: var(--color-bg);
  perspective: 1500px;
}

.project-intro__top {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 9rem;
}

.project-intro__statement {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.project-intro__line {
  width: max-content;
  max-width: 100%;
  font-size: 8rem;
  font-weight: 500;
  line-height: 0.82;
  letter-spacing: -0.075em;
  text-transform: uppercase;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.project-intro__line--center {
  margin-inline: auto;
}

.project-intro__line--right {
  margin-left: auto;
}

/* ================================
   EDITORIAL
================================ */
.project-editorial {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 100%;
  flex-direction: column;
  padding: 6rem var(--page-padding) 14rem;
  background: var(--color-bg);
}

.project-editorial__item {
  position: relative;
  width: min(32vw, 30rem);
  max-width: 100%;
  margin-bottom: 16rem;
  perspective: 1500px;
}

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

.project-editorial__item--left {
  margin-left: 8%;
}

.project-editorial__item--right {
  margin-right: 10%;
  margin-left: auto;
}

.project-editorial__item--small {
  width: min(27vw, 26rem);
}

.project-editorial__item--wide {
  width: min(39vw, 38rem);
}

.project-editorial__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--color-bg);
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}

.project-editorial__inner {
  position: absolute;
  top: -6%;
  left: 0;
  width: 100%;
  height: 112%;
  will-change: transform;
}

.project-editorial__inner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.project-editorial__caption {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
}

.project-editorial--second {
  padding-top: 5rem;
  padding-bottom: 16rem;
}

/* ================================
   FEATURE
================================ */
.project-feature {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding: 8rem var(--page-padding) 16rem;
  background: var(--color-bg);
  perspective: 1800px;
}

.project-feature__heading {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: -2rem;
  pointer-events: none;
}

.project-feature__word {
  max-width: 100%;
  font-size: 13rem;
  font-weight: 500;
  line-height: 0.72;
  letter-spacing: -0.085em;
  text-transform: uppercase;
  will-change: transform;
}

.project-feature__media {
  position: relative;
  width: 82vw;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  margin-inline: auto;
  overflow: hidden;
  background: var(--color-bg);
  transform-style: preserve-3d;
  will-change: transform;
}

.project-feature__inner {
  position: absolute;
  top: -5%;
  left: 0;
  width: 100%;
  height: 110%;
  will-change: transform;
}

.project-feature__inner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

/* ================================
   NEXT PROJECT
================================ */
.project-next {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 72svh;
  flex-direction: column;
  padding: 2rem var(--page-padding) 2.25rem;
  background: var(--color-bg);
  perspective: 1800px;
}

.project-next__top {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.project-next__link {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  flex: 1;
  place-items: center;
  perspective: 1600px;
}

.project-next__object {
  position: relative;
  max-width: 100%;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}

.project-next__word {
  width: max-content;
  max-width: 100%;
  font-size: 13rem;
  font-weight: 500;
  line-height: 0.72;
  letter-spacing: -0.085em;
  text-transform: uppercase;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}

.project-next__all-work {
  position: relative;
  display: flex;
  width: max-content;
  align-self: center;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 0 0.4rem;
  color: var(--color-text);
  will-change: transform, opacity;
}

.project-next__all-work-label {
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  will-change: transform, letter-spacing;
}

.project-next__all-work-line {
  width: 100%;
  height: 1px;
  margin-top: 0.55rem;
  background: currentColor;
  transform: scaleX(0.3);
  transform-origin: center;
  will-change: transform;
}

/* ================================
   LARGE DESKTOP
================================ */
@media (max-width: 1280px) {
  .project-hero__word {
    font-size: 7.5rem;
  }

  .project-intro__line {
    font-size: 7rem;
  }

  .project-feature__word {
    font-size: 10rem;
  }

  .project-next__word {
    font-size: 10rem;
  }
}

/* ================================
   TABLET
================================ */
@media (max-width: 1024px) {
  .project-hero__word {
    font-size: 6rem;
  }

  .project-hero__mark-object {
    width: 5rem;
  }

  .project-hero__mark-object--horizontal {
    width: 9rem;
  }

  .project-hero__mark-object--wide {
    width: 15rem;
  }

  .project-hero__mark-object--large {
    width: 15rem;
  }

  .project-info__statement {
    width: 62vw;
  }

  .project-intro__line {
    font-size: 5.5rem;
  }

  .project-editorial__item {
    width: 42vw;
  }

  .project-editorial__item--small {
    width: 37vw;
  }

  .project-editorial__item--wide {
    width: 48vw;
  }

  .project-next {
    min-height: 68svh;
  }

  .project-next__word {
    font-size: 8rem;
  }
}

/* ================================
   MOBILE
================================ */
@media (max-width: 767px) {
  .project-hero {
    height: 140svh;
  }

  .project-hero__meta--top {
    top: 5.5rem;
  }

  .project-hero__meta--bottom {
    bottom: 1.5rem;
  }

  .project-hero__word {
    max-width: calc(100vw - (var(--page-padding) * 2));
    font-size: 4rem;
    line-height: 0.8;
  }

  .project-hero__mark {
    z-index: 5;
    padding-bottom: 14rem;
  }

  .project-hero__mark-object {
    width: 4.25rem;
  }

  .project-hero__mark-object--horizontal {
    width: 9rem;
  }

  .project-hero__mark-object--wide {
    width: 15rem;
  }

  .project-hero__mark-object--large {
    width: 15rem;
  }

  .project-info {
    padding: 6rem var(--page-padding) 10rem;
  }

  .project-info__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem 1.5rem;
  }

  .project-info__value {
    overflow-wrap: anywhere;
  }

  .project-info__statement {
    width: 88%;
    max-width: 100%;
    margin-top: 7rem;
    font-size: 1.65rem;
  }

  .project-intro {
    padding: 6rem var(--page-padding) 10rem;
  }

  .project-intro__top {
    margin-bottom: 7rem;
  }

  .project-intro__line {
    max-width: calc(100vw - (var(--page-padding) * 2));
    font-size: 3.7rem;
    line-height: 0.84;
  }

  .project-editorial {
    padding: 4rem var(--page-padding) 9rem;
  }

  .project-editorial__item,
  .project-editorial__item--small,
  .project-editorial__item--wide {
    width: 76vw;
    max-width: calc(100vw - (var(--page-padding) * 2));
    margin-bottom: 10rem;
  }

  .project-editorial__item--left {
    margin-right: auto;
    margin-left: 0;
  }

  .project-editorial__item--right {
    margin-right: 0;
    margin-left: auto;
  }

  .project-feature {
    padding: 6rem var(--page-padding) 10rem;
  }

  .project-feature__heading {
    margin-bottom: 1.25rem;
  }

  .project-feature__word {
    max-width: calc(100vw - (var(--page-padding) * 2));
    font-size: 5rem;
  }

  .project-feature__media {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 5;
  }

  .project-next {
    min-height: 62svh;
    padding: 1.5rem var(--page-padding);
  }

  .project-next__word {
    max-width: calc(100vw - (var(--page-padding) * 2));
    font-size: 5rem;
  }

  .project-next__all-work {
    padding-bottom: 0.25rem;
  }

  .project-next__all-work-label {
    font-size: 0.7rem;
  }
}

/* ================================
   SMALL MOBILE
================================ */
@media (max-width: 480px) {
  .project-hero__word {
    font-size: 3.4rem;
  }

  .project-hero__mark {
    padding-bottom: 12rem;
  }

  .project-hero__mark-object {
    width: 3.7rem;
  }

  .project-hero__mark-object--horizontal {
    width: 8rem;
  }

  .project-hero__mark-object--wide {
    width: 15rem;
  }

  .project-hero__mark-object--large {
    width: 15rem;
  }

  .project-info__statement {
    width: 94%;
    font-size: 1.5rem;
  }

  .project-intro__line {
    font-size: 3.2rem;
  }

  .project-feature__word {
    font-size: 4.5rem;
  }

  .project-next {
    min-height: 58svh;
  }

  .project-next__word {
    font-size: 4.5rem;
  }
}