/* Entertainment case studies (owner brief 2026-11-04): one dialog per project, the same layout for all three.
   A large light sheet over a dimmed page, like the Talent bio sheet: Studio white, hairline rules, Gloock title, the pink line colour only as
   decoration (the 6px band at the top edge and the dot by the category). The sheet scrolls inside itself; the Close button sits in the sheet's
   top bar, outside the scrolling part, so it never scrolls away. On a phone the sheet fills the screen. js/ent-case.js opens and closes it. */
dialog.cdlg:not([open]){display:none}
.cdlg{
  --g:var(--dot-ent);
  position:fixed;inset:0;margin:auto;box-sizing:border-box;
  width:min(1080px,calc(100% - 64px));max-width:none;height:auto;max-height:calc(100dvh - 64px);
  padding:64px 0 0;border:0;border-radius:var(--r);overflow:hidden;
  background:var(--paper);color:var(--ink);
  box-shadow:0 30px 90px -24px rgba(12,14,20,.5);   /* the one thing on the page that floats */
}
.cdlg[open]{display:flex;flex-direction:column}
.cdlg:focus,.cdlg:focus-visible{outline:none}   /* the box itself is not a control: the ring belongs on Close */
.cdlg::backdrop{background:rgba(16,18,24,.64)}
.cdlg-poly .cdlg[open]{z-index:1001}
.cdlg-veil{position:fixed;inset:0;z-index:1000;background:rgba(16,18,24,.64)}
/* the line colour as an edge, decoration only */
.cdlg::before{content:"";position:absolute;inset:0 0 auto;height:6px;background:var(--g);pointer-events:none}
.cdlg__in{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:8px clamp(20px,4vw,52px) clamp(28px,4vw,48px);border-top:1px solid var(--iline)}

