/* "W szczegółach" on a project page (Widoczność AI): scroll video of the client's home page and the long description.
   Colours and type follow the theme's case page (assets/portfolio.css). */
.case-deep{display:grid;grid-template-columns:1fr 1.45fr;gap:4% 12%;padding-bottom:100px;scroll-margin-top:175px}
.case-deep-heading{align-self:start;position:sticky;top:190px}
.case-deep-heading h2{font-size:clamp(35px,3.7vw,55px);line-height:1.12;font-weight:500;margin-top:23px}
.case-deep-heading h2 em{font-family:Georgia,serif;color:#a0482b;font-weight:400}
.case-scroll{margin:0 0 55px;grid-column:2}
.case-scroll-frame{position:relative;aspect-ratio:16/10;overflow:hidden;border-radius:12px;background:var(--folio-soft,#e9eee2);box-shadow:0 30px 60px -35px #26352966;border:8px solid #1e222e}
.case-scroll-frame video{display:block;width:100%;height:100%;object-fit:cover;object-position:top}
.case-scroll-frame.is-image img{display:block;width:100%;height:auto;animation:wai-case-scroll var(--wai-scroll-time,16s) ease-in-out 1s infinite alternate;will-change:transform}
.case-scroll-frame.is-image:hover img,.case-scroll-frame.is-image:focus img,.case-scroll-frame.is-paused img{animation-play-state:paused}
@keyframes wai-case-scroll{0%,8%{transform:translateY(0)}92%,100%{transform:translateY(var(--wai-scroll-end,-80%))}}
.case-scroll figcaption{display:flex;align-items:center;gap:16px;padding-top:16px;color:#526447;font-size:10px}
.case-scroll-toggle{border:1px solid #b3c2a7;border-radius:30px;background:transparent;color:#263529;font-size:10px;padding:6px 14px;cursor:pointer;transition:background .3s}
.case-scroll-toggle:hover,.case-scroll-toggle:focus-visible{background:#e0e8d5}
.case-deep-text{grid-column:2;font-size:14px;line-height:1.95;color:#43533b}
.case-deep-text h2{font-size:clamp(22px,2vw,28px);line-height:1.3;font-weight:500;color:#263529;margin:45px 0 16px;letter-spacing:-.02em}
.case-deep-text h2:first-child{margin-top:0}
.case-deep-text h3{font-size:17px;font-weight:500;color:#263529;margin:28px 0 10px}
.case-deep-text p{margin-bottom:20px}
.case-deep-text ul{margin:0 0 22px 18px}
.case-deep-text li{margin-bottom:8px}
.case-deep>.case-scroll:first-child,.case-deep-heading+.case-deep-text{margin-top:0}
@media(prefers-reduced-motion:reduce){.case-scroll-frame.is-image img{animation:none}.case-scroll-frame.is-image{overflow-y:auto}}
@media(max-width:900px){.case-deep{gap:35px 7%}.case-deep-heading{top:180px}}
@media(max-width:650px){.case-deep{grid-template-columns:1fr;gap:25px;padding-bottom:60px;scroll-margin-top:145px}.case-deep-heading{position:static}.case-deep-heading h2{font-size:38px;margin-top:20px}.case-scroll,.case-deep-text{grid-column:auto}.case-scroll{margin-bottom:30px}.case-scroll-frame{border-width:5px}.case-deep-text{font-size:13px;line-height:1.9}}
/* Inside the project story (themes without the mcweb_project_after_story hook): one column. */
.case-story .case-deep{display:block;padding:0 0 40px;margin:0}
.case-story .case-deep-heading{position:static;margin-bottom:30px}
