/* Work overview hero — Figma 90:3427. */
.ip-page.ip-work .p-hero{background:linear-gradient(157.665deg,#1e5fd8 14.099%,#477eff 50%,#2bb5a0 71.54%,#9fdc3c 85.901%);padding:155px var(--pad) 80px}
.ip-page.ip-work .p-heroTop{width:100%}
.ip-page.ip-work .p-hero .p-eyebrow{font-size:15px!important;color:#fff;line-height:1.5;letter-spacing:1.35px;margin:0}
.ip-page.ip-work .p-heroTitle{font-size:clamp(64px,9vw,145px);font-weight:400;line-height:1.06;letter-spacing:-.055em;max-width:973px;margin:32px 0 50px;text-wrap:initial}
.ip-page.ip-work .p-heroLede{color:#fff;font-size:25px;line-height:1.55;max-width:770px}
.ip-page.ip-work .p-tags{visibility:hidden;transform:translateY(6px);transition:transform .25s ease,visibility .25s}
.ip-page.ip-work .p-card:has(.p-cardMedia:hover) .p-tags,.ip-page.ip-work .p-card:focus-visible .p-tags{visibility:visible;transform:translateY(0)}
.work-view-cursor{position:fixed;z-index:80;pointer-events:none;width:85px;height:85px;border-radius:50%;background:var(--blue);color:white;font-size:16px;display:flex;gap:5px;align-items:center;justify-content:center;transform:translate(-50%,-50%) scale(0);transition:transform .24s cubic-bezier(.55,.055,.675,.19);will-change:transform}
.work-view-cursor.visible{transform:translate(-50%,-50%) scale(1);transition:transform .38s cubic-bezier(.215,.61,.355,1)}
.work-view-cursor .icon{width:19px;height:19px}
@media(hover:hover) and (pointer:fine){.ip-page.ip-work .p-cardMedia{cursor:none}.ip-page.ip-work .ip-card-arrow{display:none}}
@media(max-width:700px){.ip-page.ip-work .p-hero{padding:125px var(--pad) 55px}.ip-page.ip-work .p-heroTitle{font-size:clamp(44px,10.5vw,70px);margin:28px 0 32px}.ip-page.ip-work .p-heroLede{font-size:21px}.work-view-cursor{display:none}}
@media(hover:none),(prefers-reduced-motion:reduce){.work-view-cursor{display:none}.ip-page.ip-work .p-cardMedia{cursor:pointer}}
.paused-motion .work-view-cursor{display:none}.paused-motion .ip-page.ip-work .p-cardMedia{cursor:pointer}

/* Native Figma thumbnail compositions and shared Work closing sections. */
.ip-page.ip-work .ip-project-grid .p-cardMedia{aspect-ratio:var(--card-ratio,4/5)}
.ip-page.ip-work .p-cardMedia[data-media-hover] .case-video{position:absolute;inset:0;opacity:0;pointer-events:none}
.ip-page.ip-work .p-cardMedia[data-media-hover].is-preview-playing .case-video{opacity:1}
.ip-page.ip-work .sc-quote{padding:92px 2.39vw;background:#fff}
@media(max-width:700px){.ip-page.ip-work .sc-quote{padding:60px var(--pad)}}
.ip-page.ip-work .sc-quote blockquote{font-size:clamp(28px,2.71vw,52px);line-height:1.15}
.ip-page.ip-work .sc-quote figcaption,.ip-page.ip-work .sc-quote figcaption strong{font-size:14px}
.ip-page.ip-work .sc-quote .p-stars{font-size:18px}

/* A composed, asymmetric gallery: wide features alternate with offset pairs.
   Visible-child indexing keeps every filter compact and in reading order. */
.ip-page.ip-work .ip-project-grid{grid-template-columns:repeat(12,minmax(0,1fr));gap:100px 2.7vw;align-items:start}
.ip-page.ip-work .ip-project-grid .p-card{min-width:0;margin:0;grid-column:span 6;--card-ratio:1/1}
.ip-page.ip-work .ip-project-grid .p-card:nth-child(6n+1 of :not([hidden])){grid-column:1/11;--card-ratio:16/10}
.ip-page.ip-work .ip-project-grid .p-card:nth-child(6n+2 of :not([hidden])){grid-column:1/6;margin-top:85px;--card-ratio:1/1}
.ip-page.ip-work .ip-project-grid .p-card:nth-child(6n+3 of :not([hidden])){grid-column:8/13;--card-ratio:4/5}
.ip-page.ip-work .ip-project-grid .p-card:nth-child(6n+4 of :not([hidden])){grid-column:3/13;--card-ratio:3/2}
.ip-page.ip-work .ip-project-grid .p-card:nth-child(6n+5 of :not([hidden])){grid-column:1/6;--card-ratio:4/5}
.ip-page.ip-work .ip-project-grid .p-card:nth-child(6n+6 of :not([hidden])){grid-column:7/13;margin-top:110px;--card-ratio:4/3}
.ip-page.ip-work .ip-project-grid .p-cardLine{font-size:clamp(15px,1.35vw,20px);line-height:1.5;margin:0;white-space:nowrap}
.ip-page.ip-work .ip-project-grid .p-cardTitle{font-size:clamp(26px,2.4vw,40px);margin:22px 0 10px}
.ip-page.ip-work .ip-project-grid .p-cardMedia img{object-position:50% 0}
@media(min-width:701px) and (max-width:1000px){
 .ip-page.ip-work .ip-project-grid{gap:75px 3vw}
 .ip-page.ip-work .ip-project-grid .p-card:nth-child(6n+2 of :not([hidden])),.ip-page.ip-work .ip-project-grid .p-card:nth-child(6n+5 of :not([hidden])){grid-column:1/7}
 .ip-page.ip-work .ip-project-grid .p-card:nth-child(6n+3 of :not([hidden])){grid-column:7/13}
}
@media(max-width:700px){
 .ip-page.ip-work .ip-project-grid{display:flex;flex-direction:column;gap:55px}
 .ip-page.ip-work .ip-project-grid .p-card:nth-child(n){width:100%;margin:0;--card-ratio:4/5}
 .ip-page.ip-work .ip-project-grid .p-card:nth-child(3n+1 of :not([hidden])){--card-ratio:1/1}
 .ip-page.ip-work .ip-project-grid .p-cardLine{font-size:clamp(13px,3.8vw,18px)}
}
/* Let the Work hero gradient continue behind the navigation at the top. */
body.interior:has(.ip-page.ip-work) .header:not(.solid):not(.mobile-nav-open){background:transparent;backdrop-filter:none;color:#fff}
body.interior:has(.ip-page.ip-work) .header:not(.solid):not(.mobile-nav-open) .brand img{filter:brightness(0) invert(1)}
/* Smaller feature cards with deliberate breathing room and a paired final row. */
@media(min-width:701px){
 .ip-page.ip-work .ip-project-grid:not(.is-filtered){row-gap:80px}
 .ip-page.ip-work .ip-project-grid:not(.is-filtered) .p-card[href="/work/asap-ministries/"]{grid-column:1/9}
 .ip-page.ip-work .ip-project-grid:not(.is-filtered) .p-card[href="/work/village-church/"]{grid-column:5/13}
 .ip-page.ip-work .ip-project-grid:not(.is-filtered) .p-card[href="/work/tmr/"]{grid-column:1/7;--card-ratio:16/10}
 .ip-page.ip-work .ip-project-grid:not(.is-filtered) .p-card[href="/work/village-school/"]{grid-column:8/13;margin-top:90px}
}
@media(min-width:701px) and (max-width:1000px){
 .ip-page.ip-work .ip-project-grid:not(.is-filtered) .p-card[href="/work/tmr/"]{grid-column:1/7}
 .ip-page.ip-work .ip-project-grid:not(.is-filtered) .p-card[href="/work/village-school/"]{grid-column:8/13}
}
/* Rendered covers (assets/work-covers) are square with the devices centred,
   so every card ratio crops evenly around the middle. */
.ip-project-grid .p-cardMedia img[src*="/work-covers/"]{object-position:50% 50%}
