.case-shell {
  max-width: 1440px;
  margin: auto;
  padding: 0 6.5%;
}
.case-breadcrumb {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
  font-size: 10px;
  color: #666;
  padding: 30px 0;
}
.case-breadcrumb a:hover {
  color: var(--brand);
}
.case-heading {
  padding: 48px 0 44px;
}
.case-heading .eyebrow {
  flex-wrap: wrap;
  gap: 16px;
}
.case-category {
  letter-spacing: 1px;
  color: #666;
}
.case-client {
  font-size: 15px;
  margin: 36px 0 15px;
  font-weight: 700;
}
.case-heading h1,
.works-index h1 {
  font-size: clamp(29px, 3.7vw, 54px);
  line-height: 1.3;
  letter-spacing: 0.015em;
  margin: 0;
  font-weight: 800;
}
.case-project {
  font-size: 14px;
  margin: 18px 0 0;
  color: #555;
}
.case-visual {
  margin: 0;
  border-radius: 16px;
  padding: clamp(24px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.case-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 7px;
  box-shadow: 0 12px 35px #51363812;
}
.case-overview {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 9%;
  padding: 70px 0;
  border-bottom: 1px solid var(--line);
}
.case-lead {
  font-size: 18px;
  line-height: 2.2;
  font-weight: 600;
  margin: 24px 0 0;
}
.case-facts {
  margin: 0;
}
.case-facts > div {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.case-facts > div:first-child {
  padding-top: 0;
}
.case-facts dt {
  font-size: 9px;
  letter-spacing: 1.3px;
  color: #666;
  font-weight: 700;
  margin-bottom: 12px;
}
.case-facts dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
}
.case-facts .tags {
  margin: 0;
}
.case-facts dd a {
  font-weight: 700;
  color: #a63d53;
  border-bottom: 1px solid #d2a2ad;
  padding-bottom: 4px;
}
.case-story {
  max-width: 900px;
  margin: auto;
  padding: 32px 0 60px;
}
.case-story-section {
  display: grid;
  grid-template-columns: 65px 1fr;
  gap: 25px;
  padding: 42px 0;
}
.case-story-number {
  font-size: 12px;
  color: #a63d53;
  font-weight: 700;
  padding-top: 10px;
}
.case-story h2 {
  font-size: 25px;
  line-height: 1.8;
  margin: 0 0 20px;
}
.case-story p {
  font-size: 15px;
  line-height: 2.3;
  margin: 0;
}
.case-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  padding: 30px 0;
  border-block: 1px solid var(--line);
}
.case-pagination :where(a) {
  font-size: 12px;
  line-height: 1.8;
}
.case-pagination small {
  font-size: 9px;
  display: block;
  letter-spacing: 1px;
  margin-bottom: 9px;
  color: #666;
}
.case-pagination > a:last-child {
  text-align: right;
}
.case-pagination a:hover {
  color: #a63d53;
}
.case-all {
  font-weight: 700;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 14px 23px;
}
.case-next {
  max-width: 520px;
  margin: 65px auto 90px;
}
.case-next > .eyebrow {
  margin-bottom: 23px;
}
.case-next .work-image {
  aspect-ratio: 1.7;
}
.case-contact {
  border-radius: 18px;
  margin: 60px 0 80px;
}
.case-contact h2 {
  font-size: 25px;
  line-height: 1.3;
  margin: 20px 0 15px;
}
.case-contact p:not(.eyebrow) {
  font-size: 12px;
  line-height: 2;
}
.case-contact .round-link {
  flex-shrink: 0;
}
.works-index {
  padding: 48px 0 25px;
}
.works-index-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin: 30px 0 50px;
}
.works-index-heading > p {
  font-size: 13px;
  line-height: 2.1;
}
.works-count {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  gap: 15px;
  align-items: center;
  font-size: 10px;
  letter-spacing: 1px;
  margin-bottom: 30px;
}
.works-count span {
  font-size: 20px;
  color: #a63d53;
}
.works-index .works-grid {
  row-gap: 48px;
}
.work-page .work-card {
  min-width: 0;
}
@media (max-width: 1100px) {
  .case-shell {
    padding: 0 5.5%;
  }
  .case-overview {
    gap: 6%;
  }
  .case-story h2 {
    font-size: 23px;
  }
}
@media (max-width: 760px) {
  .case-shell {
    padding: 0 7%;
  }
  .case-breadcrumb {
    font-size: 9px;
    gap: 9px;
    padding: 24px 0;
  }
  .case-heading {
    padding: 25px 0 30px;
  }
  .case-heading .eyebrow {
    font-size: 9px;
    gap: 10px;
  }
  .case-category {
    font-size: 8px;
  }
  .case-client {
    margin-top: 25px;
    font-size: 13px;
  }
  .case-heading h1,
  .works-index h1 {
    font-size: 28px;
    line-height: 1.3;
  }
  .case-project {
    font-size: 11px;
    margin-top: 14px;
  }
  .case-visual {
    padding: 20px;
    border-radius: 10px;
  }
  .case-overview {
    display: block;
    padding: 38px 0;
  }
  .case-lead {
    font-size: 15px;
    line-height: 2.2;
  }
  .case-facts {
    margin-top: 30px;
  }
  .case-story {
    padding: 12px 0 35px;
  }
  .case-story-section {
    grid-template-columns: 25px 1fr;
    gap: 10px;
    padding: 26px 0;
  }
  .case-story-number {
    font-size: 10px;
    padding-top: 6px;
  }
  .case-story h2 {
    font-size: 20px;
    margin-bottom: 15px;
  }
  .case-story p {
    font-size: 13px;
    line-height: 2.2;
  }
  .case-pagination {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 24px 0;
  }
  .case-pagination :where(a) {
    font-size: 10px;
  }
  .case-pagination small {
    font-size: 8px;
  }
  .case-all {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-self: center;
    font-size: 12px;
  }
  .case-pagination > a:last-child {
    grid-column: 2;
    grid-row: 1;
  }
  .case-next {
    margin: 45px auto;
  }
  .case-contact {
    margin: 40px 0 55px;
  }
  .works-index {
    padding-top: 26px;
  }
  .works-index-heading {
    display: block;
    margin: 24px 0 32px;
  }
  .works-index-heading > p {
    font-size: 12px;
    margin-top: 24px;
  }
  .works-count {
    padding-top: 18px;
  }
  .works-index .works-grid {
    row-gap: 34px;
  }
}

