.case-study{--case-bg:#232622;--case-line:#51574b;--case-text:#f5f5ee;--case-muted:#c3c6ba;--case-lime:#d8fc62;background:var(--case-bg);color:var(--case-text);max-width:1400px;margin:0 auto;font-size:16px;line-height:1.55;font-family:Arial,sans-serif}.case-study *{box-sizing:border-box}.case-study h1,.case-study h2,.case-study p{margin:0 0 14px;font-weight:400}.case-study .top{padding:20px 26px;display:flex;justify-content:space-between;gap:18px;border-bottom:1px solid var(--case-line);font-size:13px;letter-spacing:.04em}.case-study .top a{color:inherit;text-decoration:none}.case-study .muted{color:var(--case-muted)}.case-study .lime{color:var(--case-lime)}
.case-study .hero{position:relative;isolation:isolate;min-height:520px;display:flex;align-items:flex-end;background:#121510;overflow:hidden;padding:0!important;margin:0!important;width:100%;border:0;box-shadow:none}.case-study .hero>img{position:absolute;inset:0;height:100%;width:100%;object-fit:cover;z-index:-2}.case-study .hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(10,13,9,.78),rgba(10,13,9,.08)),linear-gradient(0deg,#121510,transparent 85%);z-index:-1}.case-study .title{background:transparent;padding:36px;max-width:700px}.case-study .title h1{font-size:clamp(30px,4.7vw,62px);line-height:1.02;letter-spacing:-.035em;color:var(--case-text);margin-bottom:14px}.case-study .title.title-long h1{font-size:clamp(28px,4vw,50px);line-height:1.05}.case-study .title h2{font-size:clamp(19px,2.35vw,29px);line-height:1.28;color:inherit;max-width:650px}.case-study .play-film{display:inline-block;margin-top:10px;padding:10px 18px;border:1px solid var(--case-lime);border-radius:30px;color:var(--case-lime);text-decoration:none;font-size:14px}.case-study .hero>iframe{width:100%;aspect-ratio:16/9;border:0;min-height:520px}.case-study .hero:has(>iframe),.case-study .hero.is-playing{display:block;min-height:0!important;height:auto;aspect-ratio:16/9;background:#000}.case-study .hero:has(>iframe):after,.case-study .hero.is-playing:after{display:none}.case-study .hero>iframe{display:block;position:absolute;inset:0;width:100%!important;height:100%!important;min-height:0!important;max-width:none;border:0!important;margin:0!important;padding:0!important;box-shadow:none}
.case-study .meta{display:flex;gap:20px 42px;flex-wrap:wrap;padding:22px 26px;border-bottom:1px solid var(--case-line)}.case-study .meta>div{min-width:130px}.case-study .meta span{display:block;color:var(--case-muted);margin-bottom:8px;font-size:11px;letter-spacing:.075em}.case-study .idea{display:block;padding:34px 26px 28px;border-bottom:1px solid var(--case-line)}.case-study .idea .lime{font-size:12px;letter-spacing:.08em}.case-study .idea h2{font-size:clamp(28px,3.4vw,46px);line-height:1.08;margin:6px 0 18px;max-width:1050px}.case-study .idea p:last-child{width:100%;max-width:1120px;color:#d9dcd3;font-size:17px;line-height:1.72}.case-study .chapters{margin:0 26px}.case-study details{border-top:1px solid var(--case-line)}.case-study details:first-child{border-top:0}.case-study summary{padding:20px 0 13px;color:var(--case-lime);font-size:18px;font-weight:500;cursor:pointer;list-style:none}.case-study summary::-webkit-details-marker{display:none}.case-study .copy{width:100%;max-width:none;border:0;padding:0;margin:0 0 24px}.case-study .copy p{width:100%;max-width:1080px;color:#d9dcd3;font-size:16.5px;line-height:1.72}.case-study .project-info{margin:6px 26px 0;padding:22px 0 20px;border-top:1px solid var(--case-line)}.case-study .project-info-title{font-size:10px;letter-spacing:.1em;color:var(--case-muted);margin-bottom:16px}.case-study .project-info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:18px 32px}.case-study .project-info-grid div{font-size:13px;line-height:1.45;color:#e0e3dc}.case-study .project-info-grid span{display:block;font-size:10px;letter-spacing:.08em;color:var(--case-muted);margin-bottom:5px}
.case-study .storyboard{padding:36px 26px 28px;border-top:1px solid var(--case-line)}.case-study .storyboard-head{display:grid;grid-template-columns:150px minmax(0,1fr);gap:16px 28px;margin-bottom:22px}.case-study .storyboard-head .label{font-size:11px;letter-spacing:.09em;color:var(--case-lime)}.case-study .storyboard-head h2{font-size:clamp(28px,3.4vw,46px);line-height:1.08;margin:0}.case-study .storyboard-head p{grid-column:2;color:var(--case-muted);max-width:820px}.case-study .storyboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.case-study .storyboard-grid.one{grid-template-columns:1fr}.case-study .storyboard-page{display:block;background:#111;overflow:hidden}.case-study .storyboard-page img{display:block;width:100%;height:auto;transition:transform .3s ease}.case-study .storyboard-page:hover img{transform:scale(1.006)}
.case-study .closing{background:transparent;margin:8px 26px 0;padding:22px 0;border-top:1px solid var(--case-line);gap:16px;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center}.case-study .closing p{color:var(--case-muted)!important;margin:0;flex:1}.case-study .closing a{color:#20251b!important;background:var(--case-lime);border-radius:24px;padding:10px 18px;text-decoration:none;font-size:14px;font-weight:600;white-space:nowrap}
.case-study-footer{display:block;max-width:1400px;margin:0 auto;background:#d8fc62;color:#20251b;padding:24px 28px 16px;border:0;font-family:Arial,sans-serif}.case-study-footer .csf-top,.case-study-footer .csf-bottom{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.case-study-footer .csf-top{font-size:11px;letter-spacing:.04em}.case-study-footer .csf-title{display:flex;align-items:center;justify-content:space-between;gap:24px;font-size:clamp(30px,4.5vw,56px);font-weight:600;letter-spacing:-.05em;line-height:1.05;margin:20px 0;color:#20251b}.case-study-footer .csf-title span{font-size:1.1em;font-weight:400}.case-study-footer .csf-bottom{font-size:13px;border-top:1px solid #20251b40;padding-top:14px}.case-study-footer .csf-links{display:flex;gap:18px;flex-wrap:wrap}.case-study-footer a{color:#20251b;text-decoration:none}
@media(max-width:700px){.case-study .storyboard-head,.case-study .storyboard-grid{grid-template-columns:1fr}.case-study .storyboard-head p{grid-column:1}.case-study .project-info-grid{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.case-study .top{flex-wrap:wrap}.case-study .hero{min-height:440px}.case-study .title{padding:24px}.case-study .title h1,.case-study .title.title-long h1{font-size:clamp(30px,10vw,44px)}.case-study .hero>iframe{min-height:0}.case-study .hero:has(iframe),.case-study .hero.is-playing{min-height:0}.case-study .meta{gap:18px 28px;padding:18px 22px}.case-study .meta>div{min-width:calc(50% - 28px)}.case-study .idea{padding:30px 22px 24px}.case-study .chapters{margin:0 22px}.case-study .project-info{margin-left:22px;margin-right:22px}.case-study .storyboard{padding-left:22px;padding-right:22px}.case-study .closing{margin-left:22px;margin-right:22px}.case-study-footer{padding:20px 24px}.case-study-footer .csf-top{font-size:10px}.case-study-footer .csf-title{font-size:34px}.case-study-footer .csf-bottom{font-size:12px}}

/* Cinematic storyboard experience */
.storyboard-cinematic{border-top:1px solid rgba(255,255,255,.16);padding:44px 0 20px;margin-top:18px}.storyboard-head{display:flex;justify-content:space-between;gap:36px;align-items:flex-end;margin-bottom:26px}.storyboard-head h2{font-size:clamp(32px,4vw,58px);font-weight:400;letter-spacing:-.03em;margin:6px 0 10px}.storyboard-intro{max-width:720px;color:#c8cbc5;font-size:17px;line-height:1.55}.explore-storyboard{background:transparent;border:1px solid #d5f860;color:#d5f860;padding:15px 20px;font:inherit;letter-spacing:.08em;cursor:pointer;white-space:nowrap}.explore-storyboard:hover{background:#d5f860;color:#1f211f}.storyboard-feature{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,.85fr);background:#111311;border:1px solid rgba(255,255,255,.14);min-height:430px}.storyboard-main{position:relative;overflow:hidden;background:#080908}.storyboard-main img{width:100%;height:100%;object-fit:cover;display:block;transform:scale(1.02)}.shot-count{position:absolute;left:22px;top:20px;font-size:13px;letter-spacing:.16em;color:#fff}.storyboard-copy{padding:48px 42px;display:flex;flex-direction:column;justify-content:center}.storyboard-copy .eyebrow{color:#d5f860;letter-spacing:.15em;font-size:12px}.storyboard-copy h3{font-size:clamp(25px,2.4vw,38px);font-weight:400;margin:8px 0 20px}.storyboard-copy>p:not(.eyebrow){color:#c8cbc5;line-height:1.65}.storyboard-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:26px}.storyboard-tags span{border:1px solid rgba(255,255,255,.25);border-radius:99px;padding:7px 11px;font-size:10px;letter-spacing:.1em}.storyboard-strip{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-top:12px}.storyboard-strip img{width:100%;aspect-ratio:16/9;object-fit:cover;opacity:.58;border:1px solid transparent}.storyboard-strip img.active{opacity:1;border-color:#d5f860}.storyboard-dialog{width:min(96vw,1500px);height:92vh;max-width:none;max-height:none;padding:52px 22px 22px;background:#101210;border:1px solid rgba(255,255,255,.2);color:#fff}.storyboard-dialog::backdrop{background:rgba(0,0,0,.92);backdrop-filter:blur(8px)}.storyboard-close{position:fixed;right:4vw;top:4vh;background:transparent;color:#fff;border:0;letter-spacing:.12em;cursor:pointer;z-index:2}.storyboard-full{height:100%;overflow:auto;text-align:center}.storyboard-full img{width:min(100%,1024px);height:auto}.storyboard-dialog[open]{animation:storyboardIn .2s ease-out}@keyframes storyboardIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}@media(max-width:800px){.storyboard-head{display:block}.explore-storyboard{margin-top:18px}.storyboard-feature{grid-template-columns:1fr}.storyboard-main{min-height:280px}.storyboard-copy{padding:30px 24px}.storyboard-strip{overflow-x:auto;grid-template-columns:repeat(5,150px)}}

/* Storyboard v2 — cinematic shot navigator */
.case-study .storyboard-cinematic .storyboard-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:24px 40px;margin-bottom:28px}
.case-study .storyboard-cinematic .storyboard-heading-copy{min-width:0}
.case-study .storyboard-cinematic .storyboard-head h2{font-size:clamp(34px,4vw,58px);margin:7px 0 8px;white-space:nowrap}
.case-study .storyboard-cinematic .storyboard-intro{max-width:none;width:100%;font-size:17px;line-height:1.55;margin:0;color:#c8cbc5}
.case-study .storyboard-cinematic .explore-storyboard{align-self:end;min-width:250px}
.case-study .storyboard-feature{position:relative;grid-template-columns:minmax(0,1.7fr) minmax(300px,.8fr);min-height:500px}
.case-study .storyboard-main img{object-fit:contain;transform:none;background:#090a09}
.case-study .storyboard-copy{padding:46px 46px}
.case-study .storyboard-copy .eyebrow{font-size:13px}.case-study .storyboard-copy .shot-time{color:#8f948d;margin-left:12px;letter-spacing:.06em}
.case-study .storyboard-copy .shot-action{font-size:clamp(19px,1.8vw,28px);line-height:1.48;color:#f1f2ee!important;margin:18px 0 0}
.case-study .storyboard-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:48px;height:48px;border:1px solid rgba(255,255,255,.35);border-radius:50%;background:rgba(10,11,10,.68);color:#fff;font-size:22px;cursor:pointer;backdrop-filter:blur(6px)}
.case-study .storyboard-arrow:hover{border-color:#d5f860;color:#d5f860}.case-study .storyboard-prev{left:18px}.case-study .storyboard-next{right:18px}
.case-study .storyboard-strip,.case-study .storyboard-grid{display:none!important}
@media(max-width:800px){.case-study .storyboard-cinematic .storyboard-head{grid-template-columns:1fr}.case-study .storyboard-cinematic .storyboard-head h2{white-space:normal}.case-study .storyboard-cinematic .explore-storyboard{width:100%}.case-study .storyboard-feature{grid-template-columns:1fr;min-height:0}.case-study .storyboard-main{min-height:300px}.case-study .storyboard-arrow{top:31%}.case-study .storyboard-copy{padding:30px 24px 38px}}
/* Storyboard v3 — original artwork preview, untouched */
.case-study .storyboard-original-preview .storyboard-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:28px 44px;margin-bottom:30px}.case-study .storyboard-original-preview .storyboard-heading-copy{min-width:0}.case-study .storyboard-original-preview .storyboard-head h2{font-size:clamp(38px,5vw,70px);font-weight:400;letter-spacing:-.035em;margin:7px 0 8px;white-space:normal}.case-study .storyboard-original-preview .storyboard-intro{max-width:none;width:100%;margin:0;color:#c8cbc5;font-size:18px;line-height:1.55}.case-study .storyboard-original-preview .explore-storyboard{min-width:290px;padding:18px 24px}.case-study .storyboard-board-preview{background:#0b0c0b;border:1px solid rgba(255,255,255,.13);overflow:hidden;padding:18px}.case-study .storyboard-board-preview img{display:block;width:100%;height:auto;object-fit:contain;background:#0b0c0b}.case-study .storyboard-pdf-dialog{width:96vw;height:94vh;padding:48px 18px 18px;background:#0b0c0b;border:1px solid rgba(255,255,255,.2)}.case-study .storyboard-pdf-dialog::backdrop{background:rgba(0,0,0,.94);backdrop-filter:blur(8px)}.case-study .storyboard-pdf-wrap{height:100%;width:100%}.case-study .storyboard-pdf-wrap object{display:block;width:100%;height:100%;border:0;background:#111}@media(max-width:800px){.case-study .storyboard-original-preview .storyboard-head{grid-template-columns:1fr}.case-study .storyboard-original-preview .explore-storyboard{width:100%;min-width:0}.case-study .storyboard-board-preview{padding:8px}.case-study .storyboard-pdf-dialog{width:98vw;height:94vh;padding:46px 8px 8px}}
/* v7 — cinematic storyboard teaser: keep original artwork untouched, reveal only a preview window */
.case-study .storyboard-board-preview{
  position:relative;
  height:clamp(300px,38vw,540px);
  padding:0;
  overflow:hidden;
  background:#0b0c0b;
  border:1px solid rgba(255,255,255,.12);
}
.case-study .storyboard-board-preview img{
  display:block;
  width:100%;
  height:auto;
  min-height:100%;
  object-fit:cover;
  object-position:top center;
  background:#0b0c0b;
}
.case-study .storyboard-board-preview::after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:48%;
  pointer-events:none;
  background:linear-gradient(to bottom,rgba(11,12,11,0),#0b0c0b 92%);
}
.case-study .storyboard-board-preview::before{
  content:"VIEW THE COMPLETE ORIGINAL STORYBOARD";
  position:absolute;
  z-index:2;
  left:50%;
  bottom:28px;
  transform:translateX(-50%);
  color:#d5f860;
  font-size:11px;
  letter-spacing:.16em;
  white-space:nowrap;
}
@media(max-width:800px){
 .case-study .storyboard-board-preview{height:330px}
 .case-study .storyboard-board-preview::before{font-size:9px;bottom:18px}
}

/* Full-resolution storyboard image viewer */
.storyboard-image-dialog{width:min(96vw,1800px);max-width:none;height:min(94vh,1200px);padding:0;background:#151715;border:1px solid rgba(255,255,255,.15);overflow:auto}
.storyboard-full-image-wrap{min-width:100%;padding:64px 18px 18px}
.storyboard-full-image-wrap img{display:block;width:auto;max-width:none;height:auto;min-width:100%;margin:0 auto}
.storyboard-image-dialog .storyboard-close{position:fixed;z-index:3}
@media(max-width:700px){.storyboard-full-image-wrap{padding:58px 8px 8px}.storyboard-full-image-wrap img{width:1600px;min-width:1600px}}

/* v28 — cleaner separators + fullscreen storyboard close control */
.case-study .storyboard,
.case-study .closing{
  border-top:0;
}
.storyboard-dialog,
.case-study .storyboard-pdf-dialog,
.storyboard-image-dialog{
  position:relative;
}
.storyboard-close,
.storyboard-image-dialog .storyboard-close,
.case-study .storyboard-pdf-dialog .storyboard-close{
  position:absolute;
  top:12px;
  right:16px;
  left:auto;
  z-index:100;
  margin:0;
  padding:8px 10px;
  background:#101210;
  color:#fff;
  border:1px solid rgba(255,255,255,.28);
  border-radius:0;
  font:inherit;
  font-size:12px;
  line-height:1;
  letter-spacing:.12em;
  cursor:pointer;
}

/* v29 — force every fullscreen storyboard close button to the far top-right */
.storyboard-dialog[open]{position:fixed!important;inset:4vh 2vw!important;width:96vw!important;height:92vh!important;margin:0!important;box-sizing:border-box!important;}
.storyboard-dialog .storyboard-dialog-bar{position:relative!important;display:block!important;min-height:28px!important;padding-right:110px!important;}
.storyboard-dialog .storyboard-dialog-bar > button,
.storyboard-dialog > .storyboard-close,
.storyboard-pdf-dialog > .storyboard-close,
.storyboard-image-dialog > .storyboard-close{
  position:absolute!important;
  top:10px!important;
  right:12px!important;
  left:auto!important;
  margin:0!important;
  z-index:9999!important;
  white-space:nowrap!important;
  background:#101210!important;
  color:#fff!important;
  border:1px solid #d5f860!important;
  padding:8px 10px!important;
  line-height:1!important;
}

/* v31 — clean fullscreen storyboard chrome */
.storyboard-dialog[open] .storyboard-close,
.storyboard-dialog[open] .storyboard-dialog-bar > button,
.case-study .storyboard-pdf-dialog[open] > .storyboard-close,
.storyboard-image-dialog[open] > .storyboard-close{
  position:absolute!important;
  top:8px!important;
  right:8px!important;
  left:auto!important;
  z-index:10000!important;
}
.storyboard-dialog[open] .storyboard-dialog-bar{
  min-height:0!important;
  padding:0!important;
}

/* Phase 2A (2026-09-18) — B1/B2, Media Strom Freud + Einstein only.
   Those two dialogs wrap the PDF in .storyboard-dialog-content. The wrapper had no height, so an
   iframe with inline height:88vh overflowed the 92vh dialog and created a second scrollbar.
   The dialog is height:92vh with box-sizing:border-box, so its content box is a definite height:
   giving the wrapper height:100% makes the PDF fill exactly the space left by the dialog padding.
   Only these two pages contain .storyboard-dialog-content, so no other storyboard is affected.
   No !important is used; the close button now positions against the dialog like the other six. */
.storyboard-dialog > .storyboard-dialog-content{height:100%}
.storyboard-dialog > .storyboard-dialog-content > iframe{display:block;width:100%;height:100%}

/* storyboard pages as pictures — one view in every browser, no native PDF viewer involved */
.case-study .storyboard-pdf-wrap,
.storyboard-dialog > .storyboard-dialog-content{overflow:auto;-webkit-overflow-scrolling:touch}
.storyboard-pages{display:flex;flex-direction:column;align-items:center;gap:18px;padding:0 0 10px}
.storyboard-pages img{display:block;width:100%;max-width:1400px;height:auto;background:#0b0c0b;
  border:1px solid rgba(255,255,255,.12)}
.storyboard-pages .storyboard-original{margin:4px 0 0;font-size:13px;letter-spacing:.04em;color:#b8bcb5}
.storyboard-pages .storyboard-original a{color:#d5f860;border-bottom:1px solid #d5f860;padding-bottom:4px}
@media(max-width:600px){.storyboard-pages{gap:12px}.storyboard-pages img{max-width:100%}}

/* storyboards are never cropped (2026-09-29).
   1. The image viewer (Cleopatra). Earlier rules drew the board at its own pixel width (2048 px) with
      min-width:100%, and on phones forced it to 1600 px — wider than the viewer at every size, so the
      right-hand side was cut off and had to be panned to. Now the board is drawn whole, at the width
      of the viewer, never enlarged beyond its own size; long boards scroll down, never sideways. */
.storyboard-image-dialog{overflow-x:hidden;overflow-y:auto}
.storyboard-full-image-wrap{min-width:0}
.storyboard-full-image-wrap img{width:auto;min-width:0;max-width:100%;height:auto;object-fit:contain}
.storyboard-pdf-wrap,.storyboard-dialog>.storyboard-dialog-content{overflow-x:hidden}
.storyboard-pages img{object-fit:contain}
/* 2. The preview window on the page. It had a fixed height and object-fit:cover with min-height:100%,
      so a wide board was enlarged to fill the box and its sides were cut (up to half of the board on a
      phone). It now always shows the board's full width; only its lower part is hidden under the fade,
      which is what the preview window was designed to do. */
.case-study .storyboard-board-preview{height:auto;max-height:clamp(300px,38vw,540px)}
.case-study .storyboard-board-preview img{min-height:0;height:auto;object-fit:contain}
.case-study .storyboard-board-preview[data-opens-storyboard]{cursor:zoom-in}
.case-study .storyboard-board-preview[data-opens-storyboard]:focus-visible{outline:2px solid #d5f860;outline-offset:3px}
@media(max-width:800px){.case-study .storyboard-board-preview{height:auto;max-height:330px}}
