/* R2 3.1 — Art-directed, project-first, performant cinematic composition.
   Self-hosted. No external script, font, or image dependencies. */
:root{--r31-cream:#eeeae0;--r31-forest:#0d1511;--r31-lime:#d5f268;--r31-ease:cubic-bezier(.19,1,.22,1)}
.r2-v3-hero{background:#0a100e;min-height:min(930px,max(745px,calc(100svh - 78px)));}
.r2-v3-hero-art{background:radial-gradient(ellipse at 73% 65%,#1d3325 0%,#101c16 30%,#09100d 74%)}
.r2-v3-hero-art::after{background:linear-gradient(90deg,rgba(7,12,9,.74),rgba(7,12,9,.18) 58%,rgba(7,12,9,.2)),linear-gradient(0deg,#0b110ed9,transparent 30%,#0b110e63)}
.r2-v3-hero .r2-v3-orbit{display:none}
.r2-v31-art-shutter{position:absolute;inset:0;display:flex;justify-content:flex-end;gap:clamp(1rem,2vw,2.6rem);transform:rotate(-21deg) scale(1.3);transform-origin:75% 60%;pointer-events:none;opacity:.72}
.r2-v31-art-shutter span{display:block;width:min(8vw,125px);height:160%;background:linear-gradient(180deg,#1c3025 0%,#34503b 48%,#15231b 95%);border-left:1px solid #8da66922;border-right:1px solid #8da66917}
.r2-v31-art-shutter span:nth-child(2){background:linear-gradient(180deg,#14231b,#355838 65%,#112019);transform:translateY(-6%)}
.r2-v31-art-shutter span:nth-child(3){width:min(5vw,80px);background:linear-gradient(180deg,#425e3c,#182b1e);transform:translateY(7%)}
.r2-v3-hero-layout{z-index:5;pointer-events:none}
.r2-v3-hero-layout a,.r2-v3-hero-layout button{pointer-events:auto}
.r2-v3-hero-top{color:#d9e2d1}
.r2-v3-hero-main{padding:clamp(4rem,10vh,8rem) 0 clamp(3rem,7vh,6rem)}
.r2-v3-hero-title{position:relative;z-index:2;max-width:96%;font-size:clamp(4.7rem,9.4vw,12rem);letter-spacing:-.087em;line-height:.95;text-shadow:0 3px 20px rgba(0,0,0,.2)}
.r2-v3-line{padding-top:.05em}
.r2-v3-hero-desc{width:55%;margin-top:clamp(3.5rem,6vw,7rem);border-color:#fafbe277}
.r2-v3-hero-desc p{font-size:clamp(1.04rem,1.65vw,1.55rem);max-width:510px}
.r2-v3-hero-bottom{position:relative;z-index:8}
/* Film still built from a real published WP project, or from a unique R2 identity artwork. */
.r2-v31-film{position:absolute;right:clamp(22px,5vw,84px);top:12.5%;width:min(35.5vw,550px);height:clamp(370px,63%,675px);overflow:hidden;display:flex;flex-direction:column;background:#d5f268;color:#111710;z-index:3;transform:translate3d(var(--r2-fx,0px),var(--r2-fy,0px),0) rotate(5deg) scale(.98);transform-origin:50% 50%;box-shadow:0 65px 100px rgba(0,0,0,.32);border:1px solid rgba(245,245,236,.7);transition:transform .85s var(--r31-ease),box-shadow .85s var(--r31-ease);text-decoration:none!important}
.r2-v31-film::before{position:absolute;content:'';inset:6px;border:1px solid rgba(255,255,255,.38);z-index:5;pointer-events:none}
.r2-v31-film--project{background:#18221d;color:#fff}
.r2-v31-film--project::after{content:'';pointer-events:none;position:absolute;inset:0;z-index:2;background:linear-gradient(180deg,rgba(2,8,5,.58) 0%,transparent 25%,transparent 50%,rgba(2,8,5,.78) 100%)}
.r2-v31-film-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:grayscale(.05) saturate(.84) contrast(1.05);transition:transform 1.4s var(--r31-ease),filter .8s ease}
.r2-v31-film--project:is(:hover,:focus-visible) .r2-v31-film-image{transform:scale(1.07);filter:saturate(1.08)}
.r2-v31-film--project:is(:hover,:focus-visible){transform:translate3d(0,-8px,0) rotate(1deg) scale(1);box-shadow:0 85px 120px rgba(0,0,0,.43)}
.r2-v31-film-top,.r2-v31-film-caption{display:flex;gap:1rem;align-items:center;justify-content:space-between;font-size:clamp(.55rem,.75vw,.75rem);font-weight:820;letter-spacing:.13em;text-transform:uppercase;position:relative;z-index:4;padding:clamp(1rem,1.7vw,1.8rem)}
.r2-v31-film-top{border-bottom:1px solid currentColor}.r2-v31-film-caption{border-top:1px solid currentColor;margin-top:auto}
.r2-v31-film-caption>span:last-child{font-size:1.5rem;letter-spacing:0}
.r2-v31-identity-art{flex:1;position:relative;overflow:hidden;background:radial-gradient(ellipse at 45% 55%,#dbf57e 0%,#a6cf4e 65%,#8eae3b 100%);display:flex;justify-content:center;align-items:center;isolation:isolate}
.r2-v31-identity-art::before,.r2-v31-identity-art::after{content:'';position:absolute;inset:-12% 10%;border:clamp(2px,.25vw,5px) solid rgba(19,35,20,.54);border-radius:50%;transform:scaleX(.63) rotate(-28deg);z-index:1}
.r2-v31-identity-art::after{transform:scaleX(.85) rotate(23deg);border-color:rgba(19,35,20,.24)}
.r2-v31-identity-art .r2-v31-identity-a,.r2-v31-identity-art .r2-v31-identity-b{font-size:clamp(15rem,26vw,32rem);letter-spacing:-.2em;line-height:.75;font-weight:850;color:#14231b;position:relative;z-index:2}
.r2-v31-identity-a{transform:translateX(.12em)}.r2-v31-identity-b{transform:translateX(-.05em);font-weight:480!important}
.r2-v31-identity-circle{position:absolute;right:8%;top:10%;border-radius:100%;width:clamp(45px,7vw,100px);aspect-ratio:1;background:#182e1c;mix-blend-mode:multiply}
.r2-v3-hero:has(.r2-v3-hero-poster) .r2-v31-film,.r2-v3-hero:has(.r2-v3-hero-video) .r2-v31-film{display:none}
/* Portfolio hierarchy: one strong opening film frame, followed by rhythm. */
.r2-v3-work{background:var(--r31-cream)}
.r2-v31-featured-project{grid-column:1 / -1!important;width:100%;margin:0 0 clamp(1.5rem,4vw,5rem)!important}
.r2-v31-featured-project .r2-v3-work-photo{aspect-ratio:1.84!important;min-height:400px;background:#172920}
.r2-v31-featured-project .r2-v3-work-photo>img{filter:saturate(.85) contrast(1.05)}
.r2-v31-featured-project .r2-v3-work-name h3{font-size:clamp(3.4rem,7vw,8rem)}
.r2-v31-featured-label{position:absolute;top:clamp(1rem,2vw,2.2rem);left:clamp(1rem,2vw,2.2rem);z-index:4;color:#fbfaf1;background:#111a13b3;padding:.65rem .9rem;font-weight:800;font-size:.7rem;letter-spacing:.15em}
.r2-v3-work-gallery{row-gap:clamp(4rem,8vw,9rem)}
.r2-v3-work-item:not(.r2-v31-featured-project):nth-child(even){margin-top:clamp(4rem,10vw,11rem)}
.r2-v3-work-photo{background:#172e23}
/* Keep editorial continuity into the next case rather than a dead-end CTA. */
.r2-v31-next-link{display:grid!important;grid-template-columns:1.25fr .65fr;gap:clamp(1.5rem,5vw,6rem);align-items:center;position:relative;min-height:420px}
.r2-v31-next-copy{display:flex;flex-direction:column;align-items:flex-start;gap:clamp(1.8rem,4vw,4rem);min-width:0}
.r2-v31-next-media{width:100%;max-height:460px;aspect-ratio:1.14;overflow:hidden;background:#203a2b;display:block;transform:rotate(-3deg);transition:transform .9s var(--r31-ease)}
.r2-v31-next-media img{display:block;height:100%;width:100%;object-fit:cover;transform:scale(1.03);transition:transform 1s var(--r31-ease)}
.r2-v31-next-link:is(:hover,:focus-visible) .r2-v31-next-media{transform:rotate(0deg)}
.r2-v31-next-link:is(:hover,:focus-visible) .r2-v31-next-media img{transform:scale(1.1)}
.r2-v31-next-link .r2-case-next-title{line-height:.95}
/* Mobile is art-directed separately; film is a non-blocking background treatment. */
@media(max-width:900px){
 .r2-v3-hero-title{font-size:clamp(4.4rem,11.2vw,8rem)}
 .r2-v31-film{right:-6%;width:48%;height:58%;top:18%;opacity:.72}
 .r2-v3-hero-desc{width:65%}
 .r2-v3-hero-title{max-width:100%}
 .r2-v31-next-link{grid-template-columns:1fr .75fr}
}
@media(max-width:600px){
 .r2-v3-hero{min-height:max(740px,calc(100svh - 75px))}
 .r2-v3-hero-main{padding:clamp(5rem,12vh,8rem) 0 3rem}
 .r2-v3-hero-title{font-size:clamp(4.1rem,12.3vw,6.7rem);max-width:100%;text-shadow:0 4px 20px rgba(0,0,0,.65)}
 .r2-v31-art-shutter{transform:rotate(-22deg) scale(1.9);opacity:.5}
 .r2-v31-film{width:82%;height:48%;top:19%;right:-27%;opacity:.34;transform:rotate(9deg)!important;box-shadow:none}
 .r2-v31-film-top,.r2-v31-film-caption{font-size:.55rem}
 .r2-v3-hero-desc{width:100%;position:relative;z-index:5;margin-top:clamp(2rem,9vh,5rem);backdrop-filter:blur(3px)}
 .r2-v3-hero-desc p{max-width:310px}
 .r2-v31-featured-project{margin-bottom:1rem!important}
 .r2-v31-featured-project .r2-v3-work-photo{aspect-ratio:.95!important;min-height:360px}
 .r2-v31-featured-project .r2-v3-work-name h3{font-size:clamp(2.7rem,10vw,5rem)}
 .r2-v3-work-item:not(.r2-v31-featured-project):nth-child(even){margin-top:0}
 .r2-v31-next-link{grid-template-columns:1fr;min-height:0;padding:3.5rem 0;gap:3rem}
 .r2-v31-next-media{max-width:85%;aspect-ratio:1.35;justify-self:end}
}
@media(prefers-reduced-motion:reduce){
 .r2-v31-film,.r2-v31-film-image,.r2-v31-next-media,.r2-v31-next-media img{transition:none!important;animation:none!important;transform:none!important}
}
/* Kinetic headline masks — no visibility dependency when JS is unavailable. */
.r2-v31-word{display:inline-block;white-space:pre-wrap;transform:translate3d(0,.8em,0);opacity:0;transition:transform 1.18s var(--r31-ease),opacity .7s ease;transition-delay:calc(.09s + var(--r31-w,0)*.12s)}
html.r2-v3-entered .r2-v31-word{transform:translate3d(0,0,0);opacity:1}
@media(prefers-reduced-motion:reduce){.r2-v31-word{transform:none!important;opacity:1!important;transition:none!important}}
