/* =====================================================================
   YuMo 羽墨 — 作品集樣式
   字體與字級參考 Apple（SF Pro／蘋方、apple.com 與 Human Interface Guidelines 的字級）
   顏色都集中在 :root，要換主色只要改 --accent
   ===================================================================== */
:root {
  /* Apple 深色模式色票 */
  --bg: #000;
  --label: #f5f5f7;           /* 主要文字 */
  --label-2: #a1a1a6;         /* 次要文字 */
  --label-3: #86868b;         /* 說明文字 */
  --label-4: #6e6e73;         /* 最弱文字 */
  --sep: rgba(255, 255, 255, .14);
  --fill: rgba(255, 255, 255, .08);
  --fill-2: rgba(255, 255, 255, .14);
  --surface: #1d1d1f;
  --accent: #aa88ff;          /* 原本模板的紫色 */
  --accent-press: #9672f2;
  --accent-soft: rgba(170, 136, 255, .14);
  --on-accent: #000;

  /* Apple 系統字體：Mac／iPhone 會是 SF Pro + 蘋方；其他裝置用最接近的 Inter + Noto Sans TC */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang TC", "Inter", "Noto Sans TC", "Segoe UI", "Microsoft JhengHei", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang TC", "Inter", "Noto Sans TC", "Segoe UI", "Microsoft JhengHei", sans-serif;

  --hh: 52px;                 /* 上方列高度（Apple 導覽列） */
  --side: 168px;              /* 內容左右留白（右側留給章節索引） */
  --maxw: 1180px;
  --ease: cubic-bezier(.25, .1, .25, 1);      /* Apple 預設曲線 */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--label);
  font: 400 17px/1.6 var(--font); letter-spacing: 0;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
ul, ol { list-style: none; }
code { font: 500 .9em/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--on-accent); }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 8px 16px; border-radius: 980px; font-size: 14px;
}
.skip:focus { top: 12px; }

.wrap { max-width: calc(var(--maxw) + var(--side) * 2); margin: 0 auto; padding: 0 var(--side); }

/* ---------------------------------------------------------------------
   Apple 字級
   --------------------------------------------------------------------- */
.display {      /* 超大標題：apple.com 產品頁主標 */
  font: 700 clamp(64px, 10.5vw, 152px)/1.02 var(--font-display);
  letter-spacing: -.022em; color: var(--label);
}
.headline {     /* 章節標題 */
  font: 600 clamp(40px, 5.4vw, 80px)/1.06 var(--font-display);
  letter-spacing: -.016em; color: var(--label);
}
.eyebrow {      /* 小標（apple.com eyebrow：21px semibold） */
  font: 600 21px/1.19 var(--font-display); letter-spacing: .004em; color: var(--label-3);
}
.eyebrow [data-num] { color: var(--accent); font-variant-numeric: tabular-nums; }
.intro {        /* 引言（21px） */
  margin-top: 20px; max-width: 30em;
  font: 400 21px/1.45 var(--font-display); letter-spacing: .004em; color: var(--label-2);
}
.ch-head .headline { margin-top: 14px; }

/* 文字連結（Apple：藍字＋›） */
.link {
  display: inline-flex; align-items: center; gap: 2px;
  font: 400 17px/1.3 var(--font); color: var(--accent);
}
.link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease-out); }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link:hover svg { transform: translateX(2px); }

/* 膠囊按鈕 */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 22px; border-radius: 980px;
  background: var(--accent); color: var(--on-accent);
  font: 400 17px/1.18 var(--font); letter-spacing: -.01em; white-space: nowrap;
  transition: background-color .2s var(--ease), transform .1s ease-out;
}
.pill:hover { background: #bda3ff; }
.pill:active { transform: scale(.97); background: var(--accent-press); }
.pill-sm { min-height: 0; padding: 4px 12px; font-size: 12px; line-height: 1.33; letter-spacing: 0; }
.pill-ghost { background: var(--fill-2); color: var(--label); }
.pill-ghost:hover { background: rgba(255, 255, 255, .2); }

.notice {
  position: relative; display: inline-block; margin-top: 24px; padding: 10px 16px 10px 42px;
  border-radius: 12px; background: var(--fill);
  font: 400 14px/1.45 var(--font); color: var(--label-2);
}
.notice::before {
  content: "i"; position: absolute; left: 14px; top: 12px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  background: var(--label-3); color: #000; font: 700 12px/1 var(--font);
}

/* ---------------------------------------------------------------------
   粒子背景
   --------------------------------------------------------------------- */
#bg {
  position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0;
  transition: opacity 1.1s var(--ease);
}
.bg-fallback { display: none; }
.no-webgl #bg { display: none; }
.no-webgl .bg-fallback {
  display: block; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(18% 26% at 64% 45%, rgba(255, 255, 255, .08), transparent 70%),
    radial-gradient(42% 14% at 64% 47%, rgba(170, 136, 255, .1), transparent 70%);
}
main { position: relative; z-index: 1; overflow-x: clip; }   /* clip 不會影響左側標題的黏住效果 */

