/* Conclusion and related case studies, shared by both project templates. */
body.case-reference #main-content > .project-closing{position:relative;isolation:isolate;background:#fff;color:#080d10}
body.case-reference #main-content .project-conclusion{position:relative;z-index:2;padding:clamp(100px,10.4167vw,200px) clamp(16px,2.222vw,43px);border-radius:80px;background:#080d10;color:#fff}
body.case-reference #main-content :is(.project-conclusion__eyebrow,.project-cases__eyebrow){margin:0 0 16px;font:600 12px/1.3 Matter,Arial,sans-serif;letter-spacing:.14em;text-transform:uppercase}
body.case-reference #main-content .project-conclusion__eyebrow{color:#b4babc}
body.case-reference #main-content :is(.project-conclusion__title,.project-cases__title){margin:0;max-width:1040px;font:400 clamp(34px,4.722vw,90px)/1.1 'LER Case Display',Matter,Arial,sans-serif;letter-spacing:-.025em}
body.case-reference #main-content .project-conclusion__title{color:#fff}
body.case-reference #main-content .project-conclusion__cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:clamp(48px,5.5vw,80px) 0 0;padding:0;list-style:none}
body.case-reference #main-content .project-conclusion__card{display:flex;flex-direction:column;justify-content:space-between;min-width:0;min-height:320px;padding:32px;border-radius:12px;background:#111719}
body.case-reference #main-content .project-conclusion__card h3{margin:0;color:#fff;font:400 clamp(22px,1.6vw,31px)/1.25 'LER Case Body',Matter,Arial,sans-serif;letter-spacing:-.02em}
body.case-reference #main-content .project-conclusion__card p{margin:60px 0 0;color:#bfc5c7;font:400 clamp(16px,1.12vw,21px)/1.45 'LER Case Body',Matter,Arial,sans-serif}
body.case-reference #main-content .project-conclusion__story{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:34px;margin-top:48px;padding-top:28px;border-top:1px solid rgba(255,255,255,.16)}
body.case-reference #main-content .project-conclusion__copy{grid-column:2;max-width:100%}
body.case-reference #main-content .project-conclusion__copy p{margin:0 0 16px;color:#fff;font:400 clamp(20px,1.6vw,31px)/1.4 'LER Case Body',Matter,Arial,sans-serif}
body.case-reference #main-content .project-conclusion__copy p:last-child{margin-bottom:0}
body.case-reference #main-content .project-cases{position:relative;z-index:1;padding:clamp(100px,13.889vw,200px) clamp(16px,2.222vw,43px) 100px;background:#fff;color:#080d10}
body.case-reference #main-content .project-cases__eyebrow{color:#697174}
body.case-reference #main-content .project-cases__title{color:#080d10}
body.case-reference #main-content .project-cases__list{display:grid;gap:clamp(60px,6vw,100px);margin:clamp(64px,7vw,100px) 0 0;padding:0;list-style:none}
body.case-reference #main-content .project-case{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(24px,2.36vw,45px);align-items:start}
body.case-reference #main-content .project-case__image{display:block;overflow:hidden;border-radius:12px;background:#f1f2f2}
body.case-reference #main-content .project-case__image img{display:block;width:100%;aspect-ratio:1.25;object-fit:cover;transition:transform .5s ease}
body.case-reference #main-content .project-case__image:hover img{transform:scale(1.025)}
body.case-reference #main-content .project-case__body{min-width:0}
body.case-reference #main-content .project-case__tags{margin:0;color:#697174;font:600 11px/1.5 Matter,Arial,sans-serif;letter-spacing:.13em;text-transform:uppercase}
body.case-reference #main-content .project-case__heading{margin:14px 0 20px;color:#080d10;font:400 clamp(28px,2.5vw,48px)/1.2 'LER Case Display',Matter,Arial,sans-serif;letter-spacing:-.025em}
body.case-reference #main-content .project-case__badge{display:inline-flex;max-width:100%;padding:12px 16px;border-radius:4px;background:#1b2022;color:#fff;font:600 11px/1.2 Matter,Arial,sans-serif;letter-spacing:.1em;text-transform:uppercase}
body.case-reference #main-content .project-case__details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:clamp(40px,4.4vw,64px) 0 0}
body.case-reference #main-content .project-case__details div{min-width:0}
body.case-reference #main-content .project-case__details dt,body.case-reference #main-content .project-case__focus-label{margin:0;color:#697174;font:600 11px/1.3 Matter,Arial,sans-serif;letter-spacing:.13em;text-transform:uppercase}
body.case-reference #main-content .project-case__details dd{margin:12px 0 0;padding-top:12px;border-top:1px solid #dfe2e2;color:#080d10;font:400 16px/1.45 'LER Case Body',Matter,Arial,sans-serif;overflow-wrap:anywhere}
body.case-reference #main-content .project-case__focus{margin:40px 0 0;padding:0;list-style:none}
body.case-reference #main-content .project-case__focus li{padding:10px 0;border-top:1px solid #dfe2e2;color:#080d10;font:400 16px/1.4 'LER Case Body',Matter,Arial,sans-serif}
body.case-reference #main-content .project-case__focus-label{margin-top:40px}
body.case-reference #main-content .project-case__focus-label + .project-case__focus{margin-top:12px}
body.case-reference #main-content .project-case__link{display:inline-flex;align-items:center;gap:14px;min-height:48px;margin-top:28px;color:#080d10;font:600 12px/1.25 Matter,Arial,sans-serif;letter-spacing:.12em;text-decoration:underline;text-underline-offset:5px;text-transform:uppercase}
body.case-reference #main-content .project-case__link .site-icon{width:17px;height:17px;transition:transform .2s ease}
body.case-reference #main-content .project-case__link:hover .site-icon{transform:translate(3px,-3px)}
body.case-reference #main-content :is(.project-case__link,.project-case__image):focus-visible{outline:3px solid var(--orange,#dd3d06);outline-offset:4px}
@media(min-width:993px) and (prefers-reduced-motion:no-preference){
 body.case-reference #main-content .project-conclusion{margin-bottom:-100vh}
 body.case-reference #main-content .project-cases{position:relative;top:auto}
 body.case-reference #main-content .project-closing:has(.project-cases:focus-within) .project-cases{z-index:3}
}
@media(max-width:992px){
 body.case-reference #main-content .project-conclusion{border-radius:32px;padding:100px 16px}
 body.case-reference #main-content .project-conclusion__cards{grid-template-columns:1fr;margin-top:32px}
 body.case-reference #main-content .project-conclusion__card{min-height:220px;padding:20px}
 body.case-reference #main-content .project-conclusion__card p{margin-top:32px}
 body.case-reference #main-content .project-conclusion__story{grid-template-columns:1fr;margin-top:32px;padding-top:24px}
 body.case-reference #main-content .project-conclusion__copy{grid-column:1}
 body.case-reference #main-content .project-conclusion__copy p{font-size:20px}
 body.case-reference #main-content .project-case{grid-template-columns:1fr;gap:24px}
 body.case-reference #main-content .project-case__details{grid-template-columns:1fr;gap:28px}
 body.case-reference #main-content .project-cases{padding:100px 16px}
}
@media(prefers-reduced-motion:reduce){body.case-reference #main-content :is(.project-case__image img,.project-case__link .site-icon){transition:none}body.case-reference #main-content .project-case__image:hover img{transform:none}}
@media(min-width:993px) and (prefers-reduced-motion:no-preference){
 body.case-reference #main-content > .project-closing{padding-bottom:200vh;margin-bottom:-100vh}
}
@media(min-width:993px) and (prefers-reduced-motion:no-preference){
 /* The closing section carries an extra viewport of case-card travel. Hold its
    visible content while the footer rises, without cutting off the last case. */
 body.case-reference.site-overlap-ready #main-content > .project-closing[data-site-overlap-end]{position:sticky;top:min(0px,calc(200vh - var(--site-overlap-end-height,100vh)))}
 body.case-reference.site-overlap-ready #main-content > .project-closing[data-site-overlap-end]:focus-within{position:relative;top:auto}
}

/* Case cards: project mockups, outcomes and action follow the reference hierarchy. */
body.case-reference #main-content .project-case__image{aspect-ratio:4/3}
body.case-reference #main-content .project-case__image > img{height:100%;aspect-ratio:auto;object-fit:cover}
body.case-reference #main-content .project-case__image--screen{position:relative;background:radial-gradient(ellipse at 70% 12%,#354047 0,#151d22 47%,#070d10 100%);perspective:1300px}
body.case-reference #main-content .project-cases__list > li:nth-child(3n + 2) .project-case__image--screen{background:radial-gradient(ellipse at 70% 12%,#858074 0,#474944 48%,#1d2527 100%)}
body.case-reference #main-content .project-cases__list > li:nth-child(3n) .project-case__image--screen{background:radial-gradient(ellipse at 65% 12%,#5e6c70 0,#293b40 48%,#0c171b 100%)}
body.case-reference #main-content .project-case__screen{position:absolute;z-index:1;left:7%;top:12%;width:85%;height:66%;padding:1%;overflow:hidden;border:1px solid #3b4347;border-radius:5px;background:#080b0d;box-shadow:0 15px 40px #0009;transform:rotateY(8deg) rotateX(1deg)}
body.case-reference #main-content .project-case__screen img{width:100%;height:100%;aspect-ratio:auto;object-fit:cover;object-position:top;transition:transform .5s ease}
body.case-reference #main-content .project-case__image--screen::after{content:"";position:absolute;left:44%;top:74%;width:15%;height:20%;background:linear-gradient(110deg,#13191b,#3b4143 55%,#101619);clip-path:polygon(30% 0,70% 0,82% 85%,100% 94%,100% 100%,0 100%,0 94%,18% 85%);filter:drop-shadow(0 8px 5px #0008)}
body.case-reference #main-content .project-case__image:hover .project-case__screen img{transform:scale(1.025)}
body.case-reference #main-content .project-case__badge{margin:0 8px 0 0;padding:16px 22px;font-size:12px}
body.case-reference #main-content .project-case__details{gap:0;margin-top:clamp(48px,4.4vw,84px)}
body.case-reference #main-content .project-case__details div+div{padding-left:24px}
body.case-reference #main-content .project-case__details div:first-child dd{border-right:1px solid #dfe2e2}
body.case-reference #main-content .project-case__details dt,body.case-reference #main-content .project-case__focus-label{font-size:14px;font-weight:500}
body.case-reference #main-content .project-case__details dd{min-height:68px;margin-top:12px;padding:12px 16px 12px 0;font-size:clamp(18px,1.25vw,24px);line-height:1.4}
body.case-reference #main-content .project-case__focus-label{margin-top:clamp(48px,4.5vw,86px)}
body.case-reference #main-content .project-case__focus-label + .project-case__focus{margin-top:12px;padding-top:12px;border-top:1px solid #dfe2e2}
body.case-reference #main-content .project-case__focus li{padding:0;border:0;color:#080d10;font-size:clamp(18px,1.25vw,24px);line-height:1.45}
body.case-reference #main-content .project-case__focus li+li{margin-top:12px}
body.case-reference #main-content .project-case__link{justify-content:center;gap:20px;min-width:196px;min-height:64px;margin-top:32px;padding:0 28px;border-radius:8px;background:#dd3d06;color:#fff;text-decoration:none;transition:background-color .25s ease}
body.case-reference #main-content .project-case__link:hover{background:#080d10}
@media(max-width:992px){
 body.case-reference #main-content .project-case__details{gap:32px}
 body.case-reference #main-content .project-case__details div+div{padding-left:0}
 body.case-reference #main-content .project-case__details div:first-child dd{border-right:0}
 body.case-reference #main-content .project-case__details dd{min-height:0;padding-bottom:0}
 body.case-reference #main-content .project-case__focus-label{margin-top:48px}
 body.case-reference #main-content .project-case__link{width:100%;min-height:60px}
}
@media(prefers-reduced-motion:reduce){body.case-reference #main-content .project-case__link{transition:none}}
body.case-reference #main-content .project-case__image{align-self:center}
@media(max-width:992px){body.case-reference #main-content .project-case__image{align-self:auto}}
body.case-reference #main-content .project-case__badge{margin-bottom:8px}

/* Project cards enter and pin independently while the next case moves over them. */
@media(prefers-reduced-motion:no-preference){
 body.case-reference #main-content .case-motion-ready .case-motion-reveal{opacity:0;transform:translate3d(0,28px,0);transition:opacity .65s ease,transform .65s cubic-bezier(.22,1,.36,1)}
 body.case-reference #main-content .case-motion-ready .case-motion-image{opacity:0;transform:rotate(-12deg);transition:opacity .3s ease,transform .8s cubic-bezier(.22,1,.36,1)}
 body.case-reference #main-content .case-motion-ready :is(.case-motion-reveal,.case-motion-image).is-case-visible{opacity:1;transform:none}
 body.case-reference #main-content .case-motion-ready .project-case__link{transition:opacity .65s ease,transform .65s cubic-bezier(.22,1,.36,1),background-color .25s ease}
 body.case-reference #main-content .case-motion-ready :is(.case-motion-reveal,.case-motion-image):focus-visible{opacity:1;transform:none}
}
@media(min-width:993px) and (prefers-reduced-motion:no-preference){
 body.case-reference #main-content .case-motion-ready .project-cases__list > li{position:relative;background:#fff}
 body.case-reference #main-content .case-motion-ready .project-cases__list > li:nth-child(1){z-index:1}
 body.case-reference #main-content .case-motion-ready .project-cases__list > li:nth-child(2){z-index:2}
 body.case-reference #main-content .case-motion-ready .project-cases__list > li:nth-child(3){z-index:3}
 body.case-reference #main-content .case-motion-ready .project-cases__list > li:focus-within{z-index:4}
 body.case-reference #main-content .case-motion-ready .project-case__image{position:relative;align-self:start}
}