/* Two companions bring the selected works to life. */
.works-title-row {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 36px);
  min-width: 0;
}
.works-title-row h1 {
  flex-shrink: 0;
}
.works-friends {
  display: block;
  width: clamp(100px, 14vw, 190px);
  height: auto;
  flex: none;
  overflow: visible;
}
.works-index-heading > p {
  flex: 0 1 390px;
}
.works-line {
  fill: none;
  stroke: #333;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.works-pal {
  transform-box: fill-box;
  transform-origin: center;
}
.works-eyes {
  fill: #333;
  transform-box: fill-box;
  transform-origin: center;
}
.works-wave {
  transform-box: fill-box;
  transform-origin: 0 100%;
}
.works-spark {
  stroke: var(--brand);
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes works-pal-float {
  0%,
  100% {
    translate: 0 3px;
    rotate: -5deg;
  }
  45% {
    translate: -3px -8px;
    rotate: 5deg;
  }
  75% {
    translate: 2px -2px;
    rotate: -2deg;
  }
}
@keyframes works-pal-drift {
  0%,
  100% {
    translate: 0 -5px;
    rotate: 5deg;
  }
  50% {
    translate: 3px 5px;
    rotate: -5deg;
  }
}
@keyframes works-screen-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -5px;
  }
}
@keyframes works-wave {
  0%,
  100% {
    rotate: -8deg;
  }
  30% {
    rotate: 17deg;
  }
  60% {
    rotate: -12deg;
  }
  80% {
    rotate: 12deg;
  }
}
@keyframes works-spark-turn {
  0%,
  100% {
    rotate: 0deg;
    scale: 0.9;
  }
  50% {
    rotate: 90deg;
    scale: 1.1;
  }
}
@media (max-width: 760px) {
  .works-title-row {
    justify-content: space-between;
    gap: 12px;
  }
  .works-friends {
    width: clamp(100px, 28vw, 176px);
  }
  .works-index-heading > p {
    margin-top: 24px;
  }
}
@media (max-width: 370px) {
  .works-title-row {
    gap: 8px;
  }
  .works-title-row h1 {
    font-size: 25px;
    letter-spacing: -0.02em;
  }
  .works-friends {
    width: 84px;
  }
}

