/* palaceAI motion concept V2 — custom design, Produx-inspired sequencing */
:root{--blue:#165dff;--lime:#dcff31;--ink:#08090c;--paper:#f3f2ee}
.pd2-intro{background:var(--paper);color:var(--ink);min-height:100svh;padding:22px 3.5vw 25px;position:relative;overflow:hidden}
.pd2-meta,.pd2-intro-bottom{display:flex;justify-content:space-between;gap:20px;font:700 11px/1.3 'Space Grotesk',sans-serif;letter-spacing:.045em}
.pd2-intro-stage{height:clamp(570px,77vh,950px);min-height:570px;position:relative;isolation:isolate}
.pd2-wordmark{position:absolute;top:4%;left:0;z-index:1;font:900 clamp(115px,21vw,400px)/.8 'DM Sans',sans-serif;letter-spacing:-.115em;white-space:nowrap;opacity:.085}
.pd2-wordmark span{color:var(--blue)}
.pd2-title{position:absolute;top:21%;left:0;width:100%;z-index:5;display:flex;flex-direction:column;align-items:flex-start;pointer-events:none}
.pd2-line{display:block;font:900 clamp(76px,12.1vw,225px)/.86 'DM Sans',sans-serif;letter-spacing:-.095em;white-space:nowrap;transform-origin:left center;will-change:transform,opacity}
.pd2-line:nth-child(2){margin-left:8%;font-size:clamp(70px,10.8vw,195px)}
.pd2-line:nth-child(3){margin-left:0;font-size:clamp(73px,11.2vw,210px)}
.pd2-line:nth-child(4){margin-left:9%;font-size:clamp(65px,9.5vw,180px)}
.pd2-blue{color:var(--blue)}
.pd2-outline{color:transparent;-webkit-text-stroke:2px var(--ink)}
.pd2-image{position:absolute;right:1%;top:10%;width:35%;height:76%;overflow:hidden;z-index:3;clip-path:inset(0 0 0 0);background:#101010}
.pd2-image img{width:100%;height:100%;object-fit:cover;display:block;transform:scale(1.12)}
.pd2-side-note{position:absolute;bottom:6%;left:1%;font:700 12px/1.25 'Space Grotesk',sans-serif;letter-spacing:.05em}
.pd2-intro-bottom{border-top:1px solid var(--ink);padding-top:17px}
.pd2-intro-bottom a,.pd2-reel-bottom a{color:inherit;text-decoration:none}
.pd2-showreel{height:240svh;background:var(--ink);color:white;position:relative}
.pd2-sticky{position:sticky;top:0;height:100svh;overflow:hidden;padding:24px 3.5vw;display:flex;flex-direction:column;gap:15px}
.pd2-reel-head,.pd2-reel-bottom{display:flex;justify-content:space-between;gap:20px;font:700 12px/1.2 'Space Grotesk',sans-serif}
.pd2-reel-frame{position:relative;flex:1;min-height:0;overflow:hidden;transform:scale(.73);transform-origin:center center;border-radius:2px;will-change:transform}
.pd2-reel-frame video{width:100%;height:100%;object-fit:cover;display:block}
.pd2-reel-caption{position:absolute;bottom:4%;left:4%;font:900 clamp(55px,9vw,150px)/.85 'DM Sans',sans-serif;letter-spacing:-.09em;text-shadow:0 3px 24px #0008;transform:translateY(90px);opacity:0}
.pd2-reel-bottom a{color:var(--lime)}
#work .section-head{display:block!important}
#work .section-head h2{max-width:none}
#work .work-card{overflow:visible}
#work .work-card .video-frame{transform-origin:center}
@media(max-width:800px){
.pd2-intro{padding:17px 4vw 20px}
.pd2-meta{font-size:9px}
.pd2-intro-stage{height:78svh;min-height:580px}
.pd2-wordmark{font-size:23vw;top:6%}
.pd2-title{top:26%}
.pd2-line{font-size:16vw!important;line-height:1.02;letter-spacing:-.085em}
.pd2-line:nth-child(2){font-size:12.4vw!important;margin-left:0}
.pd2-line:nth-child(3){font-size:14.4vw!important}
.pd2-line:nth-child(4){font-size:10.8vw!important;margin-left:0;-webkit-text-stroke:1px var(--ink)}
.pd2-image{width:67%;height:62%;top:12%;right:0}
.pd2-side-note{bottom:2%;font-size:10px}
.pd2-showreel{height:190svh}
.pd2-sticky{padding:18px 4vw}
.pd2-reel-frame{transform:scale(.86)}
.pd2-reel-caption{font-size:11vw}
.pd2-reel-head,.pd2-reel-bottom{font-size:10px}
}
@media(prefers-reduced-motion:reduce){.pd2-reel-frame{transform:scale(1)!important}.pd2-reel-caption{opacity:1!important;transform:none!important}.pd2-line{transform:none!important;opacity:1!important}}

/* Approved sequence: editorial opening > full-screen reel > white / black content */
.pd2-showreel{background:#08090c}
.pd2-reel-frame{background:#08090c}
#work{background:#f7f7f4!important;color:#101114!important}
#work .section-head h2,#work .section-head p,#work .work-card h3{color:#101114!important}
#about{background:#f7f7f4!important;color:#101114!important;display:grid!important;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr)!important;gap:clamp(35px,7vw,120px)!important;align-items:start}
#about .about-intro h2{color:#101114!important;font-size:clamp(52px,7.6vw,125px)!important;line-height:.93!important}
#about .eyebrow{color:#165dff!important}
#about .about-copy h3,#about .about-copy p,#about .about-copy strong,#about .about-copy .meta{color:#101114!important}
#about .about-copy p{line-height:1.65}
#about .portrait-placeholder{width:min(100%,570px)!important;max-width:570px!important;aspect-ratio:4/5!important;height:auto!important;padding:0!important;margin-top:36px!important;border:0!important;background:#dcdedb!important;transform:none!important;overflow:hidden!important}
#about .portrait-placeholder img{object-fit:cover!important;object-position:center 30%!important;width:100%!important;height:100%!important}
#about .about-copy{padding-top:clamp(30px,7vw,130px)}
#about .about-signoff{color:#165dff!important}
@media(max-width:800px){
#about{grid-template-columns:1fr!important;gap:30px!important}
#about .about-intro h2{font-size:clamp(48px,11vw,90px)!important}
#about .portrait-placeholder{width:100%!important;max-width:480px!important;aspect-ratio:4/5!important;margin-top:26px!important}
#about .about-copy{padding-top:0}
}

/* V3 — bold editorial energy, clean geometry, purposeful accent colors */
.pd2-intro{background:#f7f7f4}
.pd2-intro-stage::after{content:"✳";position:absolute;right:1%;bottom:0;z-index:8;color:#165dff;font:900 clamp(90px,12vw,210px)/1 sans-serif;transform:rotate(-14deg);pointer-events:none}
.pd2-image{box-shadow:18px 18px 0 #dcff31}
.pd2-title .pd2-line:nth-child(2){background:#165dff;color:#fff;padding:0 .09em .06em;transform-origin:left center;width:max-content}
.pd2-title .pd2-line:nth-child(4){-webkit-text-stroke:2px #111}
.pd2-reel-head{font-size:13px;letter-spacing:.1em}
.pd2-reel-caption{color:#fff;text-transform:uppercase}
#work{position:relative;overflow:hidden}
#work::before{content:"SELECTED / 01—07";display:block;color:#165dff;font:800 clamp(13px,1.4vw,20px)/1 'Space Grotesk',sans-serif;letter-spacing:.06em;margin-bottom:clamp(25px,5vw,70px)}
#work .section-head h2{font-weight:900!important;letter-spacing:-.09em!important;line-height:.86!important}
#work .work-card:nth-child(2n){margin-top:clamp(30px,7vw,110px)!important}
#work .work-card .poster{border-radius:0!important;transition:clip-path .65s cubic-bezier(.16,1,.3,1),transform .65s cubic-bezier(.16,1,.3,1)!important}
#work .work-card:hover .poster{transform:scale(.97)!important;clip-path:inset(2% 2% 2% 2%)}
#services{background:#dcff31!important;color:#090a0b!important}
#services h2,#services h3,#services p,#services .eyebrow{color:#090a0b!important}
#services .service-row{border-color:#090a0b!important}
#services .service-row h3{transition:transform .4s cubic-bezier(.16,1,.3,1)!important}
#services .service-row:hover h3{transform:translateX(2.5vw)!important}
#about{position:relative}
#about .about-intro h2{letter-spacing:-.09em!important}
#about .portrait-placeholder{box-shadow:clamp(10px,1.8vw,25px) clamp(10px,1.8vw,25px) 0 #165dff!important}
#about .about-signoff{font-size:clamp(20px,2.5vw,40px)!important;line-height:1.1!important;letter-spacing:-.05em!important}
#contact h2{transition:letter-spacing .5s ease}
#contact h2:hover{letter-spacing:-.075em!important}
@media(max-width:800px){
.pd2-intro-stage::after{font-size:80px;right:0;bottom:4%}
.pd2-image{box-shadow:9px 9px 0 #dcff31}
.pd2-title .pd2-line:nth-child(2){padding:0 .06em .04em}
#work .work-card:nth-child(2n){margin-top:0!important}
#about .portrait-placeholder{box-shadow:12px 12px 0 #165dff!important}
}
@media(prefers-reduced-motion:reduce){#work .work-card .poster,#services .service-row h3{transition:none!important}}

/* Wonder Vision-inspired cinematic refinement: large visual stories and generous white space */
#work{padding-top:clamp(100px,12vw,210px)!important;padding-bottom:clamp(120px,14vw,230px)!important}
#work .section-head{margin-bottom:clamp(65px,9vw,145px)!important}
#work .work-grid{display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:clamp(85px,12vw,190px) 3vw!important}
#work .work-card:nth-child(n){grid-column:span 6!important;max-width:none!important;margin:0!important;padding:0!important}
#work .work-card:nth-child(4n+1){grid-column:span 12!important}
#work .work-card:nth-child(4n+1) .poster{aspect-ratio:16/8.5!important}
#work .work-card:nth-child(4n+2){grid-column:2/span 5!important}
#work .work-card:nth-child(4n+3){grid-column:8/span 5!important;padding-top:clamp(75px,12vw,180px)!important}
#work .work-card:nth-child(4n+4){grid-column:span 12!important}
#work .work-card:nth-child(4n+4) .poster{aspect-ratio:16/9!important}
#work .work-card .poster{overflow:hidden!important;position:relative!important;transform:none!important;clip-path:none!important}
#work .work-card .poster img{width:100%;height:100%;object-fit:cover;transition:transform 1.2s cubic-bezier(.16,1,.3,1)!important}
#work .work-card:hover .poster{transform:none!important;clip-path:none!important}
#work .work-card:hover .poster img{transform:scale(1.065)!important}
#work .work-card h3{font-size:clamp(21px,2.4vw,38px)!important;letter-spacing:-.055em!important}
#services{background:#f7f7f4!important;color:#101114!important}
#services h2,#services h3,#services p,#services .eyebrow{color:#101114!important}
#services .service-row{border-color:#111!important}
#services .section-head h2{font-size:clamp(70px,12vw,190px)!important;line-height:.9!important}
#about{padding-top:clamp(100px,12vw,180px)!important;padding-bottom:clamp(100px,12vw,180px)!important}
#about .portrait-placeholder{box-shadow:none!important}
.pd2-reel-frame{border-radius:0!important}
@media(max-width:800px){
#work .work-grid{display:block!important}
#work .work-card:nth-child(n){width:100%!important;padding:0!important;margin:0 0 75px!important}
#work .work-card:nth-child(n) .poster{aspect-ratio:4/3!important}
#services .section-head h2{font-size:clamp(55px,12vw,90px)!important}
}