/* ---------------------------------------------------------------------
   上方列（Apple 導覽列：半透明材質，往下捲才出現）
   --------------------------------------------------------------------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  height: var(--hh);
  display: flex; align-items: center; gap: 18px;
  padding: 0 22px;
  transition: background-color .4s var(--ease);
}
.topbar::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(22, 22, 23, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  opacity: 0; transition: opacity .4s var(--ease);
}
.topbar.is-scrolled::before { opacity: 1; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.mark { width: 30px; height: 30px; color: var(--label); flex: none; }
.brand-name { font: 600 17px/1 var(--font-display); letter-spacing: -.01em; }
.brand-zh { color: var(--label-3); font-weight: 500; margin-left: 2px; }
.now { display: none; }

/* ---------------------------------------------------------------------
   右側章節索引：一直顯示每章名稱；亮點像流星一樣跟著目前章節移動
   --------------------------------------------------------------------- */
.rail {
  position: fixed; right: 20px; top: 50%; transform: translateY(-50%); z-index: 25;
  display: flex; flex-direction: row-reverse; gap: 14px; align-items: stretch;
  padding: 12px 14px 12px 16px; border-radius: 18px;
  background: rgba(0, 0, 0, .38);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
}
.rail ol { display: flex; flex-direction: column; }
.rail a {
  display: flex; justify-content: flex-end; align-items: baseline; gap: 10px;
  padding: 7px 0; white-space: nowrap;
  font: 400 13px/1.25 var(--font); color: var(--label-4);
  transition: color .4s var(--ease), transform .5s var(--ease-out);
}
.rail .r-num { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--label-4); transition: color .4s var(--ease); }
.rail a:hover { color: var(--label-2); }
.rail a[aria-current="true"] { color: var(--label); font-weight: 600; transform: translateX(-4px); }
.rail a[aria-current="true"] .r-num { color: var(--accent); }
.rail-track { position: relative; width: 1px; background: rgba(255, 255, 255, .14); border-radius: 1px; }
.rail-fill {
  position: absolute; inset: 0; transform-origin: top; transform: scaleY(var(--prog, 0));
  background: linear-gradient(to bottom, rgba(170, 136, 255, .15), var(--accent));
}
.rail-star {
  position: absolute; left: 50%; top: 0; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px 2px rgba(170, 136, 255, .9), 0 0 18px 6px rgba(170, 136, 255, .35);
  transform: translateY(var(--sy, 0px));
}
.rail-star::after {           /* 流星尾巴：移動時才出現 */
  content: ""; position: absolute; left: 50%; width: 1.5px; margin-left: -.75px;
  height: calc(var(--trail, 0) * 1px); border-radius: 1px;
  bottom: 50%; background: linear-gradient(to top, rgba(170, 136, 255, .9), transparent);
}
.rail-star.up::after { bottom: auto; top: 50%; background: linear-gradient(to bottom, rgba(170, 136, 255, .9), transparent); }

