.case-page {
  background: var(--paper);
}

.case-hero {
  position: relative;
  overflow: hidden;
  padding: 118px 0 clamp(88px, 10vw, 156px);
  background:
    radial-gradient(circle at 78% 12%, rgba(255, 172, 46, .08), transparent 28%),
    var(--ink);
  color: var(--white);
  isolation: isolate;
}

.case-page--molten .case-hero,
.case-page--paper-rivers .case-hero {
  background:
    radial-gradient(circle at 82% 8%, rgba(255, 255, 255, .08), transparent 25%),
    var(--ink);
}

.case-page--oxblood-sessions .case-hero {
  background:
    radial-gradient(circle at 80% 12%, rgba(165, 45, 37, .2), transparent 32%),
    var(--ink);
}

.case-page--aurora-weave .case-hero {
  background:
    radial-gradient(circle at 80% 12%, rgba(99, 162, 110, .14), transparent 32%),
    var(--ink);
}

.case-hero .grain {
  z-index: 0;
}

.case-hero__inner {
  position: relative;
  z-index: 1;
}

.case-hero__topline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.case-back {
  width: max-content;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: rgba(255, 255, 255, .58);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .3s ease;
}

.case-back:hover {
  color: var(--white);
}

.case-back span:first-child {
  font-size: 17px;
  transition: transform .4s var(--ease);
}

.case-back:hover span:first-child {
  transform: translateX(-4px);
}

.case-meta {
  display: flex;
  gap: clamp(18px, 3vw, 46px);
  align-items: center;
  color: rgba(255, 255, 255, .45);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.case-hero h1 {
  margin-top: clamp(62px, 8vw, 118px);
  font-size: clamp(70px, 13.4vw, 214px);
  font-weight: 500;
  letter-spacing: -.075em;
  line-height: .78;
  text-wrap: balance;
}

.case-hero__lead {
  max-width: 760px;
  margin: clamp(42px, 6vw, 86px) 0 clamp(54px, 7vw, 96px) auto;
  color: rgba(255, 255, 255, .62);
  font-size: clamp(20px, 2vw, 31px);
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1.42;
}

.case-image {
  position: relative;
  display: block;
  overflow: hidden;
  background: #151515;
  color: inherit;
  text-decoration: none;
}

.case-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .12);
  pointer-events: none;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 1.2s var(--ease);
}

.case-image:hover img,
.case-image:focus-visible img {
  transform: scale(1.018);
  filter: saturate(1.05) contrast(1.02);
}

.case-image--cover {
  aspect-ratio: 16 / 10;
  border-radius: 2px;
  box-shadow: 0 40px 110px rgba(0, 0, 0, .38);
}

.case-image__action {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  gap: 16px;
  align-items: center;
  padding: 13px 17px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 99px;
  background: rgba(11, 11, 11, .72);
  color: var(--white);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background-color .35s ease, color .35s ease, transform .45s var(--ease);
}

.case-image:hover .case-image__action {
  background: var(--white);
  color: var(--ink);
  transform: translateY(-3px);
}

.case-story {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 60px 36px;
}

.case-story__content {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .65fr);
  gap: clamp(38px, 7vw, 110px);
  align-items: end;
}

.case-story .display-title {
  max-width: 10ch;
}

.case-story__copy {
  max-width: 42ch;
  padding-bottom: 8px;
  color: #5f5d57;
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 300;
  line-height: 1.55;
}

.case-image--detail {
  grid-column: 2;
  width: min(72%, 920px);
  aspect-ratio: 16 / 10;
  margin: clamp(54px, 8vw, 122px) auto 0;
}

.case-image--detail img {
  object-position: center;
}

.case-direction {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.case-direction::before,
.case-direction::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 172, 46, .12);
  border-radius: 50%;
  pointer-events: none;
}

.case-direction::before {
  top: -25vw;
  right: -10vw;
  width: 60vw;
  height: 60vw;
}

.case-direction::after {
  top: 5vw;
  right: 12vw;
  width: 32vw;
  height: 32vw;
  border-color: rgba(160, 224, 171, .1);
}

