.case-hero{
  --hero-bg:#f4f3ee;--case-image-edge:21px;
  position:relative;display:grid;isolation:isolate;align-items:center;
  grid-template-columns:minmax(0,.84fr) minmax(0,1.16fr);
  min-height:clamp(380px,43vw,595px);margin:4px 0 clamp(24px,5vw,66px);
  background:var(--hero-bg);color:#151515;overflow:hidden
}
.case-hero-image{grid-area:1/2;width:100%;height:100%;object-fit:cover;min-width:0;min-height:0;padding:var(--case-hero-margin,var(--case-image-edge))}
.case-hero-frame,.case-hero-crop{width:100%;height:100%;object-fit:inherit;object-position:inherit}
.case-hero-frame{position:relative}
.case-hero-crop{overflow:hidden}
.case-hero-image[data-cropped] .case-hero-crop{
  clip-path:inset(var(--hero-crop-top) var(--hero-crop-right) var(--hero-crop-bottom) var(--hero-crop-left))
}
.case-hero-motif{
  display:block;width:100%;height:100%;object-fit:inherit;object-position:inherit;
  transform:translate(var(--hero-pan-x,0%),var(--hero-pan-y,0%)) scale(var(--hero-zoom,1))
}
.case-hero-copy{grid-area:1/1;position:relative;z-index:1;padding:var(--case-copy-inline-padding);max-width:45rem}
.case-hero-category,.case-hero-deliveries dt{font-family:Manrope,Arial,sans-serif;font-size:12px;font-weight:800;letter-spacing:.11em;text-transform:uppercase}
/* The condensed headline has more space above the glyphs than the Manrope label. */
.case-hero-copy{--case-copy-inline-padding:clamp(24px,4.2vw,70px);--case-label-gap:8px;--case-delivery-gap:22px}
.inner .case-hero :is(h1,h3).case-title{font-size:var(--page-heading);line-height:calc(83 / 85);margin:var(--case-label-gap) 0 20px;overflow-wrap:anywhere}
.case-hero-copy .case-hero-category{margin:0;line-height:1.35}
.case-hero-description,.case-hero-deliveries dd,.j-story-hero .j-title p{white-space:pre-line}
.case-hero-copy .case-hero-description{
  font-size:clamp(16px,1.45vw,20px);line-height:1.35;max-width:40ch;margin:0
}
.case-hero-copy .case-hero-deliveries{
  margin:24px 0 0;padding-top:var(--case-delivery-gap);max-width:min(100%,38ch);
  border-color:color-mix(in srgb,currentColor 40%,transparent)
}
.case-hero-copy .case-hero-deliveries dt{line-height:1.35}
.case-hero-copy .case-hero-deliveries dd{margin-top:4px;line-height:1.45}
.case-hero-deliveries{margin:25px 0 0;padding-top:12px;border-top:1px solid currentColor;max-width:35ch}
.case-hero-deliveries dd{margin:5px 0 0;font-size:14px}
.inline-items{
  --inline-item-gap:1.35em;
  display:flex;flex-wrap:wrap;align-items:baseline;gap:.22em var(--inline-item-gap);
  list-style:none;margin:0;padding-inline:0;overflow:hidden
}
.inline-items li{position:relative;min-width:0;overflow-wrap:anywhere}
.case-hero--single-delivery-line .case-hero-copy .case-hero-deliveries{
  max-width:100%
}
.inline-items li:not(:first-child)::before{
  content:"•";position:absolute;
  left:calc(-.5 * var(--inline-item-gap));transform:translateX(-50%)
}
.case-hero--reelaks{--hero-bg:#e8f4f3}
.case-hero--reelaks .case-hero-image{object-position:58% center}
.case-hero--anniversary{--hero-bg:#431923;color:#fff}
.case-hero--anniversary .case-hero-copy{--case-copy-inline-padding:clamp(23px,3.2vw,50px)}
.case-hero--anniversary .case-hero-image{object-position:center 47%}
.case-hero--lounge{--hero-bg:#1b2119;color:#fff}
.case-hero--festival{--hero-bg:#dce9df}
.case-hero--festival .case-hero-image{height:clamp(280px,41vw,550px);object-fit:contain}
@media(max-width:640px){
  .case-hero{grid-template-columns:1fr;min-height:0}
  .case-hero-image{grid-area:1/1;height:auto;max-height:350px;object-fit:cover}
  .case-hero-copy{grid-area:2/1;padding:23px}
  .case-hero--festival .case-hero-image{max-height:300px;object-fit:contain}
  .case-hero-deliveries{margin-top:17px}
}

.case-film{margin:0 0 var(--case-gap)}
.inner .case-film h2{font-size:clamp(20px,2.7vw,34px);margin:0 0 14px}
.case-film video{display:block;width:100%;height:auto;aspect-ratio:var(--film-ratio,16/9);background:#141414;color-scheme:dark}

.case-hero--standard{--hero-bg:#f2f1ee}
.case-hero--standard .case-hero-image{object-fit:contain;height:clamp(260px,41vw,555px)}
.j-story-hero .j-title{top:20%;max-width:53%}
.j-story-hero .j-title p{max-width:38ch}
@media(max-width:680px){.j-story-hero .j-title{max-width:none}}

.j-story-hero .j-title{--case-copy-gap:clamp(13px,1.55vw,23px)}
.inner .case-title{letter-spacing:-2px}
.case-title span{display:inline-block;max-inline-size:100%;white-space:normal}
.j-story-hero .case-hero-deliveries{
  margin-top:var(--case-copy-gap);padding-top:var(--case-copy-gap);max-width:38ch
}
.j-story-hero .j-title{width:52%;padding-top:0}
.j-story-hero .j-title h1{font-size:var(--page-heading)}
.j-story-hero .j-title p{margin-top:var(--case-copy-gap)}
@media(max-width:680px){.j-story-hero .j-title{width:100%}}

:root{--case-hero-height:clamp(315px,44.1vw,594px);--case-mobile-image-height:clamp(185px,55vw,315px)}
.case-hero{
  min-height:var(--case-hero-height);
  grid-template-rows:minmax(var(--case-hero-height),auto);
}
.case-hero-image{
  position:absolute;inset:0;width:100%;height:100%;max-height:none
}
.case-hero--festival .case-hero-image,.case-hero--standard .case-hero-image{height:100%}
.case-hero-copy{padding-block:clamp(20px,3.4vw,52px)}
.j-story-hero .j-cup img{height:var(--case-hero-height)}
.j-story-hero .j-title{top:50%;transform:translateY(-50%)}
.case-preview-notice{
  display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:4px 15px;
  width:max-content;max-width:90%;margin:0 auto 10px;padding:6px 12px;
  background:#e7efe8;color:#1e432d;font-weight:750;font-size:.81rem;border-radius:20px
}
.return-to-case-editor{display:inline-flex;align-items:center;gap:4px}
@media(max-width:680px){
  .case-hero{grid-template-columns:1fr;grid-template-rows:auto auto;min-height:0}
  .case-hero-image,.case-hero--festival .case-hero-image,.case-hero--standard .case-hero-image{
    position:relative;inset:auto;grid-area:1/1;height:var(--case-mobile-image-height);max-height:none
  }
  .case-hero-copy{grid-area:2/1;padding:23px}
  .j-story-hero .j-cup img{height:var(--case-mobile-image-height)}
  .j-story-hero .j-title{transform:none}
}
.case-hero--no-image{grid-template-columns:1fr}
@media(max-width:680px){.case-hero--no-image .case-hero-copy{grid-area:1/1}}

.case-hero.case-hero--overlay{grid-template-columns:minmax(0,1fr)}
.case-hero.case-hero--overlay .case-hero-image{
  position:absolute;inset:0;grid-area:1/1;width:100%;height:100%;
  object-fit:cover;mix-blend-mode:normal
}
.case-hero.case-hero--overlay .case-hero-copy{
  grid-area:1/1;width:min(54%,680px);max-width:none;background:none;margin:0;align-self:center
}
@media(max-width:680px){
  .case-hero.case-hero--overlay{min-height:var(--case-mobile-image-height);grid-template-rows:minmax(var(--case-mobile-image-height),auto)}
  .case-hero.case-hero--overlay .case-hero-copy{width:100%}
}


@media(min-width:681px){
  /* Match the left crop edge of the NNE case at every hero margin. */
  .case-hero:not(.case-hero--overlay) .case-hero-image{
    padding-inline-start:var(--case-image-edge)
  }
  .inner .case-hero :is(h1,h3).case-title{
    margin-inline-end:calc(16px - var(--case-copy-inline-padding))
  }
  .inner .case-hero--wide-title :is(h1,h3).case-title{
    inline-size:calc(100% + min(23vw,280px));
    overflow-wrap:normal
  }
}

.case-hero-copy{text-align:left}
.case-hero-copy .case-title{padding-inline:0;text-indent:0}

.case-loading{padding:1rem 0;color:var(--muted);font-size:.9rem}

.inner .case-hero :is(h1,h3).case-title{margin-top:calc(var(--case-label-gap) + .18em + var(--case-accent-clearance,0px))}

/* The hero and gallery share one canvas width. */
#preview-case,.project{container-type:inline-size}
@media(min-width:781px){
  .case-hero{
    --case-hero-height:43.68cqw;
    --page-heading:6.25cqw;
    --case-copy-inline-padding:5.147cqw;
    --case-label-gap:.588cqw;
    --case-delivery-gap:1.618cqw;
  }
  .case-hero-copy{padding-block:3.824cqw}
  .case-hero-category,.case-hero-deliveries dt{font-size:.8824cqw}
  .case-hero-copy .case-hero-description{font-size:1.47cqw}
  .case-hero-copy .case-hero-deliveries{margin-top:1.765cqw}
  .case-hero-copy .case-hero-deliveries dd{font-size:1.0294cqw}
  .inner .case-hero :is(h1,h3).case-title{margin-bottom:1.47cqw}
}

/* One visible gap above the title and below the deliveries divider, including accents. */
.inner .case-hero :is(h1,h3).case-title{
 margin-top:var(--case-title-ink-gap,calc(var(--case-delivery-gap) + var(--case-accent-clearance,0px)))
}

/* Category pills replace numbered labels. */
.case-hero .case-hero-category{display:table;width:fit-content;max-width:100%;border:1px solid currentColor;border-radius:30px;padding:4px 10px;font:600 12px/1.3 Manrope,Arial,sans-serif;letter-spacing:0;text-transform:none;white-space:pre-line;margin:0;text-shadow:none}

.case-card-foreground{object-fit:contain!important;pointer-events:none;z-index:0}
.case-card-foreground .case-hero-crop,.case-card-foreground .case-hero-frame{object-fit:contain;object-position:center}
.case-card-foreground .case-hero-motif{object-fit:contain!important;object-position:center!important;transform:none!important}
