
/* SONICRAFT V162 — Cipher-inspired rotating film constellation */
.cipher-showcase{position:relative;min-height:100svh;background:#050505;color:#f7f4ed;overflow:hidden;border-top:1px solid rgba(255,255,255,.08);border-bottom:1px solid rgba(255,255,255,.08);isolation:isolate}
.cipher-showcase::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 50% 48%,rgba(255,255,255,.045),transparent 33%),radial-gradient(circle at 18% 72%,rgba(75,120,160,.06),transparent 30%);z-index:0}
.cipher-showcase-head{position:absolute;z-index:12;top:36px;left:max(36px,calc((100vw - 1240px)/2));max-width:430px;pointer-events:none}
.cipher-showcase-head .section-label{color:#c8a85f}.cipher-showcase-head h2{margin:7px 0 4px;font-family:"Noto Serif TC","Songti TC","PMingLiU",serif;font-size:clamp(32px,4vw,62px);font-weight:500;line-height:1;letter-spacing:-.04em}.cipher-showcase-head p{margin:0;color:rgba(255,255,255,.48);font-size:12px;line-height:1.8}
.cipher-stage{position:relative;z-index:2;width:100%;height:100svh;min-height:760px;overflow:hidden;cursor:default;--cipher-accent:#f5efe5}
.cipher-stage-haze{position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 50% 50%,rgba(255,255,255,.022),transparent 38%);filter:blur(20px)}
.cipher-orbit-line{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border:1px solid rgba(255,255,255,.055);border-radius:50%;pointer-events:none}.cipher-orbit-line-outer{width:min(76vw,1180px);height:min(61vh,610px)}.cipher-orbit-line-inner{width:min(48vw,720px);height:min(37vh,370px);border-style:dashed;opacity:.5}

.cipher-intro{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:10;width:min(430px,38vw);text-align:center;display:grid;justify-items:center;pointer-events:auto;padding:28px 26px;border:1px solid rgba(255,255,255,.08);background:rgba(5,5,5,.50);backdrop-filter:blur(13px);box-shadow:0 28px 90px rgba(0,0,0,.28)}
.cipher-intro::before{content:"";position:absolute;inset:-36px;z-index:-1;background:radial-gradient(circle,rgba(5,5,5,.72) 0%,rgba(5,5,5,.42) 48%,transparent 74%);filter:blur(12px);pointer-events:none}
.cipher-intro-label{font:8px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.2em;color:#c8a85f}
.cipher-intro h1{margin:12px 0 10px;font-family:"Noto Serif TC","Songti TC","PMingLiU",serif;font-size:clamp(34px,3.5vw,58px);font-weight:500;line-height:1.02;letter-spacing:-.045em;color:#f7f4ed;white-space:nowrap}
.cipher-intro p{margin:0;max-width:390px;color:rgba(255,255,255,.58);font-size:12px;line-height:1.85}
.cipher-intro-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:9px;margin-top:20px}
.cipher-intro-btn{display:inline-flex;align-items:center;justify-content:center;min-height:39px;padding:0 15px;border:1px solid rgba(255,255,255,.22);border-radius:999px;color:#f7f4ed;font-size:10px;font-weight:760;background:rgba(5,5,5,.32);transition:transform .25s ease,border-color .25s ease,background .25s ease}
.cipher-intro-btn.primary{background:#f2eee5;color:#101114;border-color:#f2eee5}.cipher-intro-btn:hover{transform:translateY(-1px);border-color:rgba(255,255,255,.5)}
.cipher-intro-proof{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:17px;color:rgba(255,255,255,.34);font:7px/1.3 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.08em}.cipher-intro-proof span::before{content:"•";margin-right:6px;color:#c8a85f}
.cipher-items{position:absolute;inset:0;z-index:4}.cipher-item{position:absolute;left:0;top:0;will-change:transform,opacity;transition:filter .35s ease,opacity .35s ease;transform-origin:center}.cipher-item:hover{z-index:90!important;filter:none!important;opacity:1!important}.cipher-card{position:relative;display:block;width:100%;height:100%;border:0;padding:0;margin:0;background:#0b0b0b;color:#fff;overflow:hidden;cursor:pointer;box-shadow:0 18px 60px rgba(0,0,0,.38);isolation:isolate;text-align:left}.cipher-card-static{cursor:default}.cipher-card::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 54%,rgba(0,0,0,.8));opacity:.5;transition:opacity .35s ease;pointer-events:none}.cipher-card:hover::after{opacity:.88}.cipher-card img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;filter:saturate(.88) contrast(1.03);transition:transform .6s cubic-bezier(.16,1,.3,1),filter .4s ease}.cipher-card:hover img{transform:scale(1.045);filter:saturate(1) contrast(1.05)}.cipher-card.cipher-contain img{object-fit:contain;background:#0a0a0a}
.cipher-card-meta{position:absolute;z-index:4;left:13px;right:13px;bottom:11px;display:grid;gap:3px;opacity:0;transform:translateY(8px);transition:opacity .3s ease,transform .4s cubic-bezier(.16,1,.3,1);pointer-events:none}.cipher-card:hover .cipher-card-meta,.cipher-item:focus-within .cipher-card-meta{opacity:1;transform:none}.cipher-card-meta strong{font-family:"Noto Serif TC","Songti TC","PMingLiU",serif;font-size:14px;font-weight:500;line-height:1.2}.cipher-card-meta span{font:7px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.15em;color:rgba(255,255,255,.65)}
.cipher-play{position:absolute;z-index:5;left:50%;top:50%;transform:translate(-50%,-50%) scale(.8);width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:rgba(5,5,5,.64);border:1px solid rgba(255,255,255,.45);color:#fff;font-size:11px;opacity:0;transition:opacity .3s ease,transform .35s ease}.cipher-card:hover .cipher-play,.cipher-item:focus-within .cipher-play{opacity:1;transform:translate(-50%,-50%) scale(1)}
.cipher-size-lg{width:clamp(210px,20vw,320px);height:clamp(145px,13vw,210px)}.cipher-size-wide{width:clamp(205px,18vw,290px);height:clamp(120px,10vw,165px)}.cipher-size-md{width:clamp(175px,15vw,240px);height:clamp(120px,10vw,165px)}.cipher-size-square{width:clamp(150px,12vw,190px);height:clamp(150px,12vw,190px)}.cipher-size-portrait{width:clamp(125px,10vw,165px);height:clamp(175px,15vw,230px)}
.cipher-current{position:absolute;z-index:12;left:50%;bottom:54px;transform:translateX(-50%);display:grid;justify-items:center;gap:3px;text-align:center;pointer-events:none}.cipher-current span,.cipher-current em{font:7px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.2em;color:rgba(255,255,255,.36);font-style:normal}.cipher-current strong{font-family:"Noto Serif TC","Songti TC","PMingLiU",serif;font-size:18px;font-weight:500;color:rgba(255,255,255,.88);transition:opacity .2s ease}
.cipher-stage-footer{position:absolute;z-index:11;left:18px;right:18px;bottom:15px;display:grid;grid-template-columns:1fr auto 1fr;gap:16px;align-items:end;font:7px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.14em;color:rgba(255,255,255,.45);pointer-events:none}.cipher-stage-footer span:nth-child(2){text-align:center}.cipher-stage-footer span:last-child{text-align:right}.cipher-credit-note{position:absolute;z-index:12;right:max(24px,calc((100vw - 1240px)/2));bottom:42px;font-size:10px;color:rgba(255,255,255,.34);max-width:300px;text-align:right}
.cipher-stage.is-paused .cipher-center-mark span::after{content:" / PAUSED";color:#c8a85f}
@media(max-width:1100px){.cipher-stage{min-height:680px}.cipher-showcase-head{top:28px;left:24px}.cipher-credit-note{right:24px}.cipher-orbit-line-outer{width:82vw;height:54vh}.cipher-current{bottom:47px}}
@media(max-width:760px){.cipher-showcase{padding:70px 0 32px;min-height:auto}.cipher-showcase-head{position:relative;top:auto;left:auto;width:min(100% - 32px,600px);margin:0 auto 22px}.cipher-showcase-head p{font-size:11px}.cipher-credit-note{display:none}.cipher-stage{height:auto;min-height:0;overflow:visible;width:100%}.cipher-stage-haze,.cipher-orbit-line,.cipher-current,.cipher-stage-footer{display:none}.cipher-intro{position:relative;left:auto;top:auto;transform:none;width:min(100% - 32px,600px);margin:0 auto 22px;padding:24px 18px}.cipher-intro h1{white-space:normal;font-size:40px}.cipher-intro::before{display:none}.cipher-items{position:relative;inset:auto;display:flex;gap:14px;overflow-x:auto;padding:0 16px 14px;scroll-snap-type:x mandatory;scrollbar-width:none}.cipher-items::-webkit-scrollbar{display:none}.cipher-item{position:relative!important;left:auto!important;top:auto!important;transform:none!important;opacity:1!important;filter:none!important;flex:0 0 78vw;width:78vw;height:52vw;max-height:300px;scroll-snap-align:center}.cipher-size-portrait,.cipher-size-square{height:70vw;max-height:380px}.cipher-card-meta{opacity:1;transform:none}.cipher-play{opacity:1}.cipher-showcase::after{content:"左右滑動瀏覽作品";display:block;margin:10px 16px 0;color:rgba(255,255,255,.42);font:8px ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.16em}}
@media(prefers-reduced-motion:reduce){.cipher-item{transition:none!important}.cipher-card img,.cipher-card-meta,.cipher-play{transition:none!important}}

.cipher-item[data-title="早春晴朗"] .cipher-card img{object-position:center center;filter:saturate(.94) contrast(1.04)}
.cipher-item[data-title="規格化女子"] .cipher-card img{object-fit:contain;object-position:center;background:#111319}

.cipher-showcase-head{display:none!important}


/* V165 — refined film constellation layout */
.cipher-showcase{min-height:calc(100svh - 62px);padding:0;background:radial-gradient(circle at 50% 44%,rgba(40,52,92,.12),transparent 28%),#050608}
.cipher-showcase-meta{position:absolute;z-index:12;top:16px;left:max(24px,calc((100vw - 1240px)/2));right:max(24px,calc((100vw - 1240px)/2));display:flex;justify-content:space-between;gap:16px;align-items:center;font:8px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.16em;color:rgba(255,255,255,.36);pointer-events:none}
.cipher-stage{height:calc(100svh - 62px);min-height:820px}
.cipher-stage-haze{background:radial-gradient(circle at 50% 52%,rgba(111,140,255,.05),transparent 34%),radial-gradient(circle at 36% 63%,rgba(226,154,255,.04),transparent 22%),radial-gradient(circle at 70% 38%,rgba(92,198,255,.03),transparent 24%)}
.cipher-intro{width:min(500px,40vw);padding:30px 28px 26px;border-radius:26px;border:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,rgba(7,8,13,.42),rgba(7,8,13,.22));box-shadow:0 0 0 1px rgba(255,255,255,.03) inset,0 24px 70px rgba(0,0,0,.22)}
.cipher-intro::before{inset:-56px;background:radial-gradient(circle,rgba(8,10,18,.58) 0%,rgba(8,10,18,.18) 52%,transparent 76%)}
.cipher-intro h1{margin:10px 0 10px;font-size:clamp(38px,4vw,66px);white-space:nowrap}
.cipher-intro p{max-width:420px;color:rgba(255,255,255,.65);font-size:12.5px}
.cipher-stage.has-active .cipher-item:not(.is-active){opacity:.16!important;filter:grayscale(1) brightness(.55) blur(.9px)!important}
.cipher-stage.has-active .cipher-item.is-active{opacity:1!important;filter:none!important;z-index:96!important}
.cipher-stage.has-active .cipher-item.is-active .cipher-card-meta{opacity:1;transform:none}
.cipher-stage.has-active .cipher-item.is-active .cipher-play{opacity:1;transform:translate(-50%,-50%) scale(1)}
.cipher-card{border-radius:2px;transition:transform .35s ease,box-shadow .35s ease}
.cipher-card::after{background:linear-gradient(180deg,rgba(0,0,0,.04) 34%,rgba(0,0,0,.83));opacity:.46}
.cipher-item.is-active .cipher-card{box-shadow:0 28px 90px rgba(0,0,0,.52)}
.cipher-current{bottom:34px;gap:5px}
.cipher-current strong{font-size:20px}
.cipher-stage-footer{left:max(22px,calc((100vw - 1240px)/2));right:max(22px,calc((100vw - 1240px)/2));bottom:18px;color:rgba(255,255,255,.34)}
.cipher-credit-note{position:relative;right:auto;bottom:auto;width:min(1240px,calc(100% - 48px));margin:10px auto 0;font-size:10px;color:rgba(255,255,255,.28);text-align:right}
@media(max-width:1100px){.cipher-showcase-meta{left:22px;right:22px}.cipher-intro{width:min(450px,46vw)}.cipher-stage-footer{left:18px;right:18px}.cipher-credit-note{width:min(100% - 36px,1240px)}}
@media(max-width:760px){.cipher-showcase-meta{position:relative;top:auto;left:auto;right:auto;width:min(100% - 32px,600px);margin:0 auto 14px}.cipher-showcase-meta span:last-child{display:none}.cipher-stage{height:auto;min-height:0}.cipher-intro{width:min(100% - 32px,600px);border-radius:22px;margin-bottom:20px}.cipher-intro h1{white-space:normal}.cipher-credit-note{margin-top:6px}}


/* V166 — reference-image focus behavior */
.cipher-stage{min-height:800px}
.cipher-intro{width:min(520px,42vw);padding:0;border:0;border-radius:0;background:none;backdrop-filter:none;box-shadow:none;transition:opacity .3s ease,transform .45s cubic-bezier(.16,1,.3,1);pointer-events:auto}
.cipher-intro::before{inset:-90px;background:radial-gradient(circle,rgba(5,6,10,.76) 0%,rgba(5,6,10,.48) 34%,rgba(5,6,10,.12) 62%,transparent 78%);filter:blur(22px)}
.cipher-intro h1{font-size:clamp(42px,4.25vw,70px);text-shadow:0 10px 42px rgba(0,0,0,.68)}
.cipher-intro p{font-size:12px;color:rgba(255,255,255,.58)}
.cipher-stage.has-active .cipher-intro{opacity:.08;transform:translate(-50%,-50%) scale(.96);pointer-events:none}
.cipher-core-mark{position:absolute;z-index:8;left:50%;top:50%;width:58px;height:26px;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;gap:0;pointer-events:none;opacity:.72;transition:opacity .3s ease,transform .45s cubic-bezier(.16,1,.3,1)}
.cipher-core-mark i{display:block;width:19px;height:19px;margin-left:-11px;border:1px solid rgba(255,255,255,.86);border-radius:50%;transform:scaleX(.42);box-shadow:0 0 18px rgba(255,255,255,.04)}
.cipher-core-mark i:first-child{margin-left:0}.cipher-stage.has-active .cipher-core-mark{opacity:1;transform:translate(-50%,-50%) scale(1.08)}
.cipher-stage.has-active .cipher-item:not(.is-active){opacity:.12!important;filter:grayscale(1) brightness(.38) contrast(1.12) blur(.7px)!important}
.cipher-stage.has-active .cipher-item.is-active{opacity:1!important;filter:saturate(1.04) contrast(1.05)!important;z-index:98!important}
.cipher-stage.has-active .cipher-item.is-active .cipher-card{box-shadow:0 34px 110px rgba(0,0,0,.62),0 0 0 1px rgba(255,255,255,.09)}
.cipher-stage.has-active .cipher-item.is-active .cipher-card::after{opacity:.76}
.cipher-stage.has-active .cipher-item.is-active .cipher-card-meta{opacity:1;transform:translateY(0)}
.cipher-stage.has-active .cipher-item.is-active .cipher-card-meta strong{font-size:16px}
.cipher-stage.has-active .cipher-current{opacity:1}
.cipher-current{bottom:42px;padding:9px 15px 10px;border:1px solid rgba(255,255,255,.08);background:rgba(5,6,10,.36);backdrop-filter:blur(8px);border-radius:999px;transition:opacity .3s ease}
.cipher-current strong{font-size:17px}.cipher-current span,.cipher-current em{font-size:6.5px}
.cipher-card-meta{left:15px;right:15px;bottom:13px}.cipher-card-meta strong{font-size:14px}
.cipher-card img{filter:saturate(.82) contrast(1.03)}
.cipher-stage:not(.has-active) .cipher-item{filter:grayscale(.15)}
.cipher-stage:not(.has-active) .cipher-item:hover{filter:none!important}
@media(max-width:760px){.cipher-core-mark{display:none}.cipher-stage.has-active .cipher-intro{opacity:1;transform:none}.cipher-current{display:none}}


/* V167 — keep central copy inside the orbit and free from artwork collisions */
.cipher-intro{
  left:50%!important;
  top:50%!important;
  width:min(430px,34vw)!important;
  max-width:430px;
  transform:translate(-50%,-50%)!important;
  padding:18px 20px 16px!important;
  z-index:14!important;
  border:0!important;
  background:radial-gradient(circle at center,rgba(6,8,14,.82) 0%,rgba(6,8,14,.58) 52%,rgba(6,8,14,.08) 78%,transparent 100%)!important;
  backdrop-filter:none!important;
  box-shadow:none!important;
}
.cipher-intro::before{
  inset:-54px!important;
  background:radial-gradient(circle,rgba(5,7,13,.76) 0%,rgba(5,7,13,.50) 43%,rgba(5,7,13,.12) 68%,transparent 82%)!important;
  filter:blur(18px)!important;
}
.cipher-intro-label{font-size:7.5px;letter-spacing:.18em}
.cipher-intro h1{
  margin:10px 0 9px!important;
  font-size:clamp(38px,3.5vw,56px)!important;
  line-height:1.02!important;
  white-space:nowrap!important;
}
.cipher-intro p{max-width:360px!important;font-size:11.5px!important;line-height:1.72!important}
.cipher-intro-actions{margin-top:17px!important}
.cipher-intro-proof{margin-top:13px!important;gap:9px!important;font-size:6.5px!important}
.cipher-core-mark{top:calc(50% - 118px)!important;z-index:13!important;opacity:.55!important}
.cipher-stage.has-active .cipher-intro{
  transform:translate(-50%,-50%) scale(.965)!important;
  opacity:.06!important;
}
.cipher-orbit-line-outer{width:min(79vw,1210px)!important;height:min(65vh,650px)!important}
.cipher-orbit-line-inner{width:min(50vw,760px)!important;height:min(39vh,390px)!important}
.cipher-current{bottom:26px!important}
@media(max-width:1100px){
  .cipher-intro{width:min(400px,38vw)!important}
  .cipher-intro h1{font-size:clamp(34px,4vw,50px)!important}
  .cipher-intro p{font-size:10.8px!important}
}
@media(max-width:760px){
  .cipher-intro{
    position:relative!important;
    left:auto!important;
    top:auto!important;
    transform:none!important;
    width:min(100% - 32px,600px)!important;
    max-width:none!important;
    margin:0 auto 22px!important;
    padding:24px 18px!important;
    background:rgba(8,10,16,.56)!important;
  }
  .cipher-intro h1{white-space:normal!important;font-size:40px!important}
  .cipher-stage.has-active .cipher-intro{opacity:1!important;transform:none!important}
  .cipher-core-mark{display:none!important}
}

/* V204 — blend only the film page's top navigation into the existing V202 background.
   The showcase background, constellation, artwork, layout and lower sections remain V202. */
body.film-page .nav{
  position:fixed;
  left:0;
  right:0;
  top:0;
  z-index:70;
  background:linear-gradient(180deg,rgba(5,5,5,.94) 0%,rgba(5,5,5,.68) 48%,rgba(5,5,5,.22) 76%,rgba(5,5,5,0) 100%);
  border-bottom:0;
  box-shadow:none;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
body.film-page .nav::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-20px;
  height:28px;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(5,5,5,.12),transparent);
}
body.film-page .nav-in{height:74px}
body.film-page .cipher-showcase{
  min-height:100svh;
  border-top:0;
}
body.film-page .cipher-stage{
  height:100svh;
  min-height:820px;
}
body.film-page .cipher-showcase-meta{top:94px}
body.film-page .nav-home,
body.film-page .nav-links .ai-entry,
body.film-page .nav-cta{
  box-shadow:0 8px 26px rgba(0,0,0,.12);
}
@media(max-width:760px){
  body.film-page .nav-in{height:64px}
  body.film-page .cipher-showcase-meta{top:78px}
  body.film-page .cipher-stage{height:auto;min-height:0;padding-top:88px}
}