/* ---------------------------------------------------------------------
   00 首頁（AXON 版型，Apple 字體）
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 640px;
  pointer-events: none;
}
.hero a, .hero button, .hero .list { pointer-events: auto; }

.hero-left {
  position: absolute; top: 96px; left: 24px; bottom: 0; width: 320px;
  display: flex; flex-direction: column; gap: 22px;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; flex: none; }
.tags .br { flex-basis: 100%; height: 2px; }
.tags .grp { font: 600 12px/1.33 var(--font); color: var(--label-3); min-width: 34px; }
.chip {
  display: inline-flex; align-items: center;
  padding: 6px 12px; border-radius: 980px;
  background: rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font: 400 13px/1.2 var(--font); color: var(--label); white-space: nowrap;
  transition: background-color .2s var(--ease), transform .1s ease-out;
}
.chip:hover { background: rgba(255, 255, 255, .18); }
.chip:active { transform: scale(.96); }
.chip.is-active { background: var(--label); color: #000; font-weight: 500; }

.list {
  position: relative; flex: 1; min-height: 0;
  overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain;
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent);
          mask-image: linear-gradient(to bottom, #000 82%, transparent);
  padding-bottom: 80px;
}
.list::-webkit-scrollbar { display: none; }
.hcard { display: block; width: 100%; text-align: left; padding: 16px 0; }
.hcard + .hcard { border-top: 1px solid var(--sep); }
.hthumb { position: relative; height: 160px; border-radius: 12px; background: var(--surface); overflow: hidden; transition: transform .12s ease-out; transform: translateZ(0); }
.hthumb > img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.hthumb .t-bg { position: absolute; inset: 0; filter: blur(18px) brightness(.5); transform: scale(1.25); }
.hthumb .t-fg { position: absolute; top: 0; bottom: 0; left: 50%; height: 100%; width: auto; aspect-ratio: 9 / 16; transform: translateX(-50%); object-fit: cover; }
.hcard:hover .hthumb > img:not(.t-bg):not(.t-fg) { transform: scale(1.03); }
.hcard:active .hthumb { transform: scale(.98); }
.hmeta { display: flex; justify-content: space-between; gap: 14px; margin-top: 10px; }
.hmeta .l { font: 600 14px/1.4 var(--font); color: var(--label); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hmeta .r { flex: none; font: 400 12px/1.5 var(--font); color: var(--label-3); text-align: right; white-space: pre-line; font-variant-numeric: tabular-nums; }

.about {
  position: absolute; right: 196px; top: 50%; transform: translateY(-50%); width: 300px;
  mix-blend-mode: plus-lighter;
}
.about .blk + .blk { margin-top: 28px; }
.about h2 { font: 600 12px/1.33 var(--font); letter-spacing: .02em; color: var(--accent); margin-bottom: 8px; }
.about p { font: 400 15px/1.65 var(--font); color: #e8e8ed; }
.about p + p { margin-top: 10px; }
.about .bullets li { position: relative; padding-left: 18px; font: 400 15px/1.75 var(--font); color: #e8e8ed; }
.about .bullets li::before {
  content: ""; position: absolute; left: 3px; top: .75em; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px rgba(170, 136, 255, .8);
}
.about .link { font-size: 15px; display: flex; margin-top: 4px; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font: 400 12px/1.33 var(--font); color: var(--label-3);
  transition: color .3s var(--ease);
}
.scroll-cue svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; animation: nudge 2.2s var(--ease) infinite; }
.scroll-cue:hover { color: var(--label); }
@keyframes nudge { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(4px); opacity: 1; } }

/* ---------------------------------------------------------------------
   捲動進場：標題逐字從模糊到清楚（像粒子聚成形狀）
   --------------------------------------------------------------------- */
[data-split] .c { display: inline-block; }
.reveal-on [data-split] .c {
  opacity: 0; filter: blur(16px); transform: translateY(.12em);
  transition: opacity .9s var(--ease), filter 1.2s var(--ease), transform 1.2s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 55ms);
}
.reveal-on [data-split].is-in .c { opacity: 1; filter: none; transform: none; }