.case-direction__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.6fr .9fr;
  gap: 36px;
  align-items: end;
}

.case-direction .section-label,
.case-direction .section-label span:first-child {
  align-self: start;
  color: rgba(255, 255, 255, .38);
}

.case-direction h2 {
  max-width: 9ch;
  font-size: clamp(52px, 7vw, 110px);
  font-weight: 400;
  letter-spacing: -.065em;
  line-height: .88;
}

.case-direction p {
  max-width: 40ch;
  color: rgba(255, 255, 255, .52);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.55;
}

.case-direction .button {
  grid-column: 3;
  width: max-content;
  margin-top: 34px;
}

.next-case {
  height: min(84svh, 920px);
  min-height: 580px;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.next-case__link {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  overflow: hidden;
  color: inherit;
  text-align: center;
  text-decoration: none;
  isolation: isolate;
}

.next-case__link > img,
.next-case__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.next-case__link > img {
  z-index: -2;
  object-fit: cover;
  filter: brightness(.52) saturate(.75);
  transform: scale(1.02);
  transition: transform 1.25s var(--ease), filter 1s var(--ease);
}

.next-case__shade {
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .22), rgba(0, 0, 0, .58));
}

.next-case__label {
  margin-bottom: 28px;
  color: rgba(255, 255, 255, .58);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.next-case h2 {
  max-width: 9ch;
  margin: 0 auto;
  font-size: clamp(58px, 10vw, 168px);
  font-weight: 500;
  letter-spacing: -.075em;
  line-height: .82;
  text-wrap: balance;
}

.next-case__arrow {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 36px auto 0;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  font-size: 24px;
  transition: color .4s ease, background-color .4s ease, transform .55s var(--ease);
}

.next-case__link:hover > img {
  filter: brightness(.62) saturate(1);
  transform: scale(1.055);
}

.next-case__link:hover .next-case__arrow {
  background: var(--white);
  color: var(--ink);
  transform: rotate(8deg);
}

@media (max-width: 900px) {
  .case-hero {
    padding-top: 98px;
  }

  .case-hero h1 {
    font-size: clamp(64px, 14vw, 120px);
  }

  .case-story {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .case-story__content,
  .case-image--detail {
    grid-column: 1;
  }

  .case-image--detail {
    width: 86%;
  }

  .case-direction__inner {
    grid-template-columns: 1fr 1.6fr;
    gap: 50px 24px;
  }

  .case-direction p {
    grid-column: 2;
  }

  .case-direction .button {
    grid-column: 2;
  }
}

@media (max-width: 560px) {
  .case-hero {
    padding: 88px 0 76px;
  }

  .case-hero__topline {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .case-meta {
    justify-content: space-between;
    gap: 12px;
  }

  .case-hero h1 {
    margin-top: 58px;
    font-size: clamp(55px, 17vw, 78px);
    line-height: .84;
  }

  .case-hero__lead {
    margin: 36px 0 48px;
    font-size: 17px;
  }

  .case-image--cover {
    aspect-ratio: 16 / 10;
  }

  .case-image--cover img {
    object-position: center;
  }

  .case-image__action {
    right: 10px;
    bottom: 10px;
    padding: 10px 12px;
    font-size: 8px;
  }

  .case-story {
    gap: 40px;
  }

  .case-story__content {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .case-story__copy {
    font-size: 16px;
  }

  .case-image--detail {
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-top: 44px;
  }

  .case-direction__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .case-direction h2,
  .case-direction p,
  .case-direction .button {
    grid-column: 1;
  }

  .case-direction h2 {
    font-size: 50px;
  }

  .case-direction .button {
    width: 100%;
    margin-top: 12px;
  }

  .next-case {
    min-height: 520px;
    height: 72svh;
  }

  .next-case h2 {
    padding-inline: 18px;
    font-size: clamp(50px, 15vw, 74px);
  }

  .next-case__arrow {
    width: 54px;
    height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-image img,
  .next-case__link > img,
  .next-case__arrow {
    transition: none;
  }
}
