@import url("/css/case-detail.css");

.case-page--v2 .case-shell {
  overflow: visible;
}

.case-layout-v2 {
  display: grid;
  grid-template-columns: minmax(360px, .82fr) minmax(520px, 1.18fr);
  gap: clamp(52px, 6vw, 104px);
  width: min(calc(100% - 2 * var(--gutter)), var(--content-max));
  margin: 0 auto;
  padding: clamp(126px, 10vw, 168px) 0 clamp(110px, 10vw, 172px);
  align-items: start;
}

.case-project-v2 {
  position: relative;
  align-self: stretch;
}

.case-project-v2__sticky {
  position: sticky;
  top: clamp(104px, 8vw, 132px);
  display: flex;
  min-height: calc(100svh - clamp(132px, 11vw, 176px));
  flex-direction: column;
  padding-bottom: 16px;
}

.case-project-v2__eyebrow,
.case-brief-v2__eyebrow {
  margin: 0;
  color: #76797c;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.case-project-v2__title {
  max-width: 650px;
  margin: clamp(28px, 4vh, 52px) 0 0;
  font-size: clamp(42px, 4.167vw, 65px);
  font-weight: 400;
  line-height: .94;
  letter-spacing: -.07em;
}

.case-project-v2__lead {
  max-width: 620px;
  margin: clamp(26px, 3.5vh, 46px) 0 0;
  font-size: clamp(16px, 1.389vw, 20px);
  line-height: 1.48;
  letter-spacing: -.02em;
}

.case-project-v2__facts {
  display: grid;
  gap: 0;
  margin: clamp(34px, 4.5vh, 58px) 0 0;
}

.case-project-v2__facts > div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid rgba(33, 37, 41, .17);
  font-size: 14px;
  line-height: 1.35;
}

.case-project-v2__facts > div:last-child {
  border-bottom: 1px solid rgba(33, 37, 41, .17);
}

.case-project-v2__facts dt {
  color: #7b7e81;
}

.case-project-v2__facts dd {
  margin: 0;
  text-align: right;
}

.case-project-v2__note {
  max-width: 590px;
  margin: clamp(28px, 4vh, 48px) 0 0;
  color: #66696c;
  font-size: clamp(15px, 1.08vw, 18px);
  line-height: 1.52;
}

.case-project-v2__scroll {
  margin-top: auto;
  padding-top: 30px;
  color: #898c8f;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.case-gallery-v2 {
  display: grid;
  gap: clamp(20px, 2vw, 32px);
}

.case-gallery-v2 figure {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: clamp(14px, 1.4vw, 24px);
  background: #ecebea;
}

.case-gallery-v2 .case-gallery-v2__figure--square {
  aspect-ratio: 1;
}

.case-gallery-v2 img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-gallery-v2__text {
  padding: clamp(48px, 6vw, 94px) 0 clamp(58px, 7vw, 108px);
}