/* Close: a labelled button with an X, 44px, in the top bar */
.cdlg__close{position:absolute;top:12px;right:12px;z-index:2;display:inline-flex;align-items:center;gap:8px;min-width:44px;height:44px;padding:0 16px 0 14px;border:0;border-radius:999px;background:var(--ink);color:var(--paper);font:700 .9375rem/1 var(--text);cursor:pointer}
.cdlg__close svg{width:16px;height:16px;flex:none}
.cdlg__close:hover{background:var(--btn-ink-hover,#2E313A)}
.cdlg__close:focus-visible{outline:2px solid var(--ink);outline-offset:3px}

/* heading */
.cdlg__head{display:grid;gap:10px;padding-top:clamp(16px,2.4vw,28px)}
.cdlg__k{display:inline-flex;align-items:center;gap:10px;font:700 .8125rem/1.2 var(--text);letter-spacing:.14em;text-transform:uppercase;color:var(--ink-2)}
.cdlg__k::before{content:"";width:.5rem;height:.5rem;border-radius:50%;background:var(--g);flex:none}
.cdlg h2{font-family:var(--disp);font-weight:400;font-size:clamp(2.2rem,1.5rem + 2.4vw,3.6rem);line-height:1;letter-spacing:-.012em;text-wrap:balance;color:var(--ink)}
.cdlg__sub{max-width:44ch;font-size:var(--t-lede);line-height:1.45;color:var(--ink-2);text-wrap:pretty}

/* the media well: 16:9, photo-well colour; the photo, the video and the play button share one cell */
.cdlg__media{display:grid;margin-top:clamp(22px,3vw,34px)}
.cdlg__media>img,.cdlg__media>video,.cdlg__media>.cdlg__play{grid-area:1/1}
.cdlg__media>img,.cdlg__media>video{width:100%;aspect-ratio:16/9;height:auto;border-radius:var(--r);background:var(--well)}
.cdlg__media img{object-fit:cover;object-position:var(--pos,50% 40%)}
.cdlg__media>video{object-fit:contain;background:#000}
/* the AFC photo is portrait with a thin coloured border baked into its left and right edges: it covers the well and the border is cropped out */
.cdlg__media--tall{overflow:clip;border-radius:var(--r)}
.cdlg__media--tall>img{width:116%;max-width:none;margin-left:-6%}   /* shows 5% to 91% of the width: no border, no "DREAM FEARLESS" side text */
.cdlg__media>img{position:relative;z-index:1}
.cdlg__media[data-state="playing"]>img,.cdlg__media[data-state="playing"]>.cdlg__play{display:none}
.cdlg__media[data-state="pending"]>video{display:none}
.cdlg__play{position:relative;z-index:2;place-self:center;display:grid;place-items:center;width:88px;height:88px;padding:0;border:2px solid #fff;border-radius:50%;background:rgba(10,12,18,.3);color:#fff;cursor:pointer;transition:background-color .25s var(--ease)}
.cdlg__play:hover{background:rgba(10,12,18,.5)}
.cdlg__play:focus-visible{outline:3px solid #fff;outline-offset:4px}
.cdlg__play svg{width:34px;height:34px;margin-left:5px}
/* no video yet: a quiet line under the photo, not a label over it */
.cdlg__note{grid-row:2;justify-self:center;margin-top:10px;font-weight:400;font-size:var(--t-xs);line-height:1.4;text-align:center;color:var(--light-2)}
/* no video yet: the photo stands on its own as a still, with no player chrome (no play button, no black frame) */
.cdlg__media[data-state="pending"]>img{background:transparent}

/* the four blocks: the story on the left, what was delivered and the result in a side column */
.cdlg__body{display:grid;gap:28px;margin-top:clamp(26px,3.4vw,40px)}
.cdlg__main,.cdlg__side{display:grid;gap:28px;align-content:start;min-width:0}
.cdlg__block{display:grid;gap:12px;padding-top:16px;border-top:1px solid var(--iline)}
.cdlg h3{font:700 .8125rem/1.2 var(--text);letter-spacing:.14em;text-transform:uppercase;color:var(--ink)}
.cdlg__block p{max-width:62ch;font-size:var(--t-body);line-height:1.6;color:var(--ink-2);text-wrap:pretty}
.cdlg__block p+p{margin-top:-2px}
.cdlg__list{margin:0;padding:0;list-style:none}
.cdlg__list li{padding:9px 0;border-bottom:1px solid var(--iline);font-size:var(--t-small);line-height:1.4;color:var(--ink)}
.cdlg__list li:first-child{padding-top:0}
.cdlg__list li:last-child{border-bottom:0}
.cdlg__result p{font-family:var(--disp);font-size:clamp(1.3rem,1.15rem + .5vw,1.6rem);line-height:1.22;letter-spacing:-.005em;color:var(--ink)}

/* the call to action */
.cdlg__foot{display:flex;flex-wrap:wrap;align-items:center;gap:14px 24px;margin-top:clamp(30px,4vw,44px);padding-top:24px;border-top:1px solid var(--iline)}
.cdlg .cdlg__cta{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:0 22px;border-radius:var(--r);background:var(--ink);color:var(--paper);font:700 1rem/1.15 var(--text);text-decoration:none;transition:background-color .25s var(--ease)}
.cdlg .cdlg__cta:hover{background:var(--btn-ink-hover,#2E313A)}
.cdlg__cta:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.cdlg__cta .ico,.cdlg__cta svg{width:1.05em;height:1.05em}

@media (min-width:900px){
  .cdlg__body{grid-template-columns:minmax(0,7fr) minmax(0,4fr);gap:0 clamp(36px,5vw,64px)}
}
/* a phone: the sheet fills the screen and scrolls; the top bar with Close stays put */
@media (max-width:759.98px){
  .cdlg{width:100%;height:100%;max-height:none;margin:0;border-radius:0;padding-top:64px;box-shadow:none}
  .cdlg__in{padding-inline:max(18px,env(safe-area-inset-left)) max(18px,env(safe-area-inset-right));padding-bottom:max(28px,env(safe-area-inset-bottom))}
  .cdlg__close{right:max(12px,env(safe-area-inset-right))}
}
/* signed in on staging the WordPress toolbar is a normal page element: a dialog in the top layer already sits above it */

/* opening: a short fade, never under reduced motion */
@media (prefers-reduced-motion:no-preference){
  .cdlg[open]{animation:cdlg-in .28s var(--ease)}
  .cdlg[open]::backdrop{animation:cdlg-fade .22s ease-out}
}
@keyframes cdlg-in{from{opacity:0;transform:translateY(12px)}}
@keyframes cdlg-fade{from{opacity:0}}
