:root {
  --ink: #0d1016;
  --ink-2: #151a23;
  --ink-3: #1c222d;
  --navy: #18223a;
  --door: #1c2840;
  --brass: #c9a35a;
  --brass-2: #ecd096;
  --cream: #f3eadb;
  --muted: rgba(243, 234, 219, .62);
  --line: rgba(243, 234, 219, .14);
  --emerald: #34c27a;
  --ember: #e07b39;
  --red: #e5484d;
  --gutter: clamp(16px, 3vw, 40px);
  /* 不加载外部字体（大陆访问 Google Fonts 不稳定），全部用系统字体 */
  --sans: "Inter Tight", -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, "Cascadia Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ink); color: var(--cream); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { background: var(--ink); font-size: 16px; line-height: 1.6; }
main { overflow-x: clip; position: relative; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
code, pre, .mono { font-family: var(--mono); }
section { position: relative; }
.sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
/* 段落之間的過渡：每段上下各一層漸層融到同一個底色，沒有硬邊 */
main > section:not(.s-hero) { position: relative; }
main > section:not(.s-hero)::before, main > section:not(.s-hero)::after { content: ""; position: absolute; left: 0; right: 0; height: 26vh; z-index: 3; pointer-events: none; }
main > section:not(.s-hero)::before { top: 0; background: linear-gradient(180deg, var(--ink) 0%, rgba(13,16,22,.85) 30%, rgba(13,16,22,0) 100%); }
main > section:not(.s-hero)::after { bottom: 0; background: linear-gradient(0deg, var(--ink) 0%, rgba(13,16,22,.85) 30%, rgba(13,16,22,0) 100%); }
.eyebrow { font: 600 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--brass-2); }

/* 層級：背景 < 3D 畫布 < 前景 UI */
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 5; pointer-events: none; }
.nav, .toast, .knock-hint, .scroll-hint, .cursor-tag, .loader { z-index: 10; }

/* ---------- 載入 ---------- */
/* 載入：門環叩兩下 → 中縫一道光 → 左右兩半拉開 */
.loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow: hidden; }
.loader.done { visibility: hidden; pointer-events: none; }
.ld-half { position: absolute; top: 0; bottom: 0; width: 50.2%; transition: transform 1.05s cubic-bezier(.75,0,.2,1) .28s; }
.ld-half.l { left: 0; background: radial-gradient(70% 60% at 100% 50%, rgba(150,34,16,.28), transparent 70%), var(--ink); }
.ld-half.r { right: 0; background: radial-gradient(70% 60% at 0% 50%, rgba(150,34,16,.28), transparent 70%), var(--ink); }
.loader.open .ld-half.l { transform: translateX(-101%); }
.loader.open .ld-half.r { transform: translateX(101%); }
.loader::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; z-index: 1; background: linear-gradient(180deg, transparent, #ffd9a0 30%, #fff4dc 50%, #ffd9a0 70%, transparent); box-shadow: 0 0 30px 8px rgba(255,190,110,.55); opacity: 0; transform: scaleY(0); }
.loader.open::after { animation: ldSeam 1.1s ease forwards; }
@keyframes ldSeam { 0% { opacity: 0; transform: scaleY(0); } 25% { opacity: 1; transform: scaleY(1); } 60% { opacity: .9; } 100% { opacity: 0; transform: scaleY(1); } }
.ld-core { position: relative; z-index: 2; display: grid; justify-items: center; gap: 12px; transition: opacity .3s ease, transform .5s ease; }
.loader.open .ld-core { opacity: 0; transform: scale(1.06); }
.ld-knocker { width: 150px; height: 200px; overflow: visible; filter: drop-shadow(0 12px 30px rgba(233,178,90,.22)); animation: ldJolt 1.6s linear infinite; }
.ld-ring { transform-box: view-box; transform-origin: 60px 54px; animation: ldKnock 1.6s cubic-bezier(.45,0,.25,1) infinite; }
.loader.open .ld-ring, .loader.open .ld-knocker, .loader.open .ld-rip { animation: none; }
/* 環向外抬起 ≈ 以鉸鏈為軸縮短 + 微放大；叩下時回到原位 */
@keyframes ldKnock {
  0% { transform: none; }
  17% { transform: scale(1.06, .5); }
  26% { transform: none; }
  30% { transform: scale(1.01, .9); }
  34% { transform: none; }
  43% { transform: scale(1.05, .56); }
  52% { transform: none; }
  56% { transform: scale(1.01, .92); }
  60%, 100% { transform: none; }
}
@keyframes ldJolt { 0%, 25.5%, 28%, 51.5%, 54%, 100% { transform: none; } 26.5%, 52.5% { transform: translateY(2px); } }
.ld-rip { position: absolute; left: 50%; top: 182px; width: 24px; height: 24px; margin: -12px; border-radius: 50%; border: 1.5px solid var(--brass-2); opacity: 0; pointer-events: none; animation: ldRip 1.6s linear infinite; }
.ld-rip.r2 { animation-name: ldRip2; }
@keyframes ldRip { 0%, 25.9% { opacity: 0; transform: scale(.3); } 26% { opacity: .9; transform: scale(.3); } 46% { opacity: 0; transform: scale(6); } 100% { opacity: 0; transform: scale(6); } }
@keyframes ldRip2 { 0%, 51.9% { opacity: 0; transform: scale(.3); } 52% { opacity: .9; transform: scale(.3); } 72% { opacity: 0; transform: scale(6); } 100% { opacity: 0; transform: scale(6); } }
.ld-word { margin-top: 10px; font: 900 30px/1 var(--sans); letter-spacing: .32em; text-indent: .32em; color: var(--cream); }
.ld-status { display: flex; gap: 12px; align-items: baseline; font: 600 13px/1 var(--sans); letter-spacing: .24em; color: var(--muted); }
.ld-status b { font: 600 13px/1 var(--mono); letter-spacing: 0; color: var(--brass-2); min-width: 3.2em; }
.loader-bar { width: 160px; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.loader-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brass), var(--brass-2)); }
.loader.quick .ld-half { transition-duration: .7s; transition-delay: .12s; }
@media (prefers-reduced-motion: reduce) { .ld-ring, .ld-knocker, .ld-rip { animation: none !important; } }