.reveal-on [data-reveal] {
  opacity: 0; transform: translateY(32px) scale(.985);
  transition: opacity .9s var(--ease), transform 1.1s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal-on [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------------
   章節開場（長片／短片）
   --------------------------------------------------------------------- */
.opener {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end; padding-bottom: 13vh;
}
.op-grid { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: end; }
.op-main { position: relative; isolation: isolate; transform: translateY(calc(var(--p, 0) * -90px)); opacity: calc(1 - var(--p, 0) * 1.15); will-change: transform, opacity; }
.op-main .display { margin-top: 10px; }
.op-toc { opacity: calc(1 - var(--p, 0) * 1.3); }
.op-toc-label { font: 600 12px/1.33 var(--font); color: var(--label-3); margin-bottom: 8px; }
.op-toc li a {
  display: flex; align-items: center; gap: 12px; padding: 13px 0;
  border-top: 1px solid var(--sep);
  font: 400 17px/1.3 var(--font); color: var(--label);
  transition: color .2s var(--ease);
}
.op-toc .t-c { margin-left: auto; color: var(--label-3); font-variant-numeric: tabular-nums; }
.op-toc svg { width: 14px; height: 14px; fill: none; stroke: var(--label-4); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease-out), stroke .2s; }
.op-toc li a:hover { color: var(--accent); }
.op-toc li a:hover svg { stroke: var(--accent); transform: translateX(3px); }

/* 文字後方的柔和暗角：粒子再亮，標題也看得清楚 */
.op-toc { position: relative; isolation: isolate; }
.op-main::before, .contact-in::before, .ch-head::before, .op-toc::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: -18% -14% -22% -14%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .6), rgba(0, 0, 0, .28) 60%, transparent);
}
.ch-head { position: relative; isolation: isolate; }

/* ---------------------------------------------------------------------
   分類場景：左邊標題黏住，右邊作品往上捲
   --------------------------------------------------------------------- */
.scene { position: relative; padding: 16vh 0; scroll-margin-top: var(--hh); }
.scene-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 72px; align-items: start; }
.scene-head { position: sticky; top: calc(var(--hh) + 8vh); }
.sc-step { font: 600 14px/1.3 var(--font); color: var(--label-3); font-variant-numeric: tabular-nums; }
.sc-step b { font-weight: 600; color: var(--accent); }
.sc-title { margin-top: 10px; font: 600 clamp(32px, 3.4vw, 48px)/1.1 var(--font-display); letter-spacing: -.01em; color: var(--label); }
.sc-en { margin-top: 8px; font: 400 17px/1.3 var(--font); color: var(--label-3); }
.sc-desc { margin-top: 20px; max-width: 24em; font: 400 17px/1.65 var(--font); color: var(--label-2); }
.sc-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 5px 10px; border-radius: 980px; background: var(--accent-soft); color: var(--accent); font: 600 12px/1.2 var(--font); }
.sc-main { min-width: 0; }
.sc-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--sep);
}
.sc-bar-t { font: 600 21px/1.2 var(--font-display); color: var(--label); }
.sc-bar-t small { margin-left: 8px; font: 400 14px/1 var(--font); color: var(--label-3); }
.sc-all svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-right: -4px; }

