/* V16.14: cinematic subpages, progressively enhanced without replacing the copy. */
body[data-screen] .cp-hero,body[data-screen] .detail-hero{min-height:max(700px,100svh)}
.cp-hero-media,.detail-hero-media{overflow:hidden}
.cp-hero-media img,.detail-hero-media img{transform:scale(1.08) translate(var(--cin-x,0px),var(--cin-y,0px));transition:transform .9s cubic-bezier(.2,.8,.2,1);will-change:transform}
.cp-hero-content,.detail-hero-copy{padding-top:clamp(125px,17vh,200px);padding-bottom:95px}
.cp-hero-title span{white-space:normal}
.cp-hero-content .cp-kicker,.detail-tag{border-left:4px solid #d51b38;padding-left:14px}
.cp-hero-content .cp-hero-title,.detail-hero-copy h1{animation:cin-title .8s cubic-bezier(.2,.8,.2,1) both}
@keyframes cin-title{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
.cin-chapters{position:sticky;top:70px;z-index:25;display:flex;gap:0;background:#0c0d0ef2;overflow:auto;border-bottom:1px solid #ffffff24;padding:0 5vw;scrollbar-width:thin}
.cin-chapters a{flex:none;text-decoration:none;color:#ddd;padding:16px 20px;font:700 10px/1.3 monospace;letter-spacing:.06em;border-bottom:3px solid transparent;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cin-chapters a[aria-current]{border-color:#db1937;color:white}.cin-chapters a:hover{color:white}
.cin-reveal{transition:transform .65s cubic-bezier(.2,.8,.2,1),opacity .65s}.cin-reveal.cin-wait{opacity:0;transform:translateY(20px)}
.cp-photo-wall-grid figure,.cp-culture-photo-grid figure,.cp-person-photo,.cp-service-image,.detail-portrait{overflow:hidden;position:relative}
.cp-photo-wall-grid img,.cp-culture-photo-grid img,.cp-person-photo img,.cp-service-image img,.detail-portrait img{transition:transform .8s cubic-bezier(.2,.8,.2,1),filter .6s}
.cp-photo-wall-grid figure:hover img,.cp-culture-photo-grid figure:hover img,.cp-person:hover img,.cp-service-row:hover img,.detail-portrait:hover img{transform:scale(1.045);filter:saturate(1.1)}
.cp-service-row{position:relative;min-height:clamp(340px,48vw,680px);align-items:center}.cp-service-row:nth-child(even) .cp-service-image{order:2}.cp-service-row:nth-child(even) .cp-service-body{order:1}
.cp-service-row .cp-service-number{color:#df2040}.cp-service-row .cp-service-image{min-height:280px}.cp-service-row .cp-service-image img{height:100%;object-fit:cover}
.cp-steps .process-motion{width:100%;max-width:210px;height:120px}.cp-step:not(.cin-active) .process-motion *{animation-play-state:paused}
.cp-culture-item{transition:background .4s,padding .4s}.cp-culture-item:hover{background:#d51b3810;padding-left:18px}
.cp-contact-hero{min-height:clamp(450px,65svh,680px)!important}.cp-contact-options a{transition:transform .3s,border-color .3s}.cp-contact-options a:hover{transform:translateY(-5px);border-color:#d51b38}
.archive-hero{position:relative;overflow:hidden;isolation:isolate}.archive-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#08090af5,#08090a9c 60%,#08090a38),url('./assets/mari-still2.webp') center/cover;z-index:-1}.archive-hero .archive-giant-num{opacity:.15}
#detail-screen[data-world] .detail-hero h1{color:#f5f2ed}.detail-hero-copy .detail-actions{position:relative}
.world-interlude{position:relative;min-height:82svh;grid-template-columns:minmax(0,.7fr) minmax(0,1fr);background:linear-gradient(90deg,#090909e8,#090909a0),var(--world-image) center/cover}.world-interlude:before{content:"";position:absolute;inset:25px;border:1px solid #ffffff22;pointer-events:none}.world-interlude h2{font-size:clamp(45px,7vw,125px)}
.cin-project-stills{position:relative;padding:clamp(40px,6vw,100px) 5vw;background:#08090a;color:#f2efe8}.cin-project-stills h2{font:900 clamp(40px,8vw,110px)/.9 Impact,Arial,sans-serif;margin:0 0 30px}.cin-stills-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.cin-stills-grid button{border:0;padding:0;background:#111;overflow:hidden;cursor:zoom-in}.cin-stills-grid img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;transition:transform .5s}.cin-stills-grid button:hover img{transform:scale(1.06)}
.cin-lightbox{background:#090909;color:white;border:1px solid #444;width:min(95vw,1500px);max-width:none;padding:20px}.cin-lightbox::backdrop{background:#000e}.cin-lightbox img{width:100%;max-height:80vh;object-fit:contain}.cin-lightbox button{background:#222;border:1px solid #888;color:white;min-height:44px;min-width:44px;cursor:pointer}.cin-lightbox-controls{display:flex;justify-content:space-between;gap:15px}
.wolf-test{position:absolute;z-index:4;right:6vw;bottom:4vw;width:clamp(150px,20vw,320px);border:0;padding:0;background:transparent;color:white;cursor:pointer;filter:drop-shadow(0 15px 12px #000b)}.wolf-test svg{display:block;width:100%;height:auto}.wolf-test .wolf-head{transform-origin:95px 92px;transition:transform .55s ease}.wolf-test:hover .wolf-head,.wolf-test:focus-visible .wolf-head,.wolf-test.howling .wolf-head{transform:rotate(9deg)}.wolf-test:focus-visible{outline:2px solid white;outline-offset:5px}
@media(max-width:740px){.cin-chapters{top:75px;padding:0 12px}.cin-chapters a{padding:13px 12px;max-width:180px}.cp-hero-content,.detail-hero-copy{padding:140px 22px 70px}.cp-service-row:nth-child(even) .cp-service-image,.cp-service-row:nth-child(even) .cp-service-body{order:unset}.cp-contact-hero{min-height:550px!important}.cin-stills-grid{grid-template-columns:1fr 1fr}.world-interlude{grid-template-columns:1fr}.wolf-test{width:130px;bottom:12px;right:12px}.ed-culture-copy{padding-bottom:160px}}
@media(prefers-reduced-motion:reduce){.cin-reveal,.cin-reveal.cin-wait{opacity:1;transform:none;transition:none}.cp-hero-content .cp-hero-title,.detail-hero-copy h1{animation:none}.cp-hero-media img,.detail-hero-media img{transform:none!important;transition:none}.wolf-test .wolf-head{transition:none}}
.cp-tv-picture:after{content:"";position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(0deg,transparent 0 3px,#0005 3px 4px);opacity:0}.cp-tv:hover .cp-tv-picture:after,.cp-tv:focus-within .cp-tv-picture:after{opacity:.65}.cp-tv:hover .cp-tv-picture img{animation:channel-tune .48s ease-out both;filter:grayscale(.12) contrast(1.08)}@keyframes channel-tune{0%{transform:translateX(-2%);filter:grayscale(1) contrast(1.15)}25%{transform:translateX(2%) scaleY(.96);filter:grayscale(.6) contrast(1.18)}55%{transform:translateX(-1%);filter:grayscale(.3)}100%{transform:none;filter:grayscale(.12) contrast(1.08)}}@media(prefers-reduced-motion:reduce){.cp-tv:hover .cp-tv-picture img{animation:none}.cp-tv-picture:after{display:none}}
.cp-person-photo.living-portrait img{transform:none!important}.living-portrait video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 20%;filter:grayscale(1) contrast(1.07);opacity:0;transition:opacity .22s;pointer-events:none}.living-portrait.is-alive video{opacity:1}.living-portrait span{z-index:2}.living-portrait:focus-visible{outline:2px solid #d51b38;outline-offset:4px}@media(prefers-reduced-motion:reduce){.living-portrait video{display:none}}

/* Chapter navigation: the absolute site header scrolls away, so no reserved top gap. */
.cin-chapters{top:0;z-index:35;background:#111214;align-items:stretch;scrollbar-width:none}
.cin-chapters::-webkit-scrollbar{display:none}
.cin-chapters a{max-width:none;flex:1 0 auto;white-space:nowrap}
body[data-screen] main>section[id]{scroll-margin-top:64px}
@media(max-width:740px){.cin-chapters{top:0}.cin-chapters a{flex:0 0 auto;max-width:none}body[data-screen] main>section[id]{scroll-margin-top:56px}}

/* Approved living posters. Maintain original crop and card geometry. */
.living-poster{position:relative;overflow:hidden}
.living-poster video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .24s ease;pointer-events:none}
.living-poster.is-playing video{opacity:1}
#dev-grid .living-poster img,#dev-grid .af-card:hover .living-poster img{transform:none!important;filter:none!important}
.living-poster .af-card-number,.living-poster .af-card-open{z-index:2}
.wolf-test.living-poster{aspect-ratio:1;overflow:visible;filter:none;background:#080808;isolation:isolate;border-radius:50%;box-shadow:0 12px 45px #0008}
.wolf-test.living-poster img{display:block;width:100%;height:100%;object-fit:contain}
.wolf-test.living-poster video{object-fit:contain;border-radius:50%;mix-blend-mode:normal}
@media(prefers-reduced-motion:reduce){.living-poster video{display:none}}
.wolf-test.living-poster{position:absolute;right:6vw;bottom:4vw;left:auto;top:auto;z-index:5;overflow:hidden;max-width:calc(100% - 24px)}
@media(max-width:740px){.wolf-test.living-poster{right:18px;bottom:18px;width:130px}}