/* ---------- 導航 ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 24px; padding: 14px var(--gutter); }
.nav::before { content: ""; position: absolute; inset: 0 0 -20px; background: linear-gradient(rgba(13,16,22,.7), transparent); pointer-events: none; z-index: -1; }
.nav-brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.nav-logo { width: 30px; height: 30px; flex: none; display: block; }
.nav-sys { font: 800 18px/1 var(--sans); letter-spacing: .08em; color: var(--cream); }
.nav-tag { font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.nav-links { margin-left: auto; display: flex; gap: 22px; font-size: 13px; letter-spacing: .08em; }
.nav-links a { opacity: .6; transition: opacity .3s; }
.nav-links a.active, .nav-links a:hover { opacity: 1; }
.nav-links a.active::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--brass); margin-right: 6px; vertical-align: middle; }
.nav-sound { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.nav-cta { padding: 9px 16px; border-radius: 99px; background: var(--brass-2); color: var(--ink); font-weight: 700; font-size: 13px; letter-spacing: .04em; }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.eq i { width: 2px; background: var(--brass-2); height: 30%; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: .2s; } .eq i:nth-child(3) { animation-delay: .4s; }
.muted .eq i { animation: none; height: 20%; }
@keyframes eq { 50% { height: 100%; } }

.scroll-hint { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); font-size: 11px; letter-spacing: .2em; color: var(--muted); display: flex; align-items: center; gap: 10px; transition: opacity .5s; }
.scroll-hint .dot { width: 18px; height: 18px; border: 1px solid var(--line); border-radius: 50%; position: relative; }
.scroll-hint .dot::after { content: ""; position: absolute; left: 50%; top: 4px; width: 2px; height: 5px; background: var(--cream); transform: translateX(-50%); animation: hint 1.6s ease-in-out infinite; }
@keyframes hint { 60% { transform: translate(-50%, 6px); opacity: 0; } }
.scroll-hint.hide { opacity: 0; }
.cursor-tag { position: fixed; left: 0; top: 0; pointer-events: none; padding: 6px 12px; border-radius: 99px; background: var(--brass-2); color: var(--ink); font: 700 13px/1 var(--sans); opacity: 0; transform: translate(-50%, -50%) scale(.6); transition: opacity .2s, transform .2s; }
.cursor-tag.on { opacity: 1; transform: translate(14px, 14px) scale(1); }

/* ---------- 字母滾動 hover ---------- */
.roll .rc { display: inline-block; position: relative; overflow: hidden; vertical-align: top; }
.roll .rc > span { display: inline-block; transition: transform .45s cubic-bezier(.7, 0, .2, 1); transition-delay: calc(var(--i) * 18ms); }
.roll .rc > span::after { content: attr(data-c); position: absolute; left: 0; top: 100%; }
.roll:hover .rc > span { transform: translateY(-100%); }

/* ---------- 素材佔位 ---------- */
[data-asset] { background-size: cover; background-position: center; }
.is-ph { background: repeating-linear-gradient(135deg, rgba(243,234,219,.04) 0 12px, transparent 12px 24px), var(--ink-2); outline: 1px dashed rgba(201,163,90,.45); outline-offset: -1px; }
.is-ph::after { content: attr(data-ph); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 500 11px/1.4 var(--mono); color: var(--brass-2); background: rgba(13,16,22,.8); padding: 6px 10px; border-radius: 4px; white-space: nowrap; }
.ph, .bg, .hand, .desk-bg, .flood { position: relative; }

