/* AMM uniform gallery and featured projects, v2.4.9 */
.screen-credits-head,.archive-heading{display:flex;align-items:end;justify-content:space-between;gap:28px;margin:52px 0 18px;padding-top:34px;border-top:1px solid var(--line)}
.screen-credits-head h2,.screen-credits-head h3,.archive-heading h2{margin:.2rem 0 0;font-size:clamp(28px,4vw,48px);line-height:1.02}
.screen-credits-head>p,.archive-heading>p{max-width:460px;margin:0;color:var(--muted);line-height:1.6}
.screen-credits-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.credit-card{--rx:0deg;--ry:0deg;position:relative;display:block;aspect-ratio:2/3;overflow:hidden;border:1px solid var(--line);border-radius:20px;background:#05090d;color:#fff;isolation:isolate;transform:perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));transform-style:preserve-3d;transition:transform .28s ease,border-color .25s ease,box-shadow .28s ease}
.credit-card:before{content:'';position:absolute;z-index:2;inset:-35%;pointer-events:none;background:linear-gradient(115deg,transparent 38%,rgba(255,255,255,.18) 50%,transparent 62%);transform:translateX(-75%) rotate(8deg);transition:transform .7s cubic-bezier(.2,.75,.2,1)}
.credit-card img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .45s ease,filter .45s ease}
.credit-card:after{content:'';position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,transparent 47%,rgba(2,5,8,.18) 61%,rgba(2,5,8,.96) 100%)}
.credit-card>span{position:absolute;z-index:3;left:18px;right:18px;bottom:17px;display:grid;gap:4px}
.credit-card small{font-size:11px;letter-spacing:.1em;color:#acd9fa;font-weight:850}
.credit-card b{font-size:clamp(19px,2vw,28px);line-height:1.05}
.credit-card:hover{border-color:var(--accent);box-shadow:0 22px 50px rgba(0,0,0,.36),0 0 0 1px rgba(116,202,255,.08)}.credit-card:hover:before{transform:translateX(75%) rotate(8deg)}.credit-card:hover img{transform:scale(1.035);filter:saturate(1.08)}
.motion-reveal{opacity:0;transform:translateY(24px);filter:blur(4px);transition:opacity .65s ease calc(var(--motion-index,0)*70ms),transform .65s cubic-bezier(.2,.75,.2,1) calc(var(--motion-index,0)*70ms),filter .65s ease calc(var(--motion-index,0)*70ms)}
.motion-reveal.is-visible{opacity:1;transform:none;filter:none}
.credit-card.motion-reveal{transform:perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(24px)}
.credit-card.motion-reveal.is-visible{transform:perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(0)}
.imdb-profile-link{display:flex;justify-content:flex-end;margin-top:14px}.imdb-profile-link a{display:inline-flex;align-items:center;gap:10px;padding:10px 14px;border:1px solid var(--line);border-radius:999px;color:#d8e9f6;font-size:13px;font-weight:750}.imdb-profile-link a:hover{border-color:var(--accent);color:#fff}.imdb-profile-link span{color:var(--accent)}
.work-showcase{grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-auto-flow:row!important;gap:14px!important}
.combined-gallery .credit-card{aspect-ratio:4/3!important;min-height:0!important;border-radius:17px}
.combined-gallery .credit-card img{object-position:center 28%}
.work-showcase .work-shot,.work-showcase .work-shot.hero-shot,.work-showcase .work-shot.square-shot,.work-showcase .work-shot.portrait-shot,.work-showcase .work-shot.tall-shot,.work-showcase .work-shot.landscape-shot{grid-column:auto!important;grid-row:auto!important;aspect-ratio:4/3!important;min-height:0;border-radius:17px}
.work-showcase .work-shot:before{content:'';position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,transparent 50%,rgba(2,5,8,.86));pointer-events:none}
.work-showcase .work-shot:after{z-index:2;left:14px;right:14px;bottom:12px;padding:0;background:none;backdrop-filter:none;border-radius:0;font-size:13px;letter-spacing:.01em;opacity:1;transform:none;text-align:left}
.work-archive-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-auto-flow:row!important;gap:14px!important}
.work-archive-card,.work-archive-card.wide,.work-archive-card.square,.work-archive-card.portrait,.work-archive-card.tall,.work-archive-card.landscape{grid-column:auto!important;min-height:0!important;aspect-ratio:4/3!important;border-radius:17px}
.work-page-credits{margin-bottom:54px}.archive-heading{margin-top:0}.work-page-note{margin-top:40px}
@media(max-width:920px){.screen-credits-grid,.work-showcase,.work-archive-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.screen-credits-head,.archive-heading{align-items:flex-start;flex-direction:column;gap:8px}}
@media(max-width:560px){.screen-credits-grid{gap:10px}.credit-card{border-radius:14px}.credit-card>span{left:12px;right:12px;bottom:12px}.credit-card small{font-size:9px}.credit-card b{font-size:18px}.work-showcase,.work-archive-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.work-showcase .work-shot,.work-showcase .work-shot.hero-shot,.work-showcase .work-shot.square-shot,.work-showcase .work-shot.portrait-shot,.work-showcase .work-shot.tall-shot,.work-showcase .work-shot.landscape-shot,.work-archive-card,.work-archive-card.wide,.work-archive-card.square,.work-archive-card.portrait,.work-archive-card.tall,.work-archive-card.landscape,.combined-gallery .credit-card{grid-column:auto!important;aspect-ratio:1/1!important;min-height:0!important}.work-showcase .work-shot:after{font-size:11px}.screen-credits-head,.archive-heading{margin-top:36px;padding-top:26px}}
@media(prefers-reduced-motion:reduce){.credit-card,.credit-card img,.credit-card:before,.motion-reveal{transition:none!important;transform:none!important;filter:none!important}.motion-reveal{opacity:1!important}}
