/* ===== Jiggle 動畫：走進棚（捲動穿過每個角落） =====
   只有 motion.js 成功建好、且沒開「減少動態」時才會出現；否則原本的橫向照片列照常顯示。 */
.walk{position:relative;height:calc(var(--n,8) * var(--per,62vh) + 100vh);margin:0}
.walk-stick{position:sticky;top:var(--walk-top,80px);height:calc(100vh - var(--walk-top,80px) - 16px);border-radius:var(--r,18px);overflow:hidden;background:#0E0F12;isolation:isolate;contain:layout paint}
.walk-frame{all:unset;position:absolute;inset:0;display:block;cursor:zoom-in;visibility:hidden;will-change:transform,opacity;transform-origin:50% 50%;border-radius:var(--r,18px);overflow:hidden;background:#1a1b1f}
.walk-frame img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;will-change:transform}
.walk-frame::after{content:"";position:absolute;inset:0;background:#0E0F12;opacity:var(--dim,0);pointer-events:none}
.walk-frame:focus-visible{outline:3px solid #fff;outline-offset:-6px}

.walk-ui{position:absolute;inset:auto 0 0 0;z-index:100;pointer-events:none;color:#fff;padding:5rem clamp(1.25rem,3vw,2.5rem) clamp(1.25rem,3vw,2.25rem);background:linear-gradient(transparent,rgba(10,11,14,.35) 35%,rgba(10,11,14,.75));text-shadow:0 1px 12px rgba(0,0,0,.35);display:flex;align-items:flex-end;gap:1.5rem}
.walk-cap{min-width:0;flex:1;overflow:hidden}
.walk-cap .k{display:block;font-family:var(--lat);font-weight:600;font-size:clamp(3.2rem,8vw,6.5rem);line-height:.9;letter-spacing:-.04em;margin:0 0 .35rem}
.walk-cap b{display:block;font-size:clamp(1.3rem,2.6vw,2rem);font-weight:900;line-height:1.25}
.walk-cap small{display:block;font-size:.95rem;opacity:.78;margin-top:.15rem}
.walk-cap>span{display:block;animation:walkIn .55s cubic-bezier(.2,.8,.2,1) both}
@keyframes walkIn{from{opacity:0;transform:translateY(40%)}to{opacity:1;transform:none}}
.walk-side{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:.9rem}
.walk-count{font-family:var(--lat);font-weight:600;font-size:.95rem;letter-spacing:.04em;font-variant-numeric:tabular-nums}
.walk-count i{font-style:normal;opacity:.55}
.walk-dots{display:flex;gap:6px;pointer-events:auto}
.walk-dots button{all:unset;cursor:pointer;width:22px;height:22px;display:grid;place-items:center}
.walk-dots button::before{content:"";width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.45);transition:transform .3s,background .3s}
.walk-dots button[aria-current="true"]::before{background:#fff;transform:scale(1.7)}
.walk-dots button:focus-visible{outline:2px solid #fff;border-radius:50%}
.walk-bar{position:absolute;left:0;right:0;top:0;height:3px;z-index:101;background:rgba(255,255,255,.18)}
.walk-bar i{display:block;height:100%;background:#fff;transform-origin:0 50%;transform:scaleX(var(--p,0))}

.walk-top{position:absolute;top:clamp(1rem,2.5vw,1.6rem);left:clamp(1.25rem,3vw,2.5rem);right:clamp(1.25rem,3vw,2.5rem);z-index:101;display:flex;justify-content:space-between;align-items:center;gap:1rem;pointer-events:none}
.walk-top .tag{display:inline-flex;align-items:center;gap:.45rem;background:rgba(255,255,255,.92);color:#14161B;border-radius:999px;padding:.35rem .85rem;font-size:.85rem;font-weight:700}
.walk-top .tag svg{width:13px;height:13px;color:var(--cobalt,#2443D6)}
.walk-skip{pointer-events:auto;font-size:.85rem;font-weight:700;color:#fff;text-decoration:none;background:rgba(14,15,18,.45);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);border:1px solid rgba(255,255,255,.35);border-radius:999px;padding:.35rem .85rem}
.walk-skip:hover{background:rgba(14,15,18,.7)}

/* 手機：貼齊螢幕左右，捲動距離縮短 */
@media (max-width:560px){
  .walk{--per:46vh;margin:0 calc(-1 * var(--gut-r,20px)) 0 calc(-1 * var(--gut,20px))}
  .walk-stick{border-radius:0}
  .walk-frame{border-radius:0}
  .walk-ui{padding-bottom:1.25rem;gap:1rem}
  .walk-dots{display:none}
}
/* 減少動態：照片只淡入淡出（motion.js 處理），圖說不滑動 */
@media (prefers-reduced-motion:reduce){.walk-cap>span{animation:jgSoft .5s ease-out both}}
@keyframes jgSoft{from{opacity:0}to{opacity:1}}

/* ===== Jiggle 動畫：招牌開場＋箭頭 ↗（配 motion-intro.js） ===== */
/* 開場前先蓋一層鈷藍，避免網頁先閃一下；4 秒後無論如何自動拿掉 */
html.jg-intro::after{content:"";position:fixed;inset:0;z-index:2147483000;background:#2443D6;animation:jgFail 0s 4s forwards}
@keyframes jgFail{to{visibility:hidden}}
.jg-ov{position:fixed;inset:0;z-index:2147483000;overflow:hidden;background:#2443D6;color:#fff;display:grid;place-items:center;cursor:pointer;animation:jgFail 0s 6s forwards}
.jg-sign{display:flex;flex-direction:column;align-items:center}
.jg-word{display:flex;align-items:center;gap:.04em;font-family:"Poppins","Noto Sans TC",system-ui,sans-serif;font-weight:600;font-size:clamp(4.5rem,19vw,14rem);line-height:1;letter-spacing:-.03em;transform-origin:50% 50%}
.jg-word i{font-style:normal;display:inline-block;transform-origin:50% 100%;opacity:0}
.jg-word svg{width:.62em;height:.62em;margin-left:.04em;overflow:visible}
.jg-word path{stroke-dasharray:30;stroke-dashoffset:30}
.jg-rows{display:flex;gap:clamp(1rem,5vw,4rem);margin-top:clamp(1rem,3vw,2rem);font-family:"Poppins",system-ui,sans-serif;font-weight:500;font-size:clamp(.55rem,1.2vw,.8rem);letter-spacing:.22em;opacity:0}
.jg-skip{position:absolute;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));font-size:.85rem;opacity:.7}
.jg-go .jg-word i{animation:jgDrop .7s cubic-bezier(.2,.9,.3,1.2) both;animation-delay:calc(.1s + var(--i) * 70ms)}
@keyframes jgDrop{0%{opacity:0;transform:translateY(-90%) scaleY(1.35)}55%{opacity:1;transform:translateY(0) scale(1.18,.78)}75%{transform:scale(.94,1.08)}100%{opacity:1;transform:none}}
.jg-go .jg-word path{animation:jgDraw .4s .75s ease-out forwards}
@keyframes jgDraw{to{stroke-dashoffset:0}}
.jg-go .jg-word svg{animation:jgShootBig .8s 1.2s cubic-bezier(.6,0,.3,1) both}
@keyframes jgShootBig{0%{transform:none}45%{transform:translate(70vw,-70vh)}46%{transform:translate(-70vw,70vh)}100%{transform:none}}
.jg-go .jg-rows{animation:jgFade .5s .9s ease-out forwards}
@keyframes jgFade{to{opacity:.8}}
.jg-out .jg-word i{opacity:1;animation:none}
.jg-out .jg-word path{stroke-dashoffset:0;animation:none}
.jg-out .jg-word svg{animation:none}
.jg-out .jg-rows,.jg-out .jg-skip{opacity:0;transition:opacity .2s}

/* 開場後首屏進場：照片從左下往右上打開，文字往上浮 */
.jg-hero .shot .main{animation:jgWipe 1s cubic-bezier(.6,0,.2,1) both}
@keyframes jgWipe{from{clip-path:circle(0% at 0% 100%)}to{clip-path:circle(150% at 0% 100%)}}
.jg-hero .shot .sub{animation:jgPop .7s .45s cubic-bezier(.3,1.5,.5,1) both}
@keyframes jgPop{from{opacity:0;transform:translate(-14px,14px) scale(.85)}to{opacity:1;transform:none}}
.jg-hero .copy>*{animation:jgRise .7s cubic-bezier(.2,.8,.2,1) both}
.jg-hero .copy>:nth-child(2){animation-delay:.08s}.jg-hero .copy>:nth-child(3){animation-delay:.16s}
.jg-hero .copy>:nth-child(4){animation-delay:.24s}.jg-hero .copy>:nth-child(5){animation-delay:.32s}.jg-hero .copy>:nth-child(6){animation-delay:.4s}
@keyframes jgRise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}

/* 招牌語言：↗ 飛出去再從左下回來；招牌字母滑過會彈 */
.jg-aw{display:inline-flex;overflow:hidden;flex:none;width:16px;height:16px;align-items:center;justify-content:center}
.jg-aw .arr{flex:none}
.btn:hover .jg-aw .arr,a.deal:hover .jg-aw .arr{transform:none;animation:jgShoot .55s cubic-bezier(.5,0,.3,1)}
.plate{overflow:hidden}
.plate:hover svg{transform:none;animation:jgShoot .55s cubic-bezier(.5,0,.3,1)}
@keyframes jgShoot{0%{transform:none}45%{transform:translate(140%,-140%)}46%{transform:translate(-140%,140%)}100%{transform:none}}
.jg-w{display:inline-flex}
.jg-w i{font-style:normal;display:inline-block}
.plate:hover .jg-w i{animation:jgJig .5s cubic-bezier(.3,1.6,.5,1) both;animation-delay:calc(var(--i) * 40ms)}
@keyframes jgJig{0%{transform:none}35%{transform:translateY(-22%) scaleY(1.12)}70%{transform:translateY(4%) scale(1.06,.92)}100%{transform:none}}

/* 減少動態：開場改成字母依序淡入、箭頭畫出來，整塊藍色淡出；不彈跳、不飛、不縮放 */
@media (prefers-reduced-motion:reduce){
  .jg-go .jg-word i{animation:jgSoft .6s ease-out both!important;animation-delay:calc(.1s + var(--i) * 90ms)!important}
  .jg-go .jg-word svg{animation:none!important}
  .jg-hero .shot .main,.jg-hero .shot .sub,.jg-hero .copy>*{animation:jgSoft .8s ease-out both!important}
  .btn:hover .jg-aw .arr,a.deal:hover .jg-aw .arr,.plate:hover svg,.plate:hover .jg-w i{animation:none!important}
}