/* ---------- 通用小件 ---------- */
.btn-primary, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; padding: 11px 20px; border-radius: 99px; font-weight: 700; font-size: 14px; letter-spacing: .04em; transition: transform .2s, opacity .2s; }
.btn-primary { background: var(--brass-2); color: var(--ink); }
.btn-ghost { border: 1px solid var(--line); }
.btn-primary:active, .btn-ghost:active { transform: scale(.96); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chips span { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255,255,255,.03); font-size: 14px; white-space: nowrap; }
.chips span.hl { border-color: rgba(52,194,122,.6); color: #9be8bf; background: rgba(52,194,122,.08); }
.switch { position: relative; display: inline-block; width: 34px; height: 20px; border-radius: 99px; background: #3a404c; transition: background .3s; flex: none; }
.switch i { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .3s cubic-bezier(.3,1.4,.5,1); }
.switch.on { background: var(--emerald); }
.switch.on i { transform: translateX(14px); }
.switch.big { width: 52px; height: 30px; } .switch.big i { width: 24px; height: 24px; top: 3px; left: 3px; } .switch.big.on i { transform: translateX(22px); }

/* ---------- 01 開場 ---------- */
.s-hero { height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--door); }
.s-hero .bg, .door-fallback, .flood { position: absolute; inset: 0; }
.s-hero .bg.is-ph { background: transparent; outline: none; }
.s-hero .bg.is-ph::after { left: auto; right: 56px; top: auto; bottom: 22px; transform: none; }
.door-fallback { background:
    radial-gradient(120% 90% at 20% 10%, rgba(255,190,120,.18), transparent 55%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, #1f2c47, #141d31); }
.door-fallback i { position: absolute; left: 22%; right: 22%; border: 2px solid rgba(0,0,0,.25); box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); border-radius: 3px; }
.door-fallback i:nth-child(1) { top: 7%; height: 36%; }
.door-fallback i:nth-child(2) { bottom: 7%; height: 36%; }
.light-leak { position: absolute; right: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(180deg, transparent, #ffcf8a 20%, #ffb35c 80%, transparent); box-shadow: 0 0 40px 10px rgba(255,180,90,.35); opacity: .55; transition: opacity .25s, box-shadow .4s; }
.light-leak.hit { opacity: 1; box-shadow: 0 0 90px 30px rgba(255,180,90,.55); }
.flood { opacity: 0; pointer-events: none; z-index: 6; transition: opacity .9s ease; background-color: #ffcf8a; }
.flood.is-ph { background: radial-gradient(60% 80% at 60% 50%, #fff3dc, #ffc27a 45%, #8a4b1d 100%); outline: none; }
.flood.is-ph::after { display: none; }
.flood.on { opacity: 1; }
/* 首頁文字疊在 3D 門板之上；開門時淡出 */
.hero-top, .hero-stats, .knock-hint { z-index: 7 !important; transition: opacity .6s ease; }
.s-hero.opening .hero-top, .s-hero.opening .hero-stats, .s-hero.opening .knock-hint { opacity: 0; }
.hero-top { position: absolute; left: var(--gutter); top: 64px; }
.mega { font: 900 clamp(64px, 8.5vw, 128px)/.95 var(--sans); letter-spacing: -.02em; color: var(--cream); }
.hero-slogan { margin: 16px 0 0 4px; font: 800 clamp(18px, 1.9vw, 28px)/1 var(--sans); letter-spacing: .32em; color: var(--brass-2); text-shadow: 0 2px 14px rgba(40, 0, 0, .7); }

.hero-stats { position: absolute; right: calc(var(--gutter) + 34px); top: 50%; transform: translateY(-50%); display: grid; gap: 14px; z-index: 4; }
.hero-stats > div { display: grid; grid-template-columns: 150px auto; align-items: baseline; gap: 14px; padding: 10px 0 12px; border-bottom: 1px solid var(--line); }
.hero-stats b { font: 900 54px/1 var(--sans); letter-spacing: -.03em; color: var(--brass-2); text-align: right; }
.hero-stats b i { font-style: normal; font-size: 15px; font-weight: 700; color: var(--cream); margin-left: 4px; letter-spacing: 0; }
.hero-stats > div > span { font-size: 20px; font-weight: 700; }
.knock-hint { position: absolute; left: 50%; bottom: 13%; transform: translateX(-50%); display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 700; color: var(--brass-2); letter-spacing: .08em; transition: opacity .5s; }
.knock-hint.hide { opacity: 0; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--brass-2); box-shadow: 0 0 0 0 rgba(236,208,150,.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(236,208,150,0); } }
.toast { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.9); display: flex; gap: 14px; align-items: center; padding: 18px 24px; background: rgba(13,16,22,.88); border: 1px solid rgba(52,194,122,.5); border-radius: 10px; opacity: 0; pointer-events: none; transition: opacity .5s, transform .5s cubic-bezier(.2,.9,.2,1.2); }
.toast.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.toast b { display: block; font-size: 18px; }
.toast small { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.toast-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 14px var(--emerald); }

/* ---------- 02 Powered ---------- */
.s-glow { height: 220vh; background: var(--ink); }
/* 釘住時背景是一扇朱漆門的近景：門釘 + 暗角，門環就掛在上面 */
.s-glow .sticky { background:
    linear-gradient(180deg, rgba(10,6,5,.88) 0%, rgba(10,6,5,.45) 30%, rgba(10,6,5,0) 52%),
    radial-gradient(90% 75% at 50% 62%, rgba(0,0,0,0) 35%, rgba(8,4,3,.82) 100%),
    radial-gradient(circle, #fbe6ad 0 3px, #e6b95e 7px, #a8762a 11px, #4e2c0c 14px, rgba(20,5,2,.5) 16px, transparent 20px) calc(50% + 100px) calc(62% + 100px) / 200px 200px,
    repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, #86200f, #5c0f09); }
.glow-frame { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40% 35% at 50% 58%, rgba(255,190,120,.16), transparent 70%); }
/* 敲門的手：固定層，疊在 3D 畫布之上，指尖壓住門環 */
.hand-fx { position: fixed; left: 0; top: 0; z-index: 6; pointer-events: none; aspect-ratio: 1024 / 1536; background: url("../assets/hand-pinch.webp") center / contain no-repeat; transform-origin: 72.8% 10.3%; opacity: 0; will-change: transform, opacity; filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); }
.powered-head { position: absolute; left: 0; right: 0; top: 12vh; display: grid; justify-items: center; gap: 18px; text-align: center; z-index: 2; }
.powered-head .eyebrow { letter-spacing: .3em; }
.powered-title { font: 900 clamp(44px, 7vw, 108px)/1 var(--sans); letter-spacing: -.02em; text-shadow: 0 8px 40px rgba(0,0,0,.5); }
.powered-title sup { font-size: .3em; vertical-align: top; color: var(--brass-2); margin-left: 4px; }
.powered-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; }
.powered-row > span { font: 600 14px/1 var(--sans); color: var(--muted); letter-spacing: .14em; }
.strikes { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.strikes li { position: relative; padding: 8px 18px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255,255,255,.03); font: 800 clamp(16px, 1.5vw, 20px)/1 var(--sans); color: var(--cream); transition: color .5s, border-color .5s, background .5s; }
.strikes li::after { content: ""; position: absolute; left: 12px; right: 12px; top: 50%; height: 2px; background: #e5484d; transform: scaleX(var(--k, 0)); transform-origin: left; transition: transform .5s cubic-bezier(.7,0,.2,1); }
.strikes li.struck { color: var(--muted); border-color: rgba(229,72,77,.35); background: rgba(229,72,77,.06); }
.powered-foot { position: absolute; left: 0; right: 0; bottom: 22px; font-size: 12px; color: var(--muted); text-align: center; }

/* ---------- 03 大字 ---------- */
.s-big { height: 240vh; background: linear-gradient(180deg, var(--ink), #1a120c 60%, var(--ink)); }
/* 背景：點陣 + 雷達圈 + 各地敲門卡片 */
.s-big .sticky { background:
    radial-gradient(60% 55% at 50% 50%, rgba(224,123,57,.12), transparent 70%),
    radial-gradient(circle, rgba(243,234,219,.11) 1px, transparent 1.6px) 0 0 / 26px 26px; }
.pings { position: absolute; inset: 0; pointer-events: none; -webkit-mask-image: radial-gradient(120% 100% at 50% 50%, #000 60%, transparent 100%); mask-image: radial-gradient(120% 100% at 50% 50%, #000 60%, transparent 100%); }
.radar { position: absolute; left: 50%; top: 50%; }
.radar i { position: absolute; left: 0; top: 0; width: 80vmin; height: 80vmin; margin: -40vmin; border-radius: 50%; border: 1px solid rgba(233,178,90,.35); opacity: 0; animation: radar 5.4s linear infinite; }
.radar i:nth-child(2) { animation-delay: 1.8s; } .radar i:nth-child(3) { animation-delay: 3.6s; }
@keyframes radar { 0% { transform: scale(.15); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
.beams { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.beams .wire { stroke: rgba(243,234,219,.1); stroke-width: 1; stroke-dasharray: 3 6; vector-effect: non-scaling-stroke; }
.beams .shot { stroke: #ffd9a0; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 10 90; stroke-dashoffset: 10; opacity: 0; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px rgba(255,190,110,.9)); }
.beams .shot.fire { animation: shot .85s cubic-bezier(.5,0,.9,.6) forwards; }
@keyframes shot { 0% { stroke-dashoffset: 10; opacity: 1; } 90% { opacity: 1; } 100% { stroke-dashoffset: -90; opacity: 0; } }
.ping { position: absolute; left: var(--x); top: var(--y); display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(21,26,35,.72); backdrop-filter: blur(6px); white-space: nowrap; opacity: .55; transform: scale(.96); transition: opacity .4s, transform .4s, border-color .4s, box-shadow .4s; }
.ping > i { width: 8px; height: 8px; border-radius: 50%; background: rgba(243,234,219,.35); flex: none; transition: background .3s, box-shadow .3s; }
.ping b { display: block; font-size: 14px; font-weight: 700; color: var(--cream); }
.ping small { display: block; font: 500 12px/1.4 var(--mono); color: var(--muted); }
.ping em { font-style: normal; font-size: 12px; font-weight: 700; margin-left: 6px; min-width: 3.5em; }
.ping em span { display: none; }
.ping.knock, .ping.ok { opacity: 1; transform: none; }
.ping.knock { border-color: rgba(233,178,90,.6); }
.ping.knock > i { background: var(--brass-2); box-shadow: 0 0 10px var(--brass-2); animation: blink .5s infinite alternate; }
.ping.knock em .w { display: inline; color: var(--brass-2); }
.ping.ok { border-color: rgba(52,194,122,.6); box-shadow: 0 0 24px -6px rgba(52,194,122,.6); }
.ping.ok > i { background: var(--emerald); box-shadow: 0 0 10px var(--emerald); }
.ping.ok em .g { display: inline; color: #9be8bf; }
@keyframes blink { to { opacity: .3; } }
.big-kicker { position: absolute; left: var(--gutter); top: 38vh; font-size: 13px; font-weight: 700; letter-spacing: .12em; }
.big-line { position: absolute; top: 50%; left: 0; transform: translate(var(--x, 0px), -50%); white-space: nowrap; font: 900 clamp(110px, 21vw, 340px)/1 var(--sans); letter-spacing: -.04em; padding-left: var(--gutter); }
.bbox { position: absolute; left: 50%; top: 50%; width: min(48vh, 70vw); height: min(48vh, 70vw); transform: translate(-50%, -50%); border: 1px solid rgba(243,234,219,.22); pointer-events: none; }
.bbox i { position: absolute; width: 7px; height: 7px; border: 1px solid var(--cream); background: var(--ink); }
.bbox i:nth-child(1) { left: -4px; top: -4px; } .bbox i:nth-child(2) { right: -4px; top: -4px; }
.bbox i:nth-child(3) { left: -4px; bottom: -4px; } .bbox i:nth-child(4) { right: -4px; bottom: -4px; }
.bbox::before { content: ""; position: absolute; inset: 12%; border: 1px solid rgba(243,234,219,.12); border-radius: 50%; }
.bbox-dot { position: absolute; right: 6%; top: 6%; width: 6px; height: 6px; border-radius: 50%; background: var(--cream); }

/* ---------- 04 畫廊 ---------- */
.s-gallery { height: 340vh; background: linear-gradient(180deg, var(--ink), #1d130c); }
.gallery-head { position: absolute; left: var(--gutter); top: 16vh; max-width: 300px; z-index: 2; }
.gallery-head h3 { margin-top: 12px; font-size: clamp(30px, 3.2vw, 48px); line-height: 1.12; letter-spacing: -.02em; }
.track { position: absolute; top: 50%; left: 0; display: flex; gap: 22px; padding-left: max(360px, 34vw); transform: translate(var(--tx, 0px), -50%); will-change: transform; }
.card { flex: none; width: min(54vh, 78vw); }
.card .ph { aspect-ratio: 4/5; border-radius: 6px; overflow: hidden; transform: scale(var(--s, .82)); transition: transform .2s linear; filter: saturate(var(--sat, .6)); }
.card figcaption { margin-top: 12px; display: flex; gap: 10px; align-items: baseline; font-size: 13px; color: var(--muted); }
.card figcaption b { font-size: 20px; color: var(--cream); }

/* ---------- 05 原理 ---------- */
.s-how { height: 420vh; background:
    linear-gradient(rgba(224,123,57,.06) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(224,123,57,.06) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(70% 60% at 50% 50%, #1e1410, var(--ink)); }
.how-head { position: absolute; left: var(--gutter); top: 12vh; }
.how-head h3 { margin-top: 12px; font-size: clamp(36px, 4.4vw, 64px); line-height: 1.05; letter-spacing: -.03em; }
.flow { position: absolute; right: var(--gutter); top: 11vh; width: min(820px, 58vw); overflow: visible; }
.flow-base { stroke: rgba(243,234,219,.14); stroke-width: 2; fill: none; stroke-dasharray: 4 8; }
.flow-draw { stroke: var(--ember); stroke-width: 2.5; fill: none; stroke-dasharray: 800; stroke-dashoffset: var(--off, 800); filter: drop-shadow(0 0 6px rgba(224,123,57,.7)); }
.node circle { fill: var(--ink); stroke: rgba(243,234,219,.3); stroke-width: 1.5; transition: stroke .4s, fill .4s; }
.node .ico { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.node text { fill: var(--muted); font: 600 16px var(--sans); text-anchor: middle; transition: fill .4s; }
.node.on circle { stroke: var(--ember); fill: #2a160c; }
.node.on .ico { stroke: var(--brass-2); }
.node.on text { fill: var(--cream); }
.node:last-of-type.on circle { stroke: var(--emerald); fill: #0e2a1c; }
.node:last-of-type.on .ico { stroke: var(--emerald); }
.how-body { position: absolute; left: var(--gutter); right: var(--gutter); top: 36vh; bottom: 8vh; display: grid; grid-template-columns: minmax(280px, .85fr) 1.15fr; gap: 5vw; align-items: center; max-width: 1280px; margin: 0 auto; }
.steps { position: relative; height: 230px; }
.step { position: absolute; inset: 0; opacity: 0; transform: translateY(14px); transition: opacity .45s, transform .45s; }
.step.on { opacity: 1; transform: none; }
.step b { display: block; font-size: clamp(34px, 3.4vw, 52px); font-weight: 900; letter-spacing: -.02em; margin-bottom: 12px; }
.step b em { font: 500 14px var(--mono); color: var(--ember); vertical-align: super; margin-right: 8px; font-style: normal; }
.step p { font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); max-width: 26em; margin-bottom: 18px; }
.step .chips { justify-content: flex-start; }

/* 每一步的具體畫面 */
.scenes { position: relative; height: min(50vh, 420px); }
.scene { position: absolute; inset: 0; border-radius: 14px; background: linear-gradient(180deg, #171c26, #10141b); border: 1px solid var(--line); box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(0,0,0,.4); overflow: hidden; opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .5s, transform .6s cubic-bezier(.2,.8,.2,1); }
.scene.on { opacity: 1; transform: none; }
.sc-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); font: 600 13px var(--sans); color: var(--muted); }
.sc-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(243,234,219,.16); }
.sc-bar span { margin-left: 10px; }
.sc-pad { padding: 28px; display: grid; gap: 26px; }
.mono { font-family: var(--mono); }
.ok { color: var(--emerald); }
.warn { color: var(--brass-2); }
/* 01 */
.knock-btn { position: relative; justify-self: center; width: min(340px, 80%); padding: 22px 0; border-radius: 12px; text-align: center; font: 900 26px/1 var(--sans); letter-spacing: .1em; color: #1b0f06; background: linear-gradient(180deg, #f0c877, #c9953f); box-shadow: 0 10px 30px -8px rgba(233,178,90,.6); }
.knock-btn .rip { position: absolute; left: 62%; top: 62%; width: 14px; height: 14px; margin: -7px; border-radius: 50%; border: 2px solid #fff; opacity: 0; }
.scene.on .knock-btn .rip { animation: rip 1.6s ease-out infinite; }
.scene.on .knock-btn .r2 { animation-delay: .22s; }
@keyframes rip { 0% { opacity: .9; transform: scale(.4); } 60%, 100% { opacity: 0; transform: scale(4); } }
.knock-btn .ptr { position: absolute; left: 62%; top: 62%; width: 26px; fill: #fff; stroke: #111; stroke-width: 1.2; }
.kv { display: grid; gap: 0; border-top: 1px solid var(--line); }
.kv div { display: flex; justify-content: space-between; padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: 15px; }
.kv dt { color: var(--muted); }
/* 02 */
.log { margin: 0; padding: 22px 26px; display: grid; gap: 10px; font: 500 clamp(13px, 1.1vw, 16px)/1.3 var(--mono); color: var(--cream); white-space: pre; }
.log span { opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .3s; }
.log b { font-weight: 600; }
.scene.on .log span { opacity: 1; transform: none; }
.scene.on .log span:nth-child(2) { transition-delay: .15s; } .scene.on .log span:nth-child(3) { transition-delay: .3s; }
.scene.on .log span:nth-child(4) { transition-delay: .5s; } .scene.on .log span:nth-child(5) { transition-delay: .7s; }
.scene.on .log span:nth-child(6) { transition-delay: .85s; } .scene.on .log span:nth-child(7) { transition-delay: 1.05s; }
/* 03 */
.sc-pull { display: grid; grid-template-columns: 1fr 1.4fr 1fr; grid-template-rows: 1fr auto; align-items: center; gap: 0 14px; padding: 26px; }
.pull-box { display: grid; gap: 6px; justify-items: center; padding: 22px 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); text-align: center; }
.pull-box small { color: var(--muted); font-size: 12px; letter-spacing: .1em; }
.pull-box b { font-size: 20px; }
.pull-box .q { font: 500 12px var(--mono); color: var(--brass-2); }
.pull-box.lan { border-color: rgba(52,194,122,.45); }
.pull-mid { display: grid; gap: 26px; }
.lane { position: relative; height: 34px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; }
.lane em { font-style: normal; color: var(--muted); background: #141922; padding: 0 8px; position: relative; z-index: 1; }
.lane.out::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed rgba(52,194,122,.6); }
.lane.out::after { content: ""; position: absolute; left: -2px; top: 50%; margin-top: -6px; border: 6px solid transparent; border-right: 9px solid rgba(52,194,122,.8); border-left: 0; }
.lane .pkt { position: absolute; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 12px var(--emerald); right: 0; }
.scene.on .lane .pkt { animation: pkt 1.8s ease-in-out infinite; }
@keyframes pkt { 0% { right: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { right: calc(100% - 10px); opacity: 0; } }
.lane.in { border: 1px dashed rgba(229,72,77,.5); border-radius: 8px; }
.lane.in em { background: transparent; text-decoration: line-through; text-decoration-color: #e5484d; }
.lane.in b { font: 800 20px var(--mono); color: #e5484d; }
.pull-note { grid-column: 1 / -1; text-align: center; margin-top: 22px; color: var(--muted); font-size: 15px; }
.pull-note b { color: var(--cream); }
/* 04 */
.fw-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.fw-table th { text-align: left; font-weight: 600; font-size: 12px; letter-spacing: .08em; color: var(--muted); padding: 14px 22px 10px; }
.fw-table td { padding: 14px 22px; border-top: 1px solid var(--line); }
.fw-table tr.new td { background: rgba(52,194,122,.1); color: #bff0d5; }
.scene.on .fw-table tr.new { animation: rowIn .7s .35s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rowIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.fw-foot { padding: 16px 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: flex; gap: 12px; }
/* 05 */
.done-pad { justify-items: center; gap: 22px; }
.ring { position: relative; width: 150px; height: 150px; display: grid; place-items: center; text-align: center; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: rgba(243,234,219,.1); stroke-width: 6; }
.ring .arc { stroke: var(--emerald); stroke-linecap: round; stroke-dasharray: 276.5; stroke-dashoffset: 276.5; filter: drop-shadow(0 0 6px rgba(52,194,122,.6)); }
.scene.on .ring .arc { animation: arc 1.2s .2s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes arc { to { stroke-dashoffset: 2; } }
.ring b { display: block; font-size: 24px; color: #bff0d5; }
.ring small { color: var(--muted); font-size: 13px; }
.apps { display: flex; gap: 10px; }
.apps span { padding: 8px 16px; border-radius: 8px; border: 1px solid rgba(52,194,122,.4); background: rgba(52,194,122,.08); font-weight: 700; font-size: 14px; }
.done-note { color: var(--muted); font-size: 14px; }

/* ---------- 06 三端聯動 ---------- */
.s-live { padding: 16vh var(--gutter) 14vh; background: linear-gradient(180deg, var(--ink), #10151f 40%, var(--ink)); }
.live-head { text-align: center; margin-bottom: 56px; }
.live-head h3 { font-size: clamp(36px, 5vw, 72px); letter-spacing: -.03em; line-height: 1.1; margin: 14px 0 10px; }
.live-tip { color: var(--muted); }
.live-tip b { color: var(--brass-2); }
.live-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(300px, 400px) 90px 1fr; grid-template-areas: "client w1 cloud" ". . w2" "console console console"; row-gap: 0; }
.c-client { grid-area: client; } .c-cloud { grid-area: cloud; } .c-console { grid-area: console; }
.w1 { grid-area: w1; } .w2 { grid-area: w2; }
.live-label { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 12px; }
.live-label span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--brass-2); color: var(--ink); font-size: 14px; }
.wire { position: relative; display: grid; place-items: center; }
.wire::before { content: ""; position: absolute; background: repeating-linear-gradient(90deg, rgba(243,234,219,.25) 0 6px, transparent 6px 12px); }
.w1::before { left: 0; right: 0; top: calc(50% + 18px); height: 2px; }
.w2 { height: 90px; justify-self: start; margin-left: 40px; }
.w2::before { top: 0; bottom: 0; left: 0; width: 2px; background: repeating-linear-gradient(180deg, rgba(243,234,219,.25) 0 6px, transparent 6px 12px); }
.wire span { position: relative; font: 500 11px/1.3 var(--mono); color: var(--muted); background: var(--ink); padding: 3px 6px; border-radius: 4px; text-align: center; transition: color .3s, box-shadow .3s; }
.w1 span { margin-top: 36px; }
.w2 span { margin-left: 16px; justify-self: start; white-space: nowrap; }
.wire.on::before { background: repeating-linear-gradient(90deg, var(--emerald) 0 6px, transparent 6px 12px); background-size: 24px 2px; animation: flowx .5s linear infinite; }
.w2.on::before { background: repeating-linear-gradient(180deg, var(--emerald) 0 6px, transparent 6px 12px); background-size: 2px 24px; animation: flowy .5s linear infinite; }
.wire.on span { color: #9be8bf; box-shadow: 0 0 0 1px rgba(52,194,122,.6); }
@keyframes flowx { to { background-position: 24px 0; } }
@keyframes flowy { to { background-position: 0 24px; } }

/* 客戶端窗口（淺色，復刻 Win32 客戶端） */
.win { position: relative; background: #f5f6f8; color: #1d2330; border-radius: 10px; box-shadow: 0 40px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.05); overflow: hidden; font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; }
.win-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #e9ebef; font-size: 13px; }
.win-ctrl { display: flex; gap: 14px; } .win-ctrl i { width: 10px; height: 1.5px; background: #555; display: block; }
.win-body { padding: 20px 22px 16px; }
.win-status { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; min-height: 30px; }
.led { width: 10px; height: 10px; border-radius: 50%; background: #b8bec9; flex: none; transition: background .3s, box-shadow .3s; }
.led.busy { background: #e8a23a; animation: blink .8s infinite; }
.led.ok { background: var(--emerald); box-shadow: 0 0 10px var(--emerald); }
@keyframes blink { 50% { opacity: .35; } }
.win-rows { margin: 14px 0; display: grid; gap: 6px; font-size: 14px; }
.win-rows div { display: grid; grid-template-columns: 90px 1fr; }
.win-rows dt { color: #6b7385; }
.win-rows dd { font-family: var(--mono); font-size: 13px; }
.win-progress { height: 4px; background: #e2e5ea; border-radius: 2px; overflow: hidden; }
.win-progress i { display: block; height: 100%; width: 0; background: #3b82f6; transition: width .3s linear; }
.win-actions { display: flex; gap: 10px; margin-top: 16px; }
.win .btn-primary { background: #1d2330; color: #fff; }
.win .btn-ghost { color: #1d2330; border-color: #c9ced8; }
.win-hint { min-height: 22px; margin-top: 8px; font-size: 13px; color: #c2621f; }
.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.win-actions .btn-primary { animation: nudge 2.4s ease-in-out infinite; }
.win.used .win-actions .btn-primary { animation: none; }
@keyframes nudge { 0%, 70%, 100% { box-shadow: 0 0 0 0 rgba(236,208,150,0); } 80% { box-shadow: 0 0 0 6px rgba(236,208,150,.55); } }

/* 雲端終端 */
.term { background: #0a0c10; border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #151922; font: 12px var(--mono); color: #8b95a7; }
.term-bar i, .browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a404c; }
.term-bar i:nth-child(1), .browser-bar i:nth-child(1) { background: #ff5f57; } .term-bar i:nth-child(2), .browser-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3), .browser-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 8px; }
.term-body { height: 258px; overflow: hidden; padding: 12px 16px; font: 12.5px/1.75 var(--mono); color: #b7c3d6; display: flex; flex-direction: column; justify-content: flex-end; }
.term-body p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: tin .3s ease; }
.term-body .dim { color: #6b778a; }
.term-body .ok { color: #5ee29a; font-weight: 500; }
.term-body .k { color: #f0c36b; }
.term-body .t { color: #6b778a; margin-right: 8px; }
@keyframes tin { from { opacity: 0; transform: translateY(6px); } }

/* 內網控制台（復刻 IPWL 管理后台） */
.browser { background: #f4f5f7; color: #101828; border-radius: 10px; overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.06); font: 13px/1.5 system-ui, "Microsoft YaHei", "Noto Sans SC", sans-serif; }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 9px 14px; background: #e3e6eb; }
.browser-bar .url { margin-left: 12px; flex: 1; max-width: 420px; background: #fff; border-radius: 6px; padding: 3px 10px; font: 12px var(--mono); color: #475467; }
.cons { display: grid; grid-template-columns: 190px 1fr; min-height: 330px; }
.cons-side { background: #101828; color: #b9c2d0; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; }
.cons-brand { display: flex; gap: 8px; align-items: center; padding: 4px 6px 10px; color: #fff; }
.cons-brand b { display: block; font-size: 13px; }
.cons-brand small { display: block; font-size: 10.5px; color: #6b7a90; }
.cons-logo { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: linear-gradient(135deg, #3987e5, #1c5cab); color: #fff; font-size: 13px; flex: none; }
.cons-sec { font-size: 10.5px; color: #6b7a90; padding: 10px 8px 3px; letter-spacing: .06em; }
.cons-side a { padding: 6px 8px; border-radius: 6px; display: flex; justify-content: space-between; }
.cons-side a.on { background: #22314a; color: #fff; }
.cons-side a em { font-style: normal; font-size: 10.5px; min-width: 18px; height: 18px; border-radius: 9px; background: #e5484d; color: #fff; display: grid; place-items: center; padding: 0 5px; }
.cons-main { padding: 14px 16px; min-width: 0; }
.cons-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cons-top b { font-size: 16px; }
.pill-ok { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 10px; border-radius: 99px; background: #fff; border: 1px solid #e3e6eb; color: #475467; }
.pill-ok i { width: 7px; height: 7px; border-radius: 50%; background: #0ca30c; box-shadow: 0 0 0 3px #e6f5e6; }
.cons-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.cons-stats > div { background: #fff; border: 1px solid #e3e6eb; border-radius: 8px; padding: 10px 12px; }
.cons-stats small { display: block; color: #475467; font-size: 12px; }
.cons-stats b { font-size: 22px; letter-spacing: -.02em; transition: color .3s; }
.cons-stats b.bump { color: #0ca30c; }
.cons-stats .fw { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 8px; }
.cons-stats .fw small { grid-column: 1 / -1; }
.cons-stats .fw b { font-size: 11px; font-weight: 500; font-family: var(--mono); color: #475467; letter-spacing: 0; }
.cons-tbl { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e3e6eb; border-radius: 8px; overflow: hidden; font-variant-numeric: tabular-nums; }
.cons-tbl th { text-align: left; font-size: 11.5px; color: #7a8494; font-weight: 600; padding: 8px 12px; background: #f8f9fb; border-bottom: 1px solid #e3e6eb; }
.cons-tbl td { padding: 8px 12px; border-bottom: 1px solid #eef0f4; vertical-align: middle; }
.cons-tbl td small { display: block; color: #7a8494; font-size: 11px; }
.cons-tbl td.mono { font-weight: 600; font-size: 12.5px; }
.cons-tbl tr.new { animation: rowin 1.6s ease; }
@keyframes rowin { 0% { background: #d9f3e2; opacity: 0; } 20% { opacity: 1; } 100% { background: #fff; } }
.ttl { height: 5px; border-radius: 3px; background: #eef0f4; overflow: hidden; width: 110px; margin-bottom: 3px; }
.ttl i { display: block; height: 100%; background: #2a78d6; }
.ttl.low i { background: #fab219; }
.bdg { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 10px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.bdg::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.bdg.ok { background: #e6f5e6; color: #0b6b0b; } .bdg.warn { background: #fff3d6; color: #85570a; } .bdg.info { background: #e8f1fc; color: #1c5cab; }
.btnx { display: inline-block; padding: 3px 10px; border-radius: 6px; background: #2a78d6; color: #fff; font-size: 11.5px; margin-right: 6px; }
.btnx.ghost { background: #fff; color: #475467; border: 1px solid #cfd4dc; }

/* ---------- 07 書桌 ---------- */
.s-desk { height: 320vh; background: #20180f; }
.pose-mark { position: absolute; left: 0; width: 1px; pointer-events: none; }
.pose-mark.m1 { top: 0; height: 130vh; }
.pose-mark.m2 { top: 190vh; height: 130vh; }
.desk-bg { position: absolute; inset: 0; }
.desk-bg.is-ph { outline-offset: -24px; }
.desk-bg.a.is-ph { background: linear-gradient(180deg, #c9c6bd 0 48%, #6a4527 48% 100%); }
.desk-bg.b { opacity: var(--top, 0); }
.desk-bg.b.is-ph { background: radial-gradient(40% 50% at 50% 50%, #1f5a44, #17402f 70%), #6a4527; }
.desk-bg.b.is-ph::after { top: 18%; }
/* 標題直接壓在照片上：左側一層柔和暗角托住文字，不再用方塊 */
.s-desk .sticky::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; background:
    linear-gradient(100deg, rgba(12,8,5,.82) 0%, rgba(12,8,5,.5) 24%, rgba(12,8,5,0) 46%),
    linear-gradient(180deg, rgba(12,8,5,.45) 0%, rgba(12,8,5,0) 30%); }
.desk-copy { position: absolute; left: var(--gutter); top: 14vh; z-index: 2; }
.desk-copy h3 { font-size: clamp(34px, 3.8vw, 56px); line-height: 1.1; margin-top: 12px; letter-spacing: -.02em; text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.feats { z-index: 2; }
.feats { list-style: none; position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); width: min(380px, 90vw); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feats li { padding: 16px; background: rgba(13,16,22,.72); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 8px; opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .5s; }
.feats li.on { opacity: 1; transform: none; }
.feats b { display: block; font: 900 30px/1.1 var(--sans); letter-spacing: -.02em; color: var(--brass-2); }
.feats b small { font-size: 13px; margin-left: 2px; color: var(--cream); }
.feats span { font-size: 13px; color: var(--cream); opacity: .85; }

/* ---------- 08 自動化 ---------- */
.s-auto { padding: 18vh var(--gutter) 12vh; background: var(--ink); }
.auto-head { text-align: center; margin-bottom: 64px; }
.auto-head h3 { margin-top: 14px; font-size: clamp(38px, 5.4vw, 84px); line-height: 1.05; letter-spacing: -.035em; }
.auto-head h3 span { color: var(--brass-2); }
.s-auto h4 { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.15; letter-spacing: -.02em; }

.expo { max-width: 1100px; margin: 0 auto 90px; display: grid; gap: 18px; }
.expo-row { display: grid; grid-template-columns: 180px 1fr 190px; gap: 20px; align-items: center; }
.expo-name b { display: block; font-size: 20px; }
.expo-name small, .expo-val small { color: var(--muted); font-size: 12.5px; }
.expo-bar { position: relative; height: 44px; border-radius: 8px; background: repeating-linear-gradient(90deg, rgba(243,234,219,.05) 0 1px, transparent 1px calc(100% / 24)), var(--ink-2); overflow: hidden; }
.expo-bar i { position: absolute; top: 6px; bottom: 6px; border-radius: 5px; transform: scaleX(0); transform-origin: left; transition: transform 1.4s cubic-bezier(.7,0,.2,1); }
.expo.in .expo-bar i { transform: scaleX(1); }
.expo-row.bad i { background: repeating-linear-gradient(135deg, rgba(229,72,77,.95) 0 8px, rgba(229,72,77,.7) 8px 16px); box-shadow: 0 0 24px rgba(229,72,77,.4); }
.expo-row.good i { background: var(--emerald); box-shadow: 0 0 20px rgba(52,194,122,.45); }
.expo-row.good i:nth-child(2) { transition-delay: .3s; } .expo-row.good i:nth-child(3) { transition-delay: .6s; }
.expo-val b { display: block; font: 900 34px/1 var(--sans); letter-spacing: -.02em; }
.expo-row.bad .expo-val b { color: var(--red); } .expo-row.good .expo-val b { color: var(--emerald); }
.expo-val b small { font-size: 14px; color: inherit; }
.expo-axis { display: flex; justify-content: space-between; margin: 0 210px 0 200px; font: 11px var(--mono); color: var(--muted); }

.fwbox { max-width: 1100px; margin: 0 auto 110px; display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; }
.fw-points { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.fw-points li { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; }
.fw-points i { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--ink-3); font-style: normal; font-size: 18px; color: var(--brass-2); }
.fw-points b { font-size: 17px; }
.fw-points span { font-size: 13px; color: var(--muted); }
.fw-panel { background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.fw-panel-top { display: flex; gap: 14px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.fw-panel-top b { display: block; font: 500 14px var(--mono); }
.fw-panel-top small { color: var(--muted); font-size: 12.5px; }
.fw-members { list-style: none; padding: 12px 0; display: grid; gap: 6px; min-height: 180px; align-content: start; }
.fw-members li { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 8px; background: var(--ink-3); font-size: 13px; transition: opacity .5s, transform .5s, background .5s; }
.fw-members li em { font-style: normal; font: 12px var(--mono); color: var(--muted); }
.fw-members li.add { animation: memin .8s ease; background: rgba(52,194,122,.14); }
.fw-members li.del { opacity: 0; transform: translateX(30px); background: rgba(229,72,77,.18); }
@keyframes memin { from { opacity: 0; transform: translateY(-8px); } }
.fw-log { list-style: none; border-top: 1px solid var(--line); padding-top: 10px; font: 12px/1.8 var(--mono); color: var(--muted); height: 92px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.fw-log b { font-weight: 500; } .fw-log .a { color: #5ee29a; } .fw-log .r { color: #ff8a8a; } .fw-log .c { color: #8fb7ff; }

.shots-head, .vendors-head { max-width: 1240px; margin: 0 auto 22px; display: flex; align-items: baseline; gap: 16px; }
.shots-head span, .vendors-head span { color: var(--muted); font-size: 14px; }
.shots { max-width: 1240px; margin: 0 auto 110px; display: grid; grid-template-columns: 1.15fr 1.15fr .8fr; gap: 22px; align-items: start; perspective: 1600px; }
.shot { position: relative; transition: transform .6s cubic-bezier(.2,.8,.2,1); transform: rotateY(var(--ry, 0deg)) translateY(var(--ty, 0)); }
.shot:nth-child(1) { --ry: 8deg; } .shot:nth-child(3) { --ry: -8deg; --ty: 30px; }
.shot:hover { --ry: 0deg; transform: rotateY(0) translateY(-6px) scale(1.02); }
.shot figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); }
.shot.has-shot { aspect-ratio: 16/10; background-size: cover; background-position: top center; border-radius: 10px; }
.shot.has-shot > :not(figcaption) { visibility: hidden; }
.browser.mini .cons { grid-template-columns: 112px 1fr; min-height: 250px; }
.browser.mini .cons-side { font-size: 11.5px; padding: 12px 8px; }
/* 縮小版後台：不許換行，表格三欄擠在一行內 */
.browser.mini .cons-brand { gap: 6px; padding: 2px 4px 10px; }
.browser.mini .cons-brand b { font-size: 11.5px; white-space: nowrap; }
.browser.mini .cons-logo { width: 22px; height: 22px; font-size: 11px; border-radius: 6px; }
.browser.mini .cons-side a { white-space: nowrap; padding: 6px 6px; }
.browser.mini .cons-main { padding: 12px; }
.browser.mini .cons-top b { font-size: 14px; }
.browser.mini .cons-tbl td { padding: 9px 8px; font-size: 12px; white-space: nowrap; }
.browser.mini .cons-tbl td.mono { font-size: 11.5px; }
.browser.mini .cons-tbl td small { font-size: 10.5px; }
.browser.mini .cons-tbl td:last-child { text-align: right; }
.browser.mini .btnx { padding: 3px 8px; margin: 0 0 0 4px; font-size: 11px; }
@media (max-width: 1240px) and (min-width: 861px) {
  .shots { grid-template-columns: 1fr 1fr; }
  .shot:nth-child(3) { grid-column: 1 / -1; justify-self: center; width: min(420px, 100%); --ty: 0; }
}
.browser.mini .cons-stats { grid-template-columns: 1fr 1fr; }
.browser.mini .cons-brand small { display: none; }
.cons-chart { display: flex; align-items: flex-end; gap: 5px; height: 90px; padding: 10px; background: #fff; border: 1px solid #e3e6eb; border-radius: 8px; }
.cons-chart i { flex: 1; height: var(--h); background: linear-gradient(#2a78d6, #6aa6ef); border-radius: 3px 3px 0 0; }

.vendors { max-width: 1240px; margin: 0 auto; }
.marquee { overflow: hidden; padding: 6px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee + .marquee { margin-top: 26px; }
.marquee-track { display: flex; gap: 64px; width: max-content; padding-right: 64px; animation: mq 40s linear infinite; }
.marquee.rev .marquee-track { animation-direction: reverse; animation-duration: 46s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }
/* 無外框：直接是一排品牌字標，平時半透明，懸停點亮 */
.logo { flex: none; display: grid; grid-template-columns: auto auto; justify-content: center; align-content: center; align-items: center; column-gap: 10px; row-gap: 5px; padding: 8px 0; opacity: .55; transition: opacity .3s, transform .3s; }
.logo:hover { opacity: 1; transform: translateY(-2px); }
.logo em { grid-row: 1; font: 800 21px/1 var(--sans); font-style: normal; letter-spacing: .02em; }
.logo small { grid-column: 1 / -1; text-align: center; font-size: 11.5px; color: var(--muted); }
/* 有 logo 時：圖標 + 品牌名同一行（Simple Icons 是圖形標，不含字，所以名字保留） */
.logo img { grid-row: 1; width: 32px; height: 32px; display: none; }
.logo.has-logo img { display: block; }
.vendors-foot { margin-top: 18px; text-align: center; font-size: 12px; color: var(--muted); }

/* ---------- 09 結尾 ---------- */
.s-outro { min-height: 100vh; padding: 20vh var(--gutter) 30px; display: flex; flex-direction: column; align-items: center; text-align: center; background: radial-gradient(60% 50% at 50% 40%, #2a1a10, var(--ink)); }
.outro-line { font: 800 clamp(26px, 3.6vw, 52px)/1.25 var(--sans); letter-spacing: -.02em; max-width: 900px; }
.outro-cta { display: flex; gap: 12px; margin-top: 34px; position: relative; z-index: 10; }
.outro-word { margin-top: auto; padding-top: 30vh; font: 900 clamp(90px, 24vw, 380px)/.95 var(--sans); letter-spacing: -.02em; color: var(--brass); opacity: .9; cursor: default; }
.outro-legal { margin-top: 24px; font-size: 11px; color: var(--muted); letter-spacing: .08em; }

/* ---------- 咨詢頁 ---------- */
.s-contact { min-height: 100vh; display: grid; grid-template-columns: 1fr minmax(360px, 560px); gap: 5vw; padding: 120px var(--gutter) 60px; align-items: center; background: radial-gradient(70% 70% at 25% 50%, #23324f, var(--door) 45%, var(--ink)); position: relative; overflow: hidden; }
.contact-copy { align-self: start; padding-top: 4vh; position: relative; z-index: 7; }
.contact-copy h1, .mega { text-shadow: 0 6px 40px rgba(40, 0, 0, .55); }
.contact-copy h1 { font: 900 clamp(48px, 7vw, 112px)/.95 var(--sans); letter-spacing: -.045em; margin: 14px 0 18px; }
.contact-copy h1 span { color: var(--brass-2); }
.contact-copy .chips { justify-content: flex-start; margin-top: 18px; }
.contact-copy .knock-hint { position: static; transform: none; margin-top: 46vh; }
.form { position: relative; z-index: 10; background: rgba(13,16,22,.78); backdrop-filter: blur(18px); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: grid; gap: 16px; }
.form h2 { font-size: 22px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; }
.field > label, .field > .lbl { font-size: 13px; font-weight: 700; color: var(--cream); }
.field > label em, .field > .lbl em { color: var(--ember); font-style: normal; margin-left: 2px; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--cream); font: inherit; font-size: 15px; transition: border-color .2s, background .2s; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brass-2); background: rgba(255,255,255,.07); }
.field.err input, .field.err textarea { border-color: var(--red); }
.field .msg { font-size: 12px; color: #ff8a8a; min-height: 0; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick button { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); font-size: 13.5px; color: var(--muted); transition: all .2s; }
.pick button:hover { color: var(--cream); border-color: rgba(243,234,219,.35); }
.pick button.on { background: var(--brass-2); color: var(--ink); border-color: var(--brass-2); font-weight: 700; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; }
.consent input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--brass-2); }
.consent.err { color: #ff8a8a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .submit { width: 100%; padding: 15px; font-size: 16px; }
.form .submit[disabled] { opacity: .6; pointer-events: none; }
.form-err { font-size: 13px; color: #ff8a8a; text-align: center; min-height: 18px; }
.done { position: absolute; inset: 0; z-index: 11; display: grid; place-content: center; text-align: center; gap: 10px; padding: 28px; border-radius: 16px; background: rgba(13,16,22,.94); opacity: 0; pointer-events: none; transition: opacity .6s; }
.done.on { opacity: 1; pointer-events: auto; }
.done .big-ok { width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; background: rgba(52,194,122,.15); color: var(--emerald); font-size: 30px; box-shadow: 0 0 0 1px rgba(52,194,122,.5); }
.done h2 { font-size: 28px; }
.done .ref { font: 600 18px var(--mono); color: var(--brass-2); }
.done p { color: var(--muted); }

/* ---------- 進場 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 手機 ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-sys { font-size: 13px; letter-spacing: .02em; }
  .nav-sound { margin-left: auto; }
  .nav-sound-label { display: none; }
  .nav-cta { padding: 8px 12px; font-size: 12px; }
  .hero-top { top: 70px; }
  .hero-stats { left: var(--gutter); right: var(--gutter); top: auto; bottom: 150px; transform: none; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero-stats > div { grid-template-columns: 1fr; gap: 2px; text-align: center; border: 1px solid var(--line); border-radius: 8px; padding: 10px 4px; background: rgba(13,16,22,.5); }
  .hero-stats b { font-size: 30px; text-align: center; }
  .hero-stats b i { font-size: 12px; }
  .hero-stats > div > span { font-size: 13px; }
  .knock-hint { bottom: 26px; }
  .s-hero .bg.is-ph::after { display: none; }
  .powered-head { top: 11vh; padding: 0 var(--gutter); }
  .strikes li { padding: 6px 12px; font-size: 14px; }
  .powered-foot { left: var(--gutter); right: var(--gutter); }
  .big-line { font-size: 30vw; }
  .ping { left: var(--mx); top: var(--my); padding: 8px 10px; gap: 8px; }
  .ping b { font-size: 12px; } .ping small { font-size: 10.5px; } .ping em { font-size: 11px; margin-left: 2px; }
  .ping[style*="--mx:-1%"] { display: none; }
  .gallery-head { top: 12vh; right: var(--gutter); max-width: none; }
  .track { padding-left: var(--gutter); top: 60%; }
  .how-head { top: 9vh; }
  .how-head h3 { font-size: 34px; }
  .flow { left: var(--gutter); right: var(--gutter); top: 25vh; width: auto; }
  .how-body { top: 37vh; bottom: 4vh; grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 16px; align-items: start; }
  .steps { height: 128px; }
  .step b { font-size: 28px; margin-bottom: 6px; }
  .step p { font-size: 14px; margin-bottom: 0; }
  .step .chips { display: none; }
  .scenes { height: 100%; max-height: 360px; }
  .sc-pad { padding: 18px; gap: 16px; }
  .knock-btn { font-size: 20px; padding: 16px 0; }
  .kv div { font-size: 13px; padding: 9px 2px; }
  .log { padding: 16px; gap: 7px; font-size: 12px; }
  .sc-pull { padding: 16px; gap: 0 8px; }
  .pull-box b { font-size: 15px; }
  .lane em { font-size: 11px; padding: 0 4px; }
  .fw-table { font-size: 12.5px; }
  .fw-table th, .fw-table td { padding: 10px 12px; }
  .ring { width: 110px; height: 110px; }
  .node text { font-size: 22px; }
  .live-grid { grid-template-columns: 1fr; grid-template-areas: "client" "w1" "cloud" "w2" "console"; }
  .w1, .w2 { height: 70px; justify-self: center; margin: 0; }
  .w1::before { left: 50%; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: repeating-linear-gradient(180deg, rgba(243,234,219,.25) 0 6px, transparent 6px 12px); }
  .w1.on::before { background: repeating-linear-gradient(180deg, var(--emerald) 0 6px, transparent 6px 12px); background-size: 2px 24px; animation: flowy .5s linear infinite; }
  .w1 span { margin-top: 0; } .w2 span { margin-left: 0; }
  .w2::before { left: 50%; }
  .cons { grid-template-columns: 1fr; }
  .cons-side { display: none; }
  .cons-stats { grid-template-columns: 1fr 1fr; }
  .cons-tbl th:nth-child(3), .cons-tbl td:nth-child(3) { display: none; }
  .feats { top: auto; bottom: 4vh; transform: none; left: var(--gutter); right: var(--gutter); width: auto; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .feats li { padding: 10px; }
  .feats b { font-size: 20px; }
  .feats span { font-size: 11px; }
  .expo-row { grid-template-columns: 1fr auto; grid-template-areas: "name val" "bar bar"; gap: 8px; }
  .expo-name { grid-area: name; } .expo-val { grid-area: val; text-align: right; } .expo-bar { grid-area: bar; }
  .expo-axis { margin: 0; }
  .fwbox { grid-template-columns: 1fr; gap: 28px; }
  .shots { grid-template-columns: 1fr; }
  .shot { --ry: 0deg !important; --ty: 0 !important; }
  .marquee-track { gap: 40px; padding-right: 40px; }
  .logo em { font-size: 17px; }
  .s-contact { grid-template-columns: 1fr; padding-top: 100px; }
  .contact-copy .knock-hint { margin-top: 30vh; justify-content: center; }
  .form .row2 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
