#case-studies { overflow-x: clip; }

.case-section .case-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1.02fr) minmax(0, .68fr);
  grid-template-areas: "copy chapters presenter" "film chapters presenter";
  row-gap: clamp(1rem, 1.5vw, 1.55rem);
  align-items: center;
}
.case-section .case-copy { grid-area: copy; align-self: end; min-width: 0; }
.case-section .case-copy > p:not(.eyebrow) { margin-top: .65rem; }
.case-section .case-film { grid-area: film; align-self: start; margin: 0; }
.case-section .case-details {
  grid-area: chapters;
  min-width: 0;
  padding-right: clamp(16px, 1.55vw, 23px);
}
.case-section .case-details ul { display: block; margin: 0; }
.case-section .case-details li { display: block; padding: 0; }
.case-section .case-details li:last-child { border-bottom: 1px solid var(--hairline); }

.case-section .kana-cue {
  --cue-edge: #84526c;
  display: grid;
  grid-template-columns: minmax(0, 1fr) .75rem;
  gap: .18rem .5rem;
  width: 100%;
  min-height: 52px;
  padding: .72rem .5rem .75rem .38rem;
  align-items: center;
  color: var(--white);
  border: 0;
  border-radius: .32rem;
  background: transparent;
  text-align: left;
  font-family: var(--sans);
  cursor: pointer;
  transition: background-color .18s ease;
}
.case-section .kana-cue :is(strong, span, time) { margin: 0; }
.case-section .kana-cue .kana-cue-title {
  display: flex;
  align-items: baseline;
  gap: .42rem;
  flex-wrap: wrap;
  line-height: 1.24;
}
.case-section .kana-cue time {
  color: #d2a7c1;
  font: 600 .71rem/1.2 var(--sans);
  letter-spacing: .025em;
  font-variant-numeric: tabular-nums;
}
.case-section .kana-cue strong { display: inline; font-size: clamp(.9rem, 1.02vw, 1.02rem); }
.case-section .kana-cue .kana-cue-detail {
  grid-column: 1;
  font-size: clamp(.78rem, .9vw, .88rem);
  line-height: 1.38;
  color: #d4c4d1;
}
.case-section .kana-cue .kana-cue-marker {
  grid-area: 1 / 2 / span 2 / 3;
  justify-self: end;
  width: .52rem;
  height: .52rem;
  border-radius: 50%;
  border: 1px solid var(--cue-edge);
  background: #271923;
  transition: background-color .18s ease, box-shadow .18s ease;
}
.case-section .kana-cue[aria-current="true"] { background-color: #3b2335; }
.case-section .kana-cue:is(:hover, :focus-visible) { background-color: #31202e; }
.case-section .kana-cue:is([aria-current="true"], [data-pointed], :hover, :focus-visible) .kana-cue-marker {
  background-color: #ffb9df;
  border-color: #ffe1f1;
  box-shadow: 0 0 .4rem #e488bd9b;
}
.case-section .kana-cue:focus-visible { outline: 2px solid #f7c1de; outline-offset: 2px; }

.kana-presenter {
  grid-area: presenter;
  min-width: 0;
  margin: 0;
  align-self: center;
  position: relative;
  left: clamp(6px, .85vw, 12px);
}
.kana-presenter-art {
  position: relative;
  width: 100%;
  aspect-ratio: .7;
  margin: 0 auto;
}
.kana-presenter figcaption {
  font-family: var(--sans);
  line-height: 1.35;
  text-align: center;
  margin-top: .5rem;
}
.kana-presenter figcaption strong { display: block; color: #f7d7e9; font-size: .98rem; }
.kana-presenter figcaption span { color: #d4bbcd; font-size: .79rem; }

@media (min-width: 1240px) {
  .case-section { container-type: inline-size; }
  .case-section .case-grid {
    /* The film keeps its share of the original three-column grid (1.45 / 3.15). */
    --original-width: min(1380px, calc(100cqw - 2 * var(--side)));
    --original-gap: clamp(1.25rem, 3.15vw, 3.4rem);
    --film-width: calc((var(--original-width) - 2 * var(--original-gap)) * .46031746);
    width: min(1520px, calc(100% - 5vw));
    grid-template-columns: minmax(0, 1.28fr) var(--film-width) minmax(0, 1fr) minmax(0, .92fr);
    grid-template-areas: "copy film chapters presenter";
    column-gap: clamp(1rem, 1.7vw, 1.6rem);
  }
  .case-section .case-copy,
  .case-section .case-film { align-self: center; }
  .case-section .case-copy h2 { font-size: clamp(2rem, 2.58vw, 2.83rem); }
}
@media (max-width: 1100px) and (min-width: 851px) {
  .case-section .case-grid {
    /* Keep the space the original title column occupied at this breakpoint. */
    grid-template-columns: minmax(0, 1.22fr) minmax(15.95rem, .95fr) minmax(0, .66fr);
  }
}
@media (max-width: 850px) and (min-width: 651px) {
  .case-section .case-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(15.95rem, .88fr);
    grid-template-areas: "film copy" "chapters presenter";
    row-gap: 1.5rem;
  }
  .case-section .case-copy { align-self: center; }
  .kana-presenter { width: min(100%, 14rem); justify-self: start; }
}
@media (max-width: 650px) {
  .case-section .case-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .84fr);
    grid-template-areas: "copy copy" "film film" "chapters presenter";
    gap: 1.22rem clamp(.55rem, 2.2vw, .9rem);
  }
  .case-section .case-copy h2 { max-width: 17ch; }
  .case-section .case-details .eyebrow { line-height: 1.45; }
  .case-section .kana-cue { padding: .6rem .22rem .6rem .16rem; gap: .15rem .18rem; }
  .case-section .kana-cue .kana-cue-title { gap: .18rem .38rem; }
  .kana-presenter { width: min(100%, 12.25rem); justify-self: start; }
  .kana-presenter figcaption strong { font-size: .9rem; }
  .kana-presenter figcaption span { display: inline-block; font-size: .72rem; line-height: 1.25; }
}
@media (forced-colors: active) {
  .case-section .kana-cue[aria-current="true"] { outline: 1px solid Highlight; }
}
