/* The selected project is the first fold, not a picture below an essay. */
.case-page .case-sheet{padding-block:12px 48px}
.case-sheet .case-breadcrumb{margin-bottom:26px;min-height:44px}
.case-sheet-grid{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.35fr);gap:clamp(30px,5vw,88px);align-items:center;min-height:min(66vh,650px)}
.case-sheet-title{min-width:0}
.case-page .case-sheet .case-logo{justify-content:flex-start;width:auto;min-height:0;padding:0;margin-bottom:26px}
.case-page .case-sheet .case-logo img{max-width:188px;max-height:70px}
.case-page .case-sheet .case-client{font-size:13px;letter-spacing:.02em;margin-bottom:20px}
.case-page .case-sheet h1{font-size:clamp(32px,3.55vw,58px);line-height:1.09;letter-spacing:-.045em;max-width:15ch;overflow-wrap:normal;text-wrap:balance}
.case-sheet-art{margin:0;min-width:0;background:transparent}
.case-sheet-art img{display:block;width:min(100%,calc(66svh * var(--case-art-ratio)));height:auto;max-height:none;object-fit:contain;margin-inline:auto}
.case-page .case-project-overview{padding-block:48px 64px}
.case-page .case-project-overview .case-overview{margin:0;padding-top:32px;border-top:1px solid color-mix(in srgb,var(--case-text) 24%,transparent)}
html[dir=rtl] .case-sheet h1{letter-spacing:0;line-height:1.3}
@media(max-width:800px){
 .case-page .case-sheet{padding-block:4px 28px}
 .case-sheet .case-breadcrumb{margin-bottom:20px;gap:16px}
 .case-sheet-grid{display:flex;flex-direction:column;align-items:stretch;gap:28px;min-height:0}
 .case-sheet-art{order:-1}
 .case-sheet-art img{width:min(100%,calc(46svh * var(--case-art-ratio)))}
 .case-page .case-sheet .case-logo{margin-bottom:18px}
 .case-page .case-sheet .case-logo img{max-width:146px;max-height:52px}
 .case-page .case-sheet .case-client{margin-bottom:13px;font-size:12px}
 .case-page .case-sheet h1{font-size:clamp(30px,7.6vw,46px);max-width:24ch;line-height:1.12}
 html[dir=rtl] .case-sheet h1{line-height:1.3}
 .case-page .case-project-overview{padding-block:20px 44px}
}
/* On a rotated handset the viewport is wide but very shallow. Keep the
   artwork and its title side by side rather than below the first screen. */
@media (min-width:580px) and (max-height:470px) and (orientation:landscape){
 .case-sheet .case-breadcrumb{margin-bottom:12px;min-height:30px}
 .case-sheet-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);align-items:start;min-height:0;gap:24px}
 .case-sheet-art{order:0}
 .case-sheet-art img{width:min(100%,calc(54svh * var(--case-art-ratio)));margin-inline:auto}
 .case-page .case-sheet .case-logo{margin-bottom:8px}
 .case-page .case-sheet .case-logo img{max-width:116px;max-height:38px}
 .case-page .case-sheet .case-client{margin-bottom:7px}
 .case-page .case-sheet h1{font-size:clamp(23px,3vw,31px)}
}

.case-block > .case-testimonial {
  grid-column: -2 / -1;
  position: relative;
  margin: 0;
  border-inline-start: 0;
}
.case-block > .case-testimonial::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 2px;
  background: var(--case-accent, #6c9aff);
  transform-origin: bottom;
}
@media (min-width: 901px) {
  .case-page .case-block:has(> .case-testimonial) {
    grid-template-areas: "number heading copy" ". quote copy";
    grid-template-rows: auto 1fr;
    row-gap: 26px;
    align-items: start;
  }
  .case-block:has(> .case-testimonial) > .eyebrow { grid-area: number; }
  .case-block:has(> .case-testimonial) > h2 { grid-area: heading; }
  .case-block:has(> .case-testimonial) > div { grid-area: copy; }
  .case-block > .case-testimonial { grid-area: quote; }
}
@media (prefers-reduced-motion: no-preference) {
  .case-block > .case-testimonial.line-revealed::before {
    animation: case-review-line-in 640ms cubic-bezier(.22,.61,.36,1) both;
  }
}
@keyframes case-review-line-in {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
