/* 留白官網：像喝醉了一樣 —— 會融化的顏色、對不到焦的字，但畫面本身是穩的 */
body.landing { overflow-x: hidden; background: #05020c; }
#plasma { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; filter: blur(5px) saturate(120%); transform: scale(1.04); }
.defs { position: absolute; width: 0; height: 0; }

/* 不暈原則：不轉、不縮放、不隨捲動歪斜大面積的東西。
   醉意只放在「顏色、重影、局部融化」上，動得慢、動得小。 */

/* 導覽 */
.lnav { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(5,2,12,.45); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.lnav .logo { font-size: 22px; }
.lnav nav { display: flex; gap: 22px; margin-left: auto; }
.lnav nav a { color: var(--text); text-decoration: none; font-size: 15px; letter-spacing: .15em; opacity: .85; }
.lnav nav a:hover { opacity: 1; text-shadow: 0 0 12px var(--neon-1), 3px 0 var(--neon-3); }
.lnav .nav-cta { min-height: 44px; padding: 0 20px; }
@media (max-width: 900px) { .lnav nav { display: none; } .lnav .sober-btn { margin-left: auto; } }

.book-fab { display: none; }
@media (max-width: 720px) {
  .book-fab { display: flex; translate: 0 140%; transition: translate .35s cubic-bezier(.2,.9,.2,1.2); position: fixed; z-index: 21; left: 16px; right: 16px; bottom: calc(12px + env(safe-area-inset-bottom)); min-height: 60px; font-size: 19px;
    box-shadow: 0 8px 40px rgba(255,61,242,.6); }
  body.cta-gone .book-fab { translate: 0 0; }
  .lnav .nav-cta { display: none; }
  .m2 { backdrop-filter: none; }
  .lfoot { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
}

/* ── 主視覺：大字出血、液態、重影 ── */
.hero { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 70px 0 60px; position: relative; overflow: hidden; }
.mega { margin: 0 0 .12em; line-height: .82; font-weight: 900; font-size: clamp(150px, min(46vw, 40svh), 420px); letter-spacing: -.02em; display: flex; justify-content: center; gap: 0;
  font-family: "Noto Serif TC", "Songti TC", "PMingLiU", serif; }
.liquid { filter: url(#liquid); }
.glyph { position: relative; display: inline-block; color: transparent;
  background: linear-gradient(160deg, #fff 5%, #ffc8fb 30%, #c7b8ff 55%, #8ff8ff 80%, #e9ff8f); background-size: 100% 300%;
  -webkit-background-clip: text; background-clip: text;
  animation: sway 12s ease-in-out infinite, hueflow 9s linear infinite; }
.glyph:nth-child(2) { animation-delay: -4.3s, -2s; }
/* 重影：洋紅、青色兩層慢慢分開又合焦（7 秒、11 秒互質，不會規律） */
.glyph::before, .glyph::after { content: attr(data-t); position: absolute; inset: 0; z-index: -1; mix-blend-mode: screen; -webkit-text-fill-color: currentColor; pointer-events: none; }
.glyph::before { color: rgba(255,61,242,.85); animation: dv1 9s ease-in-out infinite; }
.glyph::after { color: rgba(46,242,255,.8); animation: dv2 13s ease-in-out infinite; }
@keyframes sway { 0%,100% { transform: translate(0,0); } 30% { transform: translate(-.01em,-.015em); } 70% { transform: translate(.012em,.008em); } }
@keyframes hueflow { to { background-position: 0 300%; } }
@keyframes dv1 { 0%,100% { transform: translate(-.02em,0); } 50% { transform: translate(-.08em,.015em); } }
@keyframes dv2 { 0%,100% { transform: translate(.02em,0); } 40% { transform: translate(.07em,-.02em); } 75% { transform: translate(.09em,.01em); } }

.hero .en { letter-spacing: .5em; font-size: 12px; color: #fff; margin: 22px 0 0; padding: 4px 12px; border-radius: 999px; background: rgba(5,2,12,.6); }
.lead { font-size: clamp(26px, 5vw, 42px); font-weight: 900; line-height: 1.35; margin: 0 0 10px; color: #fff;
  text-shadow: -3px 0 rgba(255,61,242,.8), 3px 0 rgba(46,242,255,.8), 0 0 30px rgba(123,92,255,.8); }
.hero .sub { color: #fff; font-size: 18px; margin: 4px 0 28px; letter-spacing: .1em; padding: 4px 14px; border-radius: 999px; background: rgba(5,2,12,.6); backdrop-filter: blur(6px); }
/* 一個字一個字各自晃（JS 拆字） */
.wobble .ch { display: inline-block; animation: tipsy var(--d, 5s) ease-in-out var(--dl, 0s) infinite; }
@keyframes tipsy { 0%,100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-.035em) rotate(-2deg); } 60% { transform: translateY(.025em) rotate(1.5deg); } }
.cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; padding: 0 16px; }
.cta .btn { min-width: 160px; }
.cta .btn-ghost { background: rgba(5,2,12,.6); backdrop-filter: blur(6px); }

/* ── 兩條反向交叉的跑馬燈 ── */
.marquees { position: relative; height: 170px; margin: 10px 0 30px; overflow: hidden; }
.marquee { position: absolute; left: -5%; right: -5%; top: 50%; overflow: hidden; border-block: 1px solid rgba(255,255,255,.25); }
.m1 { transform: translateY(-50%) rotate(-6deg); background: #fff; mix-blend-mode: difference; }
.m2 { transform: translateY(-50%) rotate(5deg); background: rgba(5,2,12,.8); backdrop-filter: blur(4px); }
.marquee .track { display: flex; gap: 26px; width: max-content; padding: 12px 0; font-size: clamp(20px, 3.6vw, 32px); font-weight: 900; letter-spacing: .18em; }
.m1 .track { animation: marq 48s linear infinite; color: #000; }
.m2 .track { animation: marq 64s linear infinite reverse; }
.m2 span { background: linear-gradient(90deg, var(--neon-3), #e9ff8f, var(--neon-1)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.marquee i { font-style: normal; opacity: .8; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ── 區塊：打破格線 ── */
.sect { max-width: 1100px; margin: 0 auto; padding: clamp(60px, 10vw, 120px) 16px; position: relative; }
.big { font-size: clamp(46px, 10vw, 108px); line-height: 1.02; margin: 0 0 28px; font-weight: 900; position: relative; letter-spacing: -.01em;
  color: transparent; background: linear-gradient(100deg, #fff 0%, #ffb8f6 18%, #b6a4ff 34%, #8ff8ff 50%, #fff7b0 66%, #ffb8f6 82%, #fff 100%); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; animation: oil 14s linear infinite; }
@keyframes oil { to { background-position: 300% 0; } }
.liquid-sm { filter: url(#melt); }
.sect p { font-size: 18px; line-height: 1.85; color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.85); }
.idea-text p, .again-demo p, .partner-body p, .steps3 p, p.center { text-shadow: 0 0 2px #000, 0 1px 14px rgba(0,0,0,.95), 0 0 30px rgba(5,2,12,.9); }
.center { text-align: center; }
/* 重影標題（JS 會把文字複製到 data-t） */
.ghost { position: relative; }
.ghost::before, .ghost::after { content: attr(data-t); position: absolute; inset: 0; padding: inherit; white-space: pre-line; pointer-events: none; mix-blend-mode: screen; text-shadow: none; }
.ghost::before { color: rgba(255,61,242,.75); animation: dvs1 9s ease-in-out infinite; }
.ghost::after { color: rgba(46,242,255,.7); animation: dvs2 13s ease-in-out infinite; }
@keyframes dvs1 { 0%,100% { transform: translate(-2px,0); } 50% { transform: translate(-8px,2px); } }
@keyframes dvs2 { 0%,100% { transform: translate(2px,0); } 40% { transform: translate(7px,-3px); } 75% { transform: translate(9px,1px); } }

.idea { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 5vw, 60px); align-items: end; }
@media (max-width: 760px) { .idea { grid-template-columns: 1fr; } }

.steps3 { list-style: none; padding: 0; margin: 0 0 80px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
@media (max-width: 760px) { .steps3 { grid-template-columns: 1fr; } }
.steps3 li { padding: 10px 16px; position: relative; }
.steps3 b { display: block; position: relative; font-size: clamp(130px, 18vw, 200px); line-height: .9; font-weight: 900; color: transparent;
  background: linear-gradient(100deg, #fff 0%, #ffb8f6 20%, #b6a4ff 40%, #8ff8ff 60%, #ffb8f6 80%, #fff 100%); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; animation: oil 16s linear infinite; }
.steps3 b.ghost::before, .steps3 b.ghost::after { z-index: -1; }
.steps3 .s2 b { animation-delay: -5s; } .steps3 .s3 b { animation-delay: -10s; }
.steps3 h3 { font-size: 34px; margin: 6px 0 6px 8px; text-shadow: 0 0 20px #000, 0 0 40px rgba(5,2,12,.9); }
.steps3 p { font-size: 16px; margin: 0 0 0 8px; }

.again-demo { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 60px); align-items: center; }
@media (max-width: 760px) { .again-demo { grid-template-columns: 1fr; text-align: center; } }
.again-static { cursor: pointer; width: min(64vw, 280px); margin: 0 auto; animation: spin 14s linear infinite, wobblebtn 9s ease-in-out infinite; }
.again-static { text-decoration: none; }
@keyframes wobblebtn { 50% { border-radius: 46% 54% 50% 50% / 55% 45% 55% 45%; } }
.again-demo h3 { font-size: clamp(30px, 4.5vw, 46px); margin: 0 0 8px; }

/* 酒款：大小不一、互相重疊、會失焦 */
.bottles { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; }
.bottles li { position: relative; overflow: hidden; border-radius: 58% 42% 50% 50% / 46% 54% 46% 54%; padding: 46px 16% 110px; background: rgba(5,2,12,.6); animation: blob 18s ease-in-out infinite; }
@keyframes blob { 33% { border-radius: 40% 60% 62% 38% / 55% 40% 60% 45%; } 66% { border-radius: 55% 45% 38% 62% / 42% 60% 40% 58%; } }
.bottles li.in { animation: blob 18s ease-in-out infinite, defocus 11s ease-in-out infinite; }
.bottles h3 { font-size: 28px; margin: 0; position: relative; }
.bottles p { margin: 0; font-size: 14px; position: relative; }
.bottles i { position: absolute; left: -10%; right: -10%; bottom: -6%; height: 52%; border-radius: 46% 54% 0 0 / 14px 18px 0 0; opacity: .92;
  animation: slosh 7s ease-in-out infinite; }
.bottles i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(rgba(255,255,255,.55) 1.5px, transparent 2px) 0 0 / 22px 26px; opacity: .35; }
@keyframes slosh { 0%,100% { translate: 0 0; border-radius: 46% 54% 0 0 / 14px 18px 0 0; } 50% { translate: 0 -4px; border-radius: 54% 46% 0 0 / 18px 12px 0 0; } }
.bottles h3, .bottles p { z-index: 1; text-shadow: 0 1px 10px rgba(0,0,0,.9); }
.b1 { grid-column: 1 / 4; z-index: 2; } .b2 { grid-column: 4 / 7; } .b3 { grid-column: 2 / 4; z-index: 3; }
.b4 { grid-column: 4 / 6; } .b5 { grid-column: 1 / 3; } .b6 { grid-column: 3 / 7; z-index: 2; }
.b2 i { animation-delay: -2s; } .b3 i { animation-delay: -4s; } .b4 i { animation-delay: -1s; } .b5 i { animation-delay: -5s; } .b6 i { animation-delay: -3s; }
.b2.in { animation-delay: -3s; } .b3.in { animation-delay: -5s; } .b4.in { animation-delay: -1s; } .b5.in { animation-delay: -7s; } .b6.in { animation-delay: -2s; }
@media (max-width: 760px) {
  .bottles { grid-template-columns: repeat(2, 1fr); }
  .bottles li { grid-column: auto; padding-top: 70px; }
  .bottles .b1 { grid-column: 1 / 3; }
}
@keyframes defocus { 0%,60%,100% { filter: blur(0); } 75% { filter: blur(1.2px); } }
@keyframes breathe { 50% { opacity: .45; filter: blur(4px) brightness(1.3); } }
.b1 i { background: linear-gradient(to top, #6b2c05, #c9771f 60%, #ffb347); }
.b2 i { background: linear-gradient(to top, #8a6a1e, #e8c76a 60%, #fff1b8); }
.b3 i { background: linear-gradient(to top, #0b4f6a, #4fd8ff 60%, #d8f8ff); }
.b4 i { background: linear-gradient(to top, #6b1f4a, #e07ac0 55%, #ffd1a8); }
.b5 i { background: linear-gradient(to top, #4a0f0a, #a8401c 60%, #ff8a4c); }
.b6 i { background: linear-gradient(to top, #7a4a06, #f2b51f 55%, #fff7e0 88%); }

.partner .big { text-align: right; padding-right: 5vw; font-size: clamp(42px, 8.5vw, 96px); }
.partner-body { max-width: 720px; }
.perks { font-weight: 700; }
.perks i { font-style: normal; color: var(--neon-1); margin: 0 6px; }
.contact { font-weight: 700; }
.todo { color: var(--warn); }

.finale { text-align: center; overflow: hidden; }
.small-mega { font-size: clamp(120px, 34vw, 320px); margin: 0 0 .16em; }
.finale .lead { font-size: clamp(22px, 4vw, 34px); margin-bottom: 24px; }

/* 頁尾：實色底、不扭、警語清楚 */
.lfoot { position: relative; z-index: 5; text-align: center; padding: 40px 16px calc(40px + env(safe-area-inset-bottom)); background: #05020c; border-top: 1px solid var(--line); }
.lfoot p { margin: 6px 0; font-size: 14px; }
.lfoot .law { font-size: 20px; font-weight: 900; letter-spacing: .3em; color: #fff; }

/* ── 歪斜擺放：用獨立的 rotate/translate/scale 屬性，跟進場的 transform 不打架 ── */
.idea .big { rotate: -4deg; translate: 1vw 0; }
.partner .big { rotate: 3deg; }
.steps3 .s1 { rotate: -4deg; translate: 0 10px; z-index: 2; }
.steps3 .s2 { rotate: 3deg; translate: -10px 40px; scale: 1.06; z-index: 3; border-radius: 6px 40px 10px 30px; }
.steps3 .s3 { rotate: -2deg; translate: -20px -6px; z-index: 1; }
@media (max-width: 760px) { .steps3 .s2 { translate: 14px -10px; } .steps3 .s3 { rotate: -3deg; translate: -6px -20px; } }
.b1 { rotate: -3deg; } .b2 { rotate: 4deg; translate: -12px 24px; } .b3 { rotate: -6deg; translate: 10px -8px; scale: .92; }
.b4 { rotate: 2deg; translate: -6px 10px; scale: 1.08; } .b5 { rotate: 5deg; translate: 30px -16px; } .b6 { rotate: -2deg; translate: -10px 6px; }
@media (max-width: 760px) { .b5 { translate: 6px -10px; } }

/* ── 進場：像視線慢半拍才對上焦，只有淡入、失焦和很小的位移 ── */
.reveal { opacity: 0; transition: opacity 1.1s ease, transform 1.2s cubic-bezier(.2,.8,.2,1), filter 1.2s ease; }
.r-blur:not(.in) { filter: blur(12px); }
.r-skew:not(.in) { transform: translateX(-24px); filter: blur(8px) saturate(2) brightness(1.4); }
.r-melt:not(.in) { transform: translateY(18px) scaleY(1.12); filter: blur(10px); transform-origin: top; }
.r-scale:not(.in) { transform: scale(.9); filter: blur(8px); }
.r-tilt:not(.in) { transform: translateY(24px); filter: blur(8px); }
.reveal.in { opacity: 1; }
.reveal.in:not(.liquid-sm):not(.bottles li) { filter: none; }

/* 標題進場：重影從很寬慢慢收攏成一個字（是「對焦」，不是位移畫面） */
.reveal:not(.in) .ghost::before, .ghost.reveal:not(.in)::before { translate: -.22em 0; opacity: .3; }
.reveal:not(.in) .ghost::after, .ghost.reveal:not(.in)::after { translate: .22em 0; opacity: .3; }
.ghost::before, .ghost::after { transition: translate 1.8s cubic-bezier(.2,.8,.2,1), opacity 1.8s; }

/* ── 醉意脈衝：一陣湧上來時，只有顏色偏移、重影拉開，畫面不動 ── */
.drunk main > section { transition: filter 1.6s ease-in-out; }
body.surge .drunk main > section { filter: saturate(1.4) brightness(1.1) drop-shadow(0 0 18px rgba(255,61,242,.35)); }
body.surge .drunk main > section p { filter: blur(.6px); }
.drunk main > section p { transition: filter 1.6s ease-in-out; }
.glyph::before, .glyph::after, .ghost::before, .ghost::after { transition: translate 1.6s ease-in-out; }
body.surge .glyph::before, body.surge .ghost::before { translate: -.05em .01em; }
body.surge .glyph::after, body.surge .ghost::after { translate: .06em -.015em; }

/* ── 清醒模式：右上角切換，所有動畫停住，只留顏色 ── */
.sober-btn { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(5,2,12,.5); color: #fff; font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; }
.sober-btn[aria-pressed="true"] { border-color: var(--neon-3); box-shadow: 0 0 12px rgba(46,242,255,.4); }
body.sober *, body.sober *::before, body.sober *::after { animation-play-state: paused !important; }
body.sober .liquid, body.sober .liquid-sm { filter: none !important; }
body.sober .glyph::before, body.sober .glyph::after, body.sober .ghost::before, body.sober .ghost::after { translate: 0 0 !important; }

@media (prefers-reduced-motion: reduce) {
  body.surge .drunk main > section { filter: none; }
  .big, .glyph, .glyph::before, .glyph::after, .ghost::before, .ghost::after, .wobble .ch, .marquee .track, .bottles li, .bottles i, .again-static { animation: none !important; }
  .liquid, .liquid-sm { filter: none !important; }
  .reveal { opacity: 1 !important; filter: none !important; transform: none !important; transition: none; }
}

/* 小標題的重影淡一點，避免糊成一團 */
h3.ghost::before, h3.ghost::after { opacity: .55; }
.again-demo h3.ghost::before { animation-name: dvs1; } .again-demo h3.ghost::after { animation-name: dvs2; }
.bottles i { height: 40%; }