.case-gallery-v2__eyebrow {
  margin: 0;
  color: #76797c;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.case-gallery-v2__text h2 {
  max-width: 780px;
  margin: 20px 0 clamp(34px, 4vw, 58px);
  font-size: clamp(27px, 2.43vw, 37px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.065em;
}

.case-gallery-v2__text > p:not(.case-gallery-v2__eyebrow) {
  max-width: 720px;
  margin: 0;
  font-size: clamp(16px, 1.389vw, 20px);
  line-height: 1.42;
  letter-spacing: -.035em;
}

.case-gallery-v2__text > p + p:not(.case-gallery-v2__eyebrow) {
  margin-top: 24px;
  color: #6d7073;
  font-size: clamp(16px, 1.389vw, 20px);
  line-height: 1.55;
  letter-spacing: -.02em;
}

.case-page--v2 .case-other,
.case-brief-v2 {
  border-top: 0;
}

.case-page--v2 .case-other {
  padding-bottom: 0;
}

.case-page--v2 .case-other__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-page--v2 .case-other__card:last-child {
  display: block;
}

.case-brief-v2 {
  padding: clamp(72px, 6vw, 96px) var(--gutter) clamp(106px, 9vw, 156px);
}

.case-brief-v2__inner {
  display: grid;
  grid-template-columns: minmax(0, 900px);
  grid-template-areas:
    "title"
    "text"
    "link";
  justify-content: center;
  justify-items: center;
  gap: 30px;
  max-width: var(--content-max);
  margin: 0 auto;
  text-align: center;
}

.case-brief-v2__eyebrow {
  grid-area: label;
}

.case-brief-v2__title {
  grid-area: title;
  max-width: 900px;
  margin: 0;
  font-size: clamp(42px, 4.167vw, 65px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.06em;
}

.case-brief-v2__text {
  grid-area: text;
  max-width: 680px;
  margin: 0;
  color: #64676a;
  font-size: clamp(16px, 1.389vw, 20px);
  line-height: 1.5;
}

.case-brief-v2__link {
  grid-area: link;
  display: inline-flex;
  width: min(307px, 100%);
  min-height: 59px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border: 0;
  border-radius: 999px;
  background: #212529;
  color: #ffffff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out),
    transform .35s var(--ease-out);
}

.case-brief-v2__link img {
  display: block;
  width: 28px;
  height: 28px;
  transform: rotate(-45deg);
  transition: transform .45s var(--ease-out), filter .35s var(--ease-out);
}

.case-brief-v2__link:hover,
.case-brief-v2__link:focus-visible {
  background: #ffffff;
  color: #212529;
  box-shadow: inset 0 0 0 1px #212529;
  transform: translateY(-2px);
}

.case-brief-v2__link:hover img,
.case-brief-v2__link:focus-visible img {
  filter: invert(1);
  transform: translate(4px, -4px) rotate(-45deg);
}

.case-page--v2 .case-other__title {
  font-size: clamp(42px, 4.167vw, 65px);
  line-height: 1.25;
  letter-spacing: normal;
}

.case-page--v2 .case-other__all,
.case-page--v2 .case-other__meta {
  font-size: clamp(14px, 1.25vw, 19px);
}

.case-page--v2 .case-other__all {
  display: inline-flex;
  height: auto;
  align-items: center;
  gap: 17px;
  padding-bottom: 0;
  overflow: visible;
  border-bottom: 0;
  line-height: 1;
}

.case-other__all-roll {
  height: 1em;
  overflow: hidden;
  white-space: nowrap;
}

.case-other__all-roll > span {
  display: block;
  transition: transform .52s var(--ease-out);
}

.case-other__all-arrow {
  position: relative;
  width: 22px;
  height: 10px;
  flex: 0 0 22px;
  overflow: hidden;
}

.case-other__all-arrow img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 22px;
  height: 10px;
  transition: transform .52s var(--ease-out);
}

.case-other__all-arrow img:last-child {
  transform: translateX(-150%);
}

.case-page--v2 .case-other__all:hover .case-other__all-roll > span,
.case-page--v2 .case-other__all:focus-visible .case-other__all-roll > span {
  transform: translateY(-100%);
}

.case-page--v2 .case-other__all:hover .case-other__all-arrow img:first-child,
.case-page--v2 .case-other__all:focus-visible .case-other__all-arrow img:first-child {
  transform: translateX(150%);
}

.case-page--v2 .case-other__all:hover .case-other__all-arrow img:last-child,
.case-page--v2 .case-other__all:focus-visible .case-other__all-arrow img:last-child {
  transform: translateX(0);
}

@media (min-width: 768px) {
  .case-page--v2 .case-other {
    margin-top: -150px;
  }
}

@media (max-width: 1099px) {
  .case-layout-v2 {
    grid-template-columns: minmax(310px, .8fr) minmax(440px, 1.2fr);
    gap: 46px;
  }

  .case-brief-v2__link {
    width: max-content;
  }
}

@media (max-width: 979px) {
  .case-layout-v2 {
    grid-template-columns: 1fr;
    gap: 52px;
    padding-top: 116px;
  }

  .case-project-v2__sticky {
    position: static;
    min-height: 0;
  }

  .case-project-v2__scroll {
    margin-top: 38px;
  }

  .case-gallery-v2 {
    width: min(100%, 760px);
    margin-left: auto;
  }
}

@media (max-width: 767px) {
  .case-layout-v2 {
    gap: 40px;
    padding-top: 104px;
    padding-bottom: 0;
  }

  .case-project-v2__title {
    font-size: clamp(30px, 7vw, 44px);
    line-height: 1.2;
  }

  .case-project-v2__lead,
  .case-gallery-v2__text > p:not(.case-gallery-v2__eyebrow),
  .case-gallery-v2__text > p + p:not(.case-gallery-v2__eyebrow),
  .case-brief-v2__text {
    font-size: 16px;
  }

  .case-gallery-v2__text h2 {
    font-size: clamp(27px, 7vw, 37px);
  }

  .case-brief-v2__title,
  .case-page--v2 .case-other__title {
    font-size: clamp(30px, 7vw, 44px);
    line-height: 1.2;
  }

  .case-page--v2 .case-other__all,
  .case-page--v2 .case-other__meta {
    font-size: 14px;
  }

  .case-project-v2__facts > div {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .case-project-v2__scroll {
    display: none;
  }

  .case-gallery-v2 {
    gap: 16px;
  }

  .case-page--v2 .case-other {
    padding-top: 72px;
  }

  .case-page--v2 .case-other__grid {
    grid-template-columns: 1fr;
  }

  .case-brief-v2 {
    padding-top: 78px;
    padding-bottom: 96px;
  }

  .case-brief-v2__inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "text"
      "link";
    gap: 26px;
  }

  .case-brief-v2__link {
    width: 100%;
  }
}
