/* Blank Project 02 template — same core layout and scroll as Project 01 */
.template-stage-placeholder{width:100%;height:100%;aspect-ratio:1350/633;display:grid;place-items:center;background:linear-gradient(135deg,#d6e0da,#b9cbc0);border:1px solid #72918480;color:#47675c;font:700 clamp(11px,1.1vw,16px)/1.3 monospace;letter-spacing:.15em;box-shadow:inset 0 0 0 14px #ffffff22}
.template-stage-placeholder span{padding:16px;border:1px dashed #6d8c7b}
.template-panel .template-art{width:min(100%,650px);height:min(64vh,480px);position:relative;align-self:center;justify-self:center;min-width:0}
.template-frame{position:absolute;inset:8% 6%;border:2px dashed #91ae9e90;background:#dce9de12;display:grid;place-items:center;transform:rotate(-2deg)}
.template-frame span{font:700 clamp(10px,1vw,15px) monospace;letter-spacing:.12em;color:#b0cdbd}
.template-card{position:absolute;width:70%;height:36%;border:2px dashed #91ae9e90;background:#dce9de12;display:grid;place-items:center;transform:rotate(-3deg);transition:transform .3s ease}
.template-card span{font:700 clamp(10px,1vw,15px) monospace;letter-spacing:.12em;color:#b0cdbd}
.template-card-1{top:0;left:0}.template-card-2{top:31%;right:0;transform:rotate(4deg)}.template-card-3{bottom:0;left:5%;transform:rotate(-2deg)}
.template-art:hover .template-card-1{transform:translate(-7px,-8px) rotate(-5deg)}.template-art:hover .template-card-2{transform:translate(8px,0) rotate(6deg)}.template-art:hover .template-card-3{transform:translate(-6px,8px) rotate(-4deg)}
@media(max-width:767px){.template-panel .template-art{width:100%;height:clamp(220px,35vh,300px);margin-top:10px}.template-stage-placeholder{box-shadow:none}.template-frame{inset:4%}}
@media(prefers-reduced-motion:reduce){.template-card{transition:none}}

/* V8.5 — visual assets from the user-approved Kyoto concept board */
.kyoto-hero-image{display:block;width:100%;height:100%;object-fit:cover;aspect-ratio:1350/633}
.template-panel .kyoto-visual{isolation:isolate}
.kyoto-image{position:absolute;display:block;object-fit:cover;border:5px solid #f6eee1;box-shadow:0 18px 45px #091d195c;transition:transform .45s ease}
.kyoto-visual-label{position:absolute;bottom:0;left:2%;font:700 10px/1.3 monospace;letter-spacing:.12em;color:#d9e8da}
.kyoto-idea .kyoto-main-image{width:80%;height:79%;left:7%;top:5%;transform:rotate(-3deg)}
.kyoto-idea .kyoto-float-image{width:43%;height:37%;right:0;bottom:8%;transform:rotate(6deg)}
.kyoto-idea:hover .kyoto-main-image{transform:rotate(-1deg) translateY(-8px)}
.kyoto-idea:hover .kyoto-float-image{transform:rotate(3deg) translateY(5px)}
.kyoto-three-card{position:absolute;width:71%;height:38%;overflow:hidden;background:#eee8df;border:5px solid #f6eee1;box-shadow:0 18px 45px #091d195c;transition:transform .4s}
.kyoto-three-card img{width:100%;height:100%;object-fit:cover}
.kyoto-three-card span{position:absolute;bottom:0;left:0;right:0;padding:9px 12px;background:#20392fdb;color:#fff4e5;font:700 9px monospace;letter-spacing:.1em}
.kyoto-card-a{left:0;top:0;transform:rotate(-5deg)}
.kyoto-card-b{right:0;top:31%;transform:rotate(4deg)}
.kyoto-card-c{left:5%;bottom:0;transform:rotate(-3deg)}
.kyoto-challenge:hover .kyoto-card-a{transform:rotate(-7deg) translate(-8px,-9px)}
.kyoto-challenge:hover .kyoto-card-b{transform:rotate(6deg) translate(9px,0)}
.kyoto-challenge:hover .kyoto-card-c{transform:rotate(-5deg) translate(-7px,8px)}
.kyoto-process-wireframe{width:78%;height:75%;left:4%;top:2%;object-position:top;transform:rotate(-3deg)}
.kyoto-process-palette{width:68%;height:29%;right:0;bottom:7%;object-position:center;transform:rotate(5deg)}
.kyoto-build-screen{width:90%;height:76%;top:4%;left:0;object-position:top;transform:rotate(-2deg)}
.kyoto-build-detail{width:39%;height:43%;right:0;bottom:5%;transform:rotate(6deg)}
.kyoto-result-screen{width:84%;height:69%;left:4%;top:2%;transform:rotate(-3deg)}
.kyoto-result-brand{width:37%;height:48%;right:0;bottom:8%;transform:rotate(6deg)}
.kyoto-result-palette{width:48%;height:18%;left:2%;bottom:8%;transform:rotate(-2deg)}
@media(max-width:767px){.kyoto-image{border-width:3px}.kyoto-three-card{border-width:3px}.kyoto-visual-label{font-size:8px}}
@media(prefers-reduced-motion:reduce){.kyoto-image,.kyoto-three-card{transition:none}}

/* V8.6 / Kyoto-only palette, complete swatches and enhanced pointer parallax */
body:has(.template-panel){background:#f9f7f2}
body:has(.template-panel) .case-hero{background:#f2ece3;--hero-ink:#2e3a33;--hero-muted:#826f5c}
body:has(.template-panel) .case-hero:before{background:radial-gradient(ellipse 58% 70% at 75% 48%,#e2d4c58c,transparent 78%),linear-gradient(90deg,#bba99720 1px,transparent 1px),linear-gradient(#bba99720 1px,transparent 1px);background-size:auto,90px 90px,90px 90px}
body:has(.template-panel) .case-hero::after{background:#382d29}
body:has(.template-panel) .album-shell,body:has(.template-panel) .album-sticky{background:#292f2b}
body:has(.template-panel) .album-top,body:has(.template-panel) .album-bottom{background:#292f2b;color:#e5c5a7}
body:has(.template-panel) .album-progress>div{background:#c9a96a}
body:has(.template-panel) .template-panel:nth-child(1){background:#343b34}
body:has(.template-panel) .template-panel:nth-child(2){background:#eee6db;color:#2e3a33}
body:has(.template-panel) .template-panel:nth-child(2) h2{color:#2e3a33}
body:has(.template-panel) .template-panel:nth-child(2) p{color:#6e6155}
body:has(.template-panel) .template-panel:nth-child(2) .chapter-num,body:has(.template-panel) .template-panel:nth-child(2) .album-kicker{color:#9b533f}
body:has(.template-panel) .template-panel:nth-child(3){background:#403f36}
body:has(.template-panel) .template-panel:nth-child(4){background:#343b34}
body:has(.template-panel) .template-panel:nth-child(5){background:#48382f}
body:has(.template-panel) .template-panel .chapter-num,body:has(.template-panel) .template-panel .album-kicker{color:#d5ad83}
.kyoto-process-palette,.kyoto-result-palette{object-fit:contain!important;background:#f9f7f2;border:3px solid #f9f7f2;overflow:visible}
.kyoto-process-palette{width:91%;height:auto;max-height:none;right:-1%;bottom:3%;transform:rotate(3deg)}
.kyoto-result-palette{width:70%;height:auto;max-height:none;left:0;bottom:5%;transform:rotate(-2deg)}
.stage-motion .kyoto-wire-source{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;visibility:hidden;pointer-events:none}
.stage-motion .kyoto-hero-image{position:relative;z-index:1}
@media(max-width:767px){.kyoto-process-palette{width:95%;right:0}.kyoto-result-palette{width:76%}}

/* V8.7 — Kyoto-only fluid reveal and correctly proportioned wireframe */
body:has(.template-panel) .case-hero{--hero-ink:#2e3a33;--hero-muted:#806955}
body:has(.template-panel) .case-hero .stage-motion{background:#f9f7f2}
body:has(.template-panel) .case-hero .stage-motion .kyoto-hero-image{position:absolute;inset:0;width:100%;height:100%;object-fit:fill}
body:has(.template-panel) .case-hero .stage-motion .kyoto-wire-source{position:absolute;inset:0;width:100%;height:100%;object-fit:fill}