.sc-cards { display: grid; gap: 44px 24px; }
.sc-cards.long { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sc-cards.short { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 18px; }

/* ---------------------------------------------------------------------
   作品卡（點了直接開 YouTube／IG；滑過會播封面預覽）
   --------------------------------------------------------------------- */
.card { display: block; width: 100%; text-align: left; }
.thumb {
  position: relative; overflow: hidden; border-radius: 18px; transform: translateZ(0);
  background: var(--surface); aspect-ratio: 16 / 9;
  transition: transform .12s ease-out, box-shadow .4s var(--ease);
}
.card.is-short .thumb { aspect-ratio: 9 / 16; }
.thumb > img, .thumb .pv > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb > img { transition: transform .8s var(--ease-out); }
.pv { position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity .35s var(--ease); }
.card.is-previewing .pv { opacity: 1; }
.card:hover .thumb { box-shadow: 0 24px 60px -24px rgba(170, 136, 255, .35); }
.card:hover .thumb > img { transform: scale(1.035); }
.card:active .thumb { transform: scale(.98); }
.plat {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  padding: 5px 9px; border-radius: 980px;
  background: rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font: 600 11px/1.2 var(--font); color: var(--label);
}
.go {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(29, 29, 31, .72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background-color .25s var(--ease), transform .4s var(--ease-out);
}
.go svg { width: 15px; height: 15px; fill: none; stroke: var(--label); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .go { background: var(--accent); transform: scale(1.06); }
.card:hover .go svg { stroke: #000; }
.pv-bar { position: absolute; left: 12px; right: 60px; bottom: 28px; z-index: 2; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .25); overflow: hidden; opacity: 0; transition: opacity .3s; }
.pv-bar i { position: absolute; inset: 0; background: var(--label); transform-origin: left; transform: scaleX(0); }
.card.is-previewing .pv-bar { opacity: 1; }
.card.is-previewing .pv-bar i { transition: transform var(--pvdur, 2.4s) linear; transform: scaleX(1); }
.card-title { margin-top: 14px; font: 600 17px/1.35 var(--font); color: var(--label); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin-top: 4px; font: 400 14px/1.4 var(--font); color: var(--label-3); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card.is-demo { cursor: default; }

/* 沒有封面時的示意卡 */
.ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(160deg, #2a2a2e 0%, #161618 70%);
}
.ph svg { width: 34px; height: 34px; fill: none; stroke: var(--label-4); stroke-width: 1.4; stroke-linejoin: round; }
.ph-cap { position: absolute; left: 14px; bottom: 12px; font: 400 12px/1.33 var(--font); color: var(--label-3); }
.hthumb .ph svg { width: 28px; height: 28px; }

/* ---------------------------------------------------------------------
   章節共用
   --------------------------------------------------------------------- */
.chapter { position: relative; padding: 24vh 0 20vh; overflow: hidden; }

/* 03 合作對象 */
.cw-grid { margin-top: 12vh; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 56px 24px; }
.cw { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.cw-av {
  width: 112px; height: 112px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(160deg, #2c2c30, #141416);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 24px 60px -24px rgba(0, 0, 0, .9);
  font: 600 40px/1 var(--font-display); color: var(--label-2);
  transition: transform .6s var(--ease-out), box-shadow .4s var(--ease);
}
.cw-av img { width: 100%; height: 100%; object-fit: cover; }
.cw:hover .cw-av { transform: translateY(-6px) scale(1.03); box-shadow: 0 0 0 2px var(--accent), 0 30px 70px -20px rgba(170, 136, 255, .45); }
.cw-name { font: 600 15px/1.4 var(--font); color: var(--label); word-break: break-word; }

/* 04 服務項目：捲到哪一項就亮哪一項（其他項目也保持清楚可讀） */
.svc { margin-top: 12vh; }
.svc-item {
  --a: .55;
  display: grid; grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: baseline;
  padding: 36px 0; border-top: 1px solid var(--sep);
}
.svc-item:last-child { border-bottom: 1px solid var(--sep); }
.svc-i, .svc-t, .svc-d { opacity: var(--a); }
.svc-i { font: 600 17px/1.2 var(--font); color: var(--accent); font-variant-numeric: tabular-nums; }
.svc-t { font: 600 clamp(30px, 3.6vw, 52px)/1.08 var(--font-display); letter-spacing: -.015em; color: var(--label); }
.svc-t small { display: block; margin-top: 10px; font: 400 17px/1.3 var(--font); letter-spacing: 0; color: var(--label-3); }
.svc-d { font: 400 19px/1.6 var(--font); color: #d2d2d7; }

.flow { margin-top: 16vh; }
.flow:empty { display: none; }
.flow-label { font: 600 21px/1.19 var(--font-display); color: var(--label); }
.flow-track { position: relative; margin-top: 32px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.flow-line { position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 1px; background: var(--fill-2); }
.flow-line::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(90deg, rgba(170, 136, 255, .3), var(--accent));
  transform-origin: left; transform: scaleX(var(--p, 0));
}
.flow-step { position: relative; padding-top: 32px; }
.flow-step::before {
  content: ""; position: absolute; top: -5px; left: 0; width: 12px; height: 12px; border-radius: 50%;
  background: #000; box-shadow: inset 0 0 0 2px var(--fill-2);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.flow-step.on::before { background: var(--accent); box-shadow: 0 0 0 4px rgba(170, 136, 255, .2), 0 0 16px rgba(170, 136, 255, .8); }
.flow-step b { display: block; font: 600 21px/1.25 var(--font-display); color: var(--label); }
.flow-step b span { margin-right: 8px; color: var(--accent); font-variant-numeric: tabular-nums; }
.flow-step p { margin-top: 8px; font: 400 15px/1.5 var(--font); color: var(--label-2); }

/* 05 聯絡方式 */
.contact { overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 0; }
.contact-in { position: relative; isolation: isolate; width: 100%; padding-top: 24vh; padding-bottom: 14vh; }
.contact-in::before { inset: 20% auto 0 0; width: min(900px, 100%); }
.contact-title { margin-top: 12px; }
.contact-sub { margin-top: 12px; font: 600 clamp(24px, 3vw, 40px)/1.2 var(--font-display); letter-spacing: -.005em; color: var(--label-3); }
.contact-note { margin-top: 22px; font: 400 17px/1.6 var(--font); color: var(--label-2); }
.contact-actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.dc-card {
  display: inline-flex; align-items: center; gap: 18px;
  padding: 10px 10px 10px 22px; border-radius: 980px;
  background: rgba(29, 29, 31, .72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.dc-k { font: 400 14px/1 var(--font); color: var(--label-3); }
.dc-v { font: 600 19px/1 var(--font); color: var(--label); }
.footer {
  display: flex; justify-content: space-between; gap: 16px; padding: 20px 24px;
  font: 400 12px/1.33 var(--font); color: var(--label-3);
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.footer a:hover { color: var(--label); }

/* ---------------------------------------------------------------------
   「看全部」底部面板
   --------------------------------------------------------------------- */
.sheet-layer { position: fixed; inset: 0; z-index: 60; }
.sheet-layer[hidden] { display: none; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); opacity: var(--o, 0); }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; top: 5vh;
  max-width: 1360px; margin: 0 auto;
  display: flex; flex-direction: column;
  background: rgba(29, 29, 31, .86);
  -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px);
  border-radius: 28px 28px 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 -30px 120px -30px rgba(0, 0, 0, .9);
  transform: translate3d(0, var(--y, 100vh), 0);
  will-change: transform;
}
.sheet-grab { flex: none; padding: 8px 36px 20px; touch-action: none; cursor: grab; user-select: none; }
.sheet-grab:active { cursor: grabbing; }
.grab-bar { display: block; width: 36px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .25); margin: 0 auto 18px; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.sheet-kicker { font: 600 14px/1.3 var(--font); color: var(--label-3); }
.sheet-kicker b { font-weight: 600; color: var(--accent); }
.sheet-title { margin-top: 6px; font: 600 clamp(28px, 3vw, 40px)/1.1 var(--font-display); letter-spacing: -.01em; color: var(--label); }
.sheet-title small { margin-left: 10px; font: 400 17px/1 var(--font); letter-spacing: 0; color: var(--label-3); }
.close-btn {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .12); transition: background-color .2s var(--ease), transform .1s ease-out;
}
.close-btn:hover { background: rgba(255, 255, 255, .2); }
.close-btn:active { transform: scale(.92); }
.close-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--label-2); stroke-width: 2.2; stroke-linecap: round; }
.sheet-body {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 8px 36px 64px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18px);
          mask-image: linear-gradient(to bottom, transparent, #000 18px);
}
.sheet-grid { display: grid; gap: 40px 22px; padding-top: 14px; }
.sheet-grid.long { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sheet-grid.short { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 36px 16px; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 90; transform: translate(-50%, 20px);
  padding: 12px 20px; border-radius: 980px;
  background: rgba(29, 29, 31, .9); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  font: 400 15px/1.3 var(--font); color: var(--label);
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .4s var(--ease-out);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.op-main .display, .contact-title, .contact-sub, .headline, .sc-title, .svc-t, .cw-name { text-shadow: 0 2px 30px rgba(0, 0, 0, .55); }

/* ---------------------------------------------------------------------
   響應式
   --------------------------------------------------------------------- */
@media (max-width: 1100px) {
  :root { --side: 32px; }
  .rail { display: none; }
  .now { display: flex; align-items: baseline; gap: 6px; font: 600 13px/1 var(--font); color: var(--label); }
  .now-num { font-weight: 400; color: var(--accent); font-variant-numeric: tabular-nums; transition: opacity .25s; }
  .now-label { transition: opacity .25s; }
  .now.is-swapping .now-num, .now.is-swapping .now-label { opacity: 0; }
  .about { right: 32px; width: 320px; }
  .scene-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; }
  .cw-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
  .sheet-grid.long { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheet-grid.short { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .op-grid { grid-template-columns: minmax(0, 1fr); }
  .op-toc { max-width: 440px; }
}

@media (max-width: 760px) {
  :root { --side: 20px; --hh: 48px; }
  body { font-size: 16px; }
  .topbar { padding: 0 16px; gap: 12px; }
  .mark { width: 24px; height: 24px; }
  .brand-name { font-size: 16px; }

  .hero { min-height: 600px; }
  .hero-left, .scroll-cue { display: none; }
  .about { left: 20px; right: 20px; bottom: 32px; top: auto; width: auto; transform: none; }
  .about .blk + .blk { margin-top: 20px; }
  .about .bullets { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .about .bullets li { font-size: 14px; line-height: 1.6; }

  .eyebrow { font-size: 17px; }
  .intro { font-size: 19px; }
  .opener { padding-bottom: 10vh; }
  .op-main .display { font-size: 24vw; }

  .scene { padding: 10vh 0; }
  .scene-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .scene-head { position: static; }
  .sc-desc { max-width: none; }
  .sc-bar { margin-bottom: 16px; padding-bottom: 12px; }
  .sc-bar-t { font-size: 19px; }
  .sc-all { padding: 8px 16px; min-height: 0; font-size: 15px; }
  /* 手機：作品改成左右滑動 */
  .sc-cards {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(var(--side) * -1); padding: 0 var(--side) 6px; scroll-padding: 0 var(--side);
    gap: 14px;
  }
  .sc-cards::-webkit-scrollbar { display: none; }
  .sc-cards > * { flex: none; scroll-snap-align: start; }
  .sc-cards.long > * { width: 82%; }
  .sc-cards.short > * { width: 46%; }
  .thumb { border-radius: 14px; }
  .card-title { font-size: 16px; }

  .chapter { padding: 16vh 0 14vh; }
  .cw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 12px; margin-top: 8vh; }
  .cw-av { width: 84px; height: 84px; font-size: 30px; }
  .cw-name { font-size: 14px; }

  .svc { margin-top: 8vh; }
  .svc-item { grid-template-columns: 36px minmax(0, 1fr); padding: 28px 0; row-gap: 12px; }
  .svc-d { grid-column: 2; font-size: 16px; }
  .flow-track { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .flow-line { display: none; }
  .flow-step { border-top: 2px solid var(--fill-2); }

  .contact-in { padding-bottom: 10vh; }
  .contact-title { font-size: 14.5vw; }
  .dc-card { width: 100%; justify-content: space-between; }
  .footer { padding: 16px 20px; }

  .sheet { top: 4vh; border-radius: 20px 20px 0 0; }
  .sheet-grab { padding: 8px 20px 16px; }
  .sheet-body { padding: 4px 20px 48px; }
  .sheet-grid.long { grid-template-columns: minmax(0, 1fr); }
  .sheet-grid.short { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
}

/* ---------------------------------------------------------------------
   長片／短片：開場說明、精選作品格線
   --------------------------------------------------------------------- */
.op-desc { margin-top: 20px; max-width: 30em; font: 400 21px/1.45 var(--font-display); letter-spacing: .004em; color: var(--label-2); }
.scene.feat { padding: 6vh 0 16vh; }
.feat-grid.long { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feat-grid.short { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* IG 沒有封面時的卡片 */
.ph-ig { background: radial-gradient(120% 90% at 85% 0%, rgba(170, 136, 255, .28), transparent 55%), linear-gradient(160deg, #2a2438 0%, #141218 70%); }
.ph-ig svg { width: 38px; height: 38px; stroke: rgba(245, 245, 247, .55); stroke-width: 1.5; }
.ph-ig svg .dot { fill: rgba(245, 245, 247, .55); stroke: none; }
.ph-ig .ph-cap { font-variant-numeric: tabular-nums; color: var(--label-2); }
.ph-cat {
  position: absolute; left: 12px; top: 12px; padding: 5px 9px; border-radius: 980px;
  background: rgba(0, 0, 0, .4); font: 600 11px/1.2 var(--font); color: var(--label);
}

/* ---------------------------------------------------------------------
   專案經歷
   --------------------------------------------------------------------- */
.proj-grid { margin-top: 10vh; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.proj {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 40px; border-radius: 28px;
  background: rgba(29, 29, 31, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.proj-k { display: flex; flex-wrap: wrap; gap: 4px 12px; font: 600 14px/1.3 var(--font); color: var(--accent); }
.proj-k span { color: var(--label-3); font-weight: 400; font-variant-numeric: tabular-nums; }
.proj-t { margin-top: 10px; font: 600 clamp(28px, 2.8vw, 40px)/1.12 var(--font-display); letter-spacing: -.01em; color: var(--label); }
.proj-d { margin-top: 14px; font: 400 17px/1.6 var(--font); color: var(--label-2); }
.proj-strip { margin: 28px 0; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pthumb { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--surface); }
.pthumb > img { width: 100%; height: 100%; object-fit: cover; }
.pthumb .ph svg { width: 26px; height: 26px; }
.pthumb .ph-cat, .pthumb .ph-cap { display: none; }
.proj .pill { margin-top: 28px; }
.proj-text { display: flex; flex-direction: column; align-items: flex-start; width: 100%; }
.proj > .proj-strip { order: 0; }
.proj:not(.wide) .proj-text { order: 1; }
.proj:not(.wide) .proj-strip { margin: 0 0 28px; }
.proj-grid.single { grid-template-columns: minmax(0, 1fr); }
.proj.wide { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px; padding: 48px; }
.proj.wide .proj-t { font-size: clamp(36px, 4.4vw, 64px); }
.proj.wide .proj-strip { margin: 0; width: auto; }
.proj-strip.vertical { grid-template-columns: repeat(var(--n, 3), minmax(0, 150px)); }
.proj-strip.vertical .pthumb { aspect-ratio: 9 / 16; }
.cw-period { display: block; margin-top: 2px; font: 400 12px/1.4 var(--font); color: var(--label-3); font-variant-numeric: tabular-nums; }

/* 合作對象：點頭像開頻道 */
.cw-link { display: flex; flex-direction: column; align-items: center; gap: 16px; }

/* 聯絡：主要按鈕 */
.pill-lg { min-height: 60px; padding: 0 28px; font-size: 19px; }
.pill svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 面板：分類篩選 */
.sheet-filters {
  flex: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0 36px 16px;
  border-bottom: 1px solid var(--sep);
}
.sheet-filters[hidden] { display: none; }
.fchip {
  padding: 7px 14px; border-radius: 980px; background: rgba(255, 255, 255, .1);
  font: 400 14px/1.2 var(--font); color: var(--label); white-space: nowrap;
  transition: background-color .2s var(--ease), transform .1s ease-out;
}
.fchip:hover { background: rgba(255, 255, 255, .18); }
.fchip:active { transform: scale(.96); }
.fchip[aria-pressed="true"] { background: var(--label); color: #000; font-weight: 500; }
.sheet-info { padding-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 400 15px/1.5 var(--font); color: var(--label-2); }
.sheet-sub { padding-top: 22px; font: 600 21px/1.2 var(--font-display); color: var(--label); }

@media (max-width: 1100px) {
  .feat-grid.long { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat-grid.short { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .proj-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .op-desc { font-size: 18px; }
  .scene.feat { padding: 4vh 0 10vh; }
  /* 精選在手機上改成兩欄格線（比左右滑更好看到全部） */
  .feat-grid { display: grid; overflow: visible; margin: 0; padding: 0; gap: 26px 12px; }
  .feat-grid.long { grid-template-columns: minmax(0, 1fr); }
  .feat-grid.short { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat-grid > * { width: auto !important; }
  .proj { padding: 26px 22px; border-radius: 22px; }
  .proj.wide { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 26px 22px; }
  .proj.wide .proj-strip { order: -1; width: 100%; }
  .proj-strip.vertical { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
  .proj-strip { margin: 22px 0; }
  .sheet-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 0 20px 14px; }
  .sheet-filters::-webkit-scrollbar { display: none; }
  .pill-lg { width: 100%; }
}

/* 減少動態效果：改成單純淡入淡出 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue svg { animation: none; }
  .op-main, .op-toc { transform: none !important; opacity: 1 !important; }
}
/* 減少透明度 */
@media (prefers-reduced-transparency: reduce) {
  .topbar::before { -webkit-backdrop-filter: none; backdrop-filter: none; background: #161617; }
  .sheet { -webkit-backdrop-filter: none; backdrop-filter: none; background: #1d1d1f; }
  .chip, .plat, .go, .dc-card, .toast { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
