.case-study-popup {
  box-sizing: border-box;
  width: min(1500px, calc(100vw - 72px));
  height: min(920px, calc(100vh - 72px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: #111;
  box-shadow: 0 24px 80px rgb(0 0 0 / 28%);
}
.case-study-popup::backdrop { background: rgb(17 17 17 / 56%); }
.case-study-popup-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  padding: 0 18px 0 24px;
  border-bottom: 1px solid #e4e4e4;
  background: #fff;
}
.case-study-popup-bar p {
  margin: 0;
  font: 700 14px/1.3 'Lato', Arial, sans-serif;
}
.case-study-popup-close {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.case-study-popup-close:hover { background: #f1f1f1; }
.case-study-popup-close:focus-visible { outline: 2px solid #7351bd; outline-offset: 2px; }
.case-study-popup-close img { width: 100%; height: 100%; }
.case-study-popup-layout {
  display: grid;
  grid-template-columns: minmax(270px, 30%) minmax(0, 1fr);
  height: calc(100% - 59px);
}
.case-study-popup-intro {
  box-sizing: border-box;
  overflow: auto;
  padding: clamp(32px, 4vw, 64px) clamp(26px, 3.3vw, 52px);
  border-right: 1px solid #e4e4e4;
}
.case-study-popup-eyebrow {
  margin: 0 0 18px;
  color: #6e6b70;
  font: 700 11px/1.5 'Lato', Arial, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.case-study-popup-intro h2 {
  margin: 0 0 28px;
  font: 900 clamp(30px, 3vw, 48px)/1.05 'Muli', Arial, sans-serif;
  letter-spacing: -.035em;
}
.case-study-popup-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.case-study-popup-tags .tag {
  margin: 0;
  padding: 6px 10px;
  background: #dedbf0;
  font-size: 11px;
}
.case-study-popup-copy { color: #555258; font: 400 15px/1.65 'Lato', Arial, sans-serif; }
.case-study-popup-copy p { margin: 0 0 18px; }
.case-study-popup-viewer { position: relative; min-width: 0; background: #f2f1f4; }
.case-study-popup-viewer iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.case-study-popup-loading {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 1;
  margin: 0;
  color: #777378;
  font: 700 12px/1.4 'Lato', Arial, sans-serif;
  transform: translate(-50%, -50%);
}
.case-study-popup.is-loaded .case-study-popup-loading { display: none; }
body.case-study-popup-open { overflow: hidden; }
@media (max-width: 760px) {
  .case-study-popup { width: 100vw; height: 100dvh; border-radius: 0; }
  .case-study-popup-layout { display: flex; flex-direction: column; overflow: auto; }
  .case-study-popup-intro { flex: 0 0 auto; overflow: visible; padding: 28px 24px 30px; border-right: 0; border-bottom: 1px solid #e4e4e4; }
  .case-study-popup-intro h2 { margin-bottom: 20px; font-size: 32px; }
  .case-study-popup-tags { margin-bottom: 20px; }
  .case-study-popup-viewer { flex: 0 0 72dvh; }
}
@media (prefers-reduced-motion: reduce) { .case-study-popup { scroll-behavior: auto; } }