/* The shared contact invitation uses the same accent pink as the homepage. */
.case-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  background: var(--brand);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  padding: 42px 45px;
}
.case-contact::before {
  content: '';
  position: absolute;
  pointer-events: none;
  width: 250px;
  height: 250px;
  left: -100px;
  bottom: -175px;
  border: 1px solid #fff8;
  border-radius: 50%;
}
.case-contact h2 {
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1.3;
  margin: 22px 0 18px;
  max-width: 650px;
}
.case-contact h2 .brand {
  color: var(--ink);
}
.cta-copy,
.cta-action {
  position: relative;
  z-index: 1;
}
.cta-copy > p:last-child {
  margin-bottom: 0;
}
.cta-phrase {
  display: inline-block;
  white-space: nowrap;
}
.cta-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.cta-friend {
  display: block;
  width: 108px;
  height: auto;
  overflow: visible;
}
.case-contact .round-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px 12px 22px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.6;
  min-width: 0;
}
.case-contact .round-link:hover {
  box-shadow: 0 7px 0 #3332;
  translate: 0 -3px;
}
.case-contact .round-link:focus-visible {
  outline-color: var(--ink);
}
.case-contact .circle-arrow {
  flex: none;
}
.case-contact .round-link:hover .circle-arrow {
  background: var(--ink);
}
.cta-pal {
  transform-box: fill-box;
  transform-origin: center;
}
.cta-wave {
  transform-box: fill-box;
  transform-origin: 0 100%;
}
.cta-eyes {
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes cta-friend-float {
  0%,
  100% {
    translate: 0 2px;
    rotate: -5deg;
  }
  50% {
    translate: 2px -7px;
    rotate: 6deg;
  }
}
@keyframes cta-hand-wave {
  0%,
  100% {
    rotate: -9deg;
  }
  30% {
    rotate: 18deg;
  }
  65% {
    rotate: -14deg;
  }
  85% {
    rotate: 12deg;
  }
}
@keyframes cta-arrow-nudge {
  0%,
  65%,
  100% {
    translate: 0 0;
  }
  78% {
    translate: 2px -2px;
  }
  90% {
    translate: 0 0;
  }
}
@media (max-width: 1100px) {
  .case-contact {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    padding: 34px;
  }
  .case-contact h2 {
    font-size: 30px;
  }
}
@media (max-width: 760px) {
  .case-contact {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 30px 22px;
  }
  .case-contact h2 {
    font-size: 26px;
    margin-top: 20px;
  }
  .cta-action {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 80px;
    align-items: center;
    gap: 14px;
  }
  .cta-action .round-link {
    grid-column: 1;
    grid-row: 1;
    font-size: 12px;
    padding: 12px 12px 12px 17px;
    gap: 12px;
  }
  .cta-friend {
    grid-column: 2;
    grid-row: 1;
    width: 80px;
  }
}
@media (max-width: 370px) {
  .case-contact h2 {
    font-size: 24px;
  }
  .cta-action {
    grid-template-columns: minmax(0, 1fr) 64px;
    gap: 10px;
  }
  .cta-friend {
    width: 64px;
  }
  .cta-action .round-link {
    padding: 10px 10px 10px 14px;
    gap: 9px;
  }
}
/* Motion is opt-in; reduced-motion users keep the static layout. */
@media (prefers-reduced-motion: no-preference) {
  .works-pal {
    animation: works-pal-float 4.6s ease-in-out -0.6s infinite;
    animation-play-state: var(--site-motion-state, running);
  }
  .works-pal-right {
    animation-name: works-pal-drift;
    animation-duration: 5.3s;
    animation-delay: -2.4s;
  }
  .works-screen {
    animation: works-screen-float 6.2s ease-in-out -1.3s infinite;
    animation-play-state: var(--site-motion-state, running);
  }
  .works-eyes {
    animation: friend-blink 5.8s linear -2.1s infinite;
    animation-play-state: var(--site-motion-state, running);
  }
  .works-pal-right .works-eyes {
    animation-delay: -4.7s;
  }
  .works-wave {
    animation: works-wave 2.7s ease-in-out -0.8s infinite;
    animation-play-state: var(--site-motion-state, running);
  }
  .works-spark {
    animation: works-spark-turn 7s ease-in-out -3s infinite;
    animation-play-state: var(--site-motion-state, running);
  }
  .works-dot {
    animation: works-screen-float 3.6s ease-in-out -1s infinite;
    animation-play-state: var(--site-motion-state, running);
  }
  .works-dot-two {
    animation-duration: 4.9s;
    animation-delay: -2s;
  }
  .works-friends:not(.motion-active) * {
    animation-play-state: paused;
  }
  .case-contact .round-link {
    transition:
      box-shadow 0.2s,
      translate 0.2s;
  }
  .case-contact .circle-arrow {
    animation: cta-arrow-nudge 3.6s ease-in-out infinite;
    animation-play-state: paused;
  }
  .cta-pal {
    animation: cta-friend-float 4.2s ease-in-out -0.6s infinite;
    animation-play-state: var(--site-motion-state, running);
  }
  .cta-wave {
    animation: cta-hand-wave 2.5s ease-in-out -0.8s infinite;
    animation-play-state: var(--site-motion-state, running);
  }
  .cta-eyes {
    animation: friend-blink 6.3s linear -2.4s infinite;
    animation-play-state: var(--site-motion-state, running);
  }
  .cta-hello {
    animation: works-screen-float 4.9s ease-in-out -2s infinite;
    animation-play-state: var(--site-motion-state, running);
  }
  .case-contact:not(.motion-active) .cta-friend * {
    animation-play-state: paused;
  }
  .case-contact.motion-active .circle-arrow {
    animation-play-state: var(--site-motion-state, running);
  }
}
