/* ============================================================
   Ferris Lin — 極簡藝術版
   黑白、留白、圖片優先。漸層只做背景光暈與顆粒。
   ------------------------------------------------------------
   01 變數   02 基礎   03 背景   04 頂欄   05 Hero   06 區塊與畫廊
   07 Music / Words   08 About / Contact / 頁尾   09 放大檢視
   10 文章頁   11 後台用的按鈕   (後台區塊沿用)   動態   響應式
   ============================================================ */

/* ---------- 01 變數 ---------- */
:root {
  --bg: #000000;
  --bg-2: #080808;
  --bg-fade: rgba(0, 0, 0, 0.84);
  --nav-bg: rgba(0, 0, 0, 0.92);
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --surface-solid: #0e0e0e;
  --ink: #f2f2ef;
  --ink-2: #c3c3be;
  --muted: #7f7f7b;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.3);
  --accent: #ffffff;
  --accent-fill: #f2f2ef;
  --accent-strong: #ffffff;
  --accent-ink: #0a0a0a;
  --accent-soft: rgba(255, 255, 255, 0.1);
  --fill-gradient: linear-gradient(135deg, #ffffff, #cfcfca);
  --orb-1: rgba(255, 255, 255, 0.07);
  --orb-2: rgba(255, 255, 255, 0.045);
  --cover-a: linear-gradient(135deg, #1e1e1e, #070707);
  --cover-b: linear-gradient(135deg, #181818, #050505);
  --cover-c: linear-gradient(160deg, #262626, #080808);
  --cover-line: rgba(255, 255, 255, 0.09);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.6);
  --shadow-sm: 0 12px 32px rgba(0, 0, 0, 0.42);
  --noise-opacity: 0.07;
  --img-dim: 0.92;
  --icon-sun: none;
  --icon-moon: block;

  --radius-xl: 16px;
  --radius-lg: 12px;
  --radius-md: 10px;
  --radius-sm: 6px;

  --font-sans: "DM Sans", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, -apple-system, sans-serif;
  --font-display: "Cormorant Garamond", "Cormorant", "Garamond", "Noto Serif TC", Georgia, serif;
  --font-serif: var(--font-display);
  --font-serif-tc: "Noto Sans TC", "PingFang TC", var(--font-sans);
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --top-h: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f5f5f2;
  --bg-2: #fbfbf9;
  --bg-fade: rgba(245, 245, 242, 0.84);
  --nav-bg: rgba(245, 245, 242, 0.92);
  --surface: rgba(10, 10, 10, 0.035);
  --surface-hover: rgba(10, 10, 10, 0.06);
  --surface-solid: #ffffff;
  --ink: #0d0d0d;
  --ink-2: #3c3c3a;
  --muted: #7a7a76;
  --line: rgba(10, 10, 10, 0.12);
  --line-strong: rgba(10, 10, 10, 0.3);
  --accent: #0d0d0d;
  --accent-fill: #0d0d0d;
  --accent-strong: #2a2a2a;
  --accent-ink: #f5f5f2;
  --accent-soft: rgba(10, 10, 10, 0.08);
  --fill-gradient: linear-gradient(135deg, #1a1a1a, #000000);
  --orb-1: rgba(0, 0, 0, 0.07);
  --orb-2: rgba(0, 0, 0, 0.045);
  --cover-a: linear-gradient(135deg, #e6e6e2, #d0d0cb);
  --cover-b: linear-gradient(135deg, #ececE9, #d7d7d2);
  --cover-c: linear-gradient(160deg, #dddDd8, #c5c5c0);
  --cover-line: rgba(10, 10, 10, 0.1);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.14);
  --shadow-sm: 0 12px 32px rgba(0, 0, 0, 0.1);
  --noise-opacity: 0.05;
  --img-dim: 1;
  --icon-sun: block;
  --icon-moon: none;
  color-scheme: light;
}

/* 沒有明確指定主題時，跟隨系統的淺色偏好；明確選擇深色時不套用 */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5f5f2;
    --bg-2: #fbfbf9;
    --bg-fade: rgba(245, 245, 242, 0.84);
    --nav-bg: rgba(245, 245, 242, 0.92);
    --surface: rgba(10, 10, 10, 0.035);
    --surface-hover: rgba(10, 10, 10, 0.06);
    --surface-solid: #ffffff;
    --ink: #0d0d0d;
    --ink-2: #3c3c3a;
    --muted: #7a7a76;
    --line: rgba(10, 10, 10, 0.12);
    --line-strong: rgba(10, 10, 10, 0.3);
    --accent: #0d0d0d;
    --accent-fill: #0d0d0d;
    --accent-strong: #2a2a2a;
    --accent-ink: #f5f5f2;
    --accent-soft: rgba(10, 10, 10, 0.08);
    --fill-gradient: linear-gradient(135deg, #1a1a1a, #000000);
    --orb-1: rgba(0, 0, 0, 0.07);
    --orb-2: rgba(0, 0, 0, 0.045);
    --cover-a: linear-gradient(135deg, #e6e6e2, #d0d0cb);
    --cover-b: linear-gradient(135deg, #ececE9, #d7d7d2);
    --cover-c: linear-gradient(160deg, #dddDd8, #c5c5c0);
    --cover-line: rgba(10, 10, 10, 0.1);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.14);
    --shadow-sm: 0 12px 32px rgba(0, 0, 0, 0.1);
    --noise-opacity: 0.05;
    --img-dim: 1;
    --icon-sun: block;
    --icon-moon: none;
    color-scheme: light;
  }
}

/* ---------- 02 基礎 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 1rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}
body.admin-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent-fill); color: var(--accent-ink); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100px; left: 1rem; z-index: 100; padding: 0.5rem 0.9rem; background: var(--accent-fill); color: var(--accent-ink); }
.skip-link:focus { top: 1rem; }

/* 小字標籤：全站共用的「作品標籤」語氣 */
.eyebrow, .label-meta, .count, .foot, .links, .facts dt, .track-no, .lb-num, .lb-meta, .honors, .menu a, .tools button, .tools a, .section-head h2, .index-no, .index-meta, .scroll-hint {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- 03 背景 ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; will-change: transform; }
.orb-1 { width: 72vmax; height: 72vmax; top: -34vmax; left: -24vmax; background: radial-gradient(circle at center, var(--orb-1), transparent 62%); animation: float-a 30s ease-in-out infinite alternate; }
.orb-2 { width: 60vmax; height: 60vmax; top: 30vh; right: -28vmax; background: radial-gradient(circle at center, var(--orb-2), transparent 62%); animation: float-b 36s ease-in-out infinite alternate; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: var(--noise-opacity);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 04 頂欄：左上名字、右上小字選單 ---------- */
.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: start;
  gap: 1rem clamp(1.5rem, 4vw, 4rem);
  padding: 1.5rem var(--gutter) 0;
  height: calc(var(--top-h) + 2.5rem);
  color: var(--ink);
  background: linear-gradient(to bottom, var(--bg-fade) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}
[data-theme="light"] .top { background: linear-gradient(to bottom, var(--bg-fade) 0%, rgba(245, 245, 242, 0) 100%); }
.top > * { pointer-events: auto; }
.wordmark { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 2.6vw, 2.5rem); line-height: 1; letter-spacing: 0.01em; transform-origin: left top; }
.menu ul { display: grid; gap: 0.32rem; }
.menu a { display: block; opacity: 0.55; transition: opacity 0.2s; }
.menu a:hover, .menu a.is-active { opacity: 1; }
.tools { display: grid; justify-items: end; gap: 0.15rem; }
.tools a, .tools button { border: 0; background: none; padding: 0; cursor: pointer; color: inherit; opacity: 0.55; transition: opacity 0.2s; line-height: 1.5; }
.tools a:hover, .tools button:hover { opacity: 1; }
.theme-toggle svg { width: 14px; height: 14px; }
.theme-toggle .icon-sun { display: var(--icon-sun); }
.theme-toggle .icon-moon { display: var(--icon-moon); }
.nav-toggle { display: none; }

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .top { background: linear-gradient(to bottom, var(--bg-fade) 0%, rgba(245, 245, 242, 0) 100%); }
  :root:not([data-theme="dark"]) .opening-bg img { filter: grayscale(1) brightness(1.02) contrast(0.95); }
  :root:not([data-theme="dark"]) .opening-bg::after { background: linear-gradient(to top, var(--bg) 0%, rgba(245, 245, 242, 0.35) 45%, rgba(245, 245, 242, 0.05) 100%); }
  :root:not([data-theme="dark"]) .about-bg img { filter: grayscale(1) brightness(1.05); opacity: 0.35; }
}

/* ---------- 05 開場：滿版氣氛圖 + 大字 ---------- */
.opening {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-content: end;
  padding: calc(var(--top-h) + 2rem) var(--gutter) clamp(2.5rem, 7vh, 5rem);
  overflow: hidden;
  isolation: isolate;
}
.opening-bg { position: absolute; inset: 0; z-index: -1; }
.opening-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) brightness(0.42) contrast(1) blur(1.5px);
  opacity: 0.85;
  object-position: 68% 40%;
  transform: scale(1.06);
  animation: settle 9s var(--ease) both;
}
.opening-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, rgba(0, 0, 0, 0.55) 40%, rgba(0, 0, 0, 0.2) 100%), radial-gradient(ellipse at 20% 50%, rgba(0, 0, 0, 0.5), transparent 55%);
}
[data-theme="light"] .opening-bg img { filter: grayscale(1) brightness(1.02) contrast(0.95); }
[data-theme="light"] .opening-bg::after { background: linear-gradient(to top, var(--bg) 0%, rgba(245, 245, 242, 0.35) 45%, rgba(245, 245, 242, 0.05) 100%); }
.opening-text { display: grid; gap: 1.2rem; max-width: 60rem; }
.opening-name { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.opening .eyebrow { margin: 0; color: var(--ink-2); opacity: 0.8; }
.opening-statement {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.8rem, 7.2vw, 7rem);
  line-height: 1.02;
  letter-spacing: 0;
  color: var(--ink);
  text-wrap: balance;
  max-width: 15em;
}
.opening-statement em { font-style: italic; font-weight: 300; color: var(--ink-2); }
.scroll-hint { position: absolute; right: var(--gutter); bottom: clamp(2.5rem, 7vh, 5rem); color: var(--muted); display: grid; gap: 0.5rem; justify-items: center; }
.scroll-hint span { display: block; width: 1px; height: 3rem; background: linear-gradient(var(--ink), transparent); animation: drop 2.6s var(--ease) infinite; }

/* ---------- 06 區塊標題 ---------- */
.section { padding: clamp(6rem, 18vh, 14rem) var(--gutter) 0; position: relative; }
.section-head {
  display: flex; align-items: baseline; gap: 1rem;
  padding-bottom: 0.8rem;
  margin-bottom: clamp(1.5rem, 4vh, 3rem);
  border-bottom: 1px solid var(--line);
}
.section-head h2 { font-weight: 500; }
.count { color: var(--muted); }
.section-head p { flex-basis: 100%; font-size: 1.15rem; color: var(--muted); max-width: 46em; }

/* ---------- 07 Art：清單 + 固定舞台 ---------- */
.showcase-body { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.index { display: grid; padding: 12vh 0 30vh; }
.index-item { border-bottom: 1px solid var(--line); }
.index-thumb { display: none; }
.index-btn {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  align-items: baseline;
  gap: 0.6rem 1rem;
  width: 100%;
  padding: 1.1rem 0;
  border: 0; background: none; cursor: pointer; text-align: left; color: var(--muted);
  transition: color 0.35s var(--ease);
}
.index-no { transition: color 0.35s; }
.index-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 2.8vw, 2.6rem); line-height: 1.2; letter-spacing: 0; color: inherit; }
.index-meta { color: var(--muted); }
.index-item.is-current .index-btn { color: var(--ink); }
.index-item.is-current .index-no { color: var(--ink); }
.index-btn:hover { color: var(--ink); }
.stage { position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); display: grid; place-items: center; padding: 0 0 2rem; }
.stage-media { position: relative; width: 100%; height: 100%; }
.stage-media:empty { border: 1px solid var(--line); }
.stage-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; transition: opacity 0.7s var(--ease); }
.stage-media img.is-entering { opacity: 0; }
.stage-media img.is-entering + * { opacity: 1; }

/* ---------- 08 畫廊（Design / Life）---------- */
.grid { columns: 3 16rem; column-gap: clamp(1.25rem, 3vw, 2.5rem); }
.work { break-inside: avoid; margin: 0 0 clamp(1.75rem, 4vw, 3rem); }
.art-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; color: inherit; }
/* 作品頁的索引：編號｜標題，說明另起一行；首頁索引則把數量放右邊 */
.index-btn.art-open { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); grid-template-areas: "no title" "no meta"; align-items: baseline; gap: 0.3rem 1rem; padding: 1.1rem 0; cursor: pointer; color: var(--muted); }
.index-btn.art-open .index-no { grid-area: no; }
.index-btn.art-open .index-title { grid-area: title; }
.index-btn.art-open .index-meta { grid-area: meta; font-size: 0.66rem; letter-spacing: 0.16em; line-height: 1.5; }
.art-media { display: block; position: relative; aspect-ratio: var(--ratio, 4 / 5); overflow: hidden; background: var(--cover-a); }
.art-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(var(--img-dim)); transition: filter 0.6s var(--ease), transform 1.2s var(--ease); }
.art-open:hover img { filter: brightness(1); transform: scale(1.015); }
.art-num { position: absolute; right: 0.8rem; bottom: 0.3rem; font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 3rem; color: var(--muted); }
.label { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: 0.6rem; font-size: 0.88rem; color: var(--ink-2); }
.label > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.label-meta { color: var(--muted); white-space: nowrap; }

/* ---------- 09 Music / Words ---------- */
.tracks { border-top: 1px solid var(--line); }
.track { display: grid; grid-template-columns: 2.5rem auto 1fr auto; align-items: center; gap: 1.25rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.track-no { color: var(--muted); }
.track-cover { width: 56px; height: 56px; object-fit: cover; }
.track:not(:has(.track-cover)) { grid-template-columns: 2.5rem 1fr auto; }
.track-body { display: grid; gap: 0.3rem; min-width: 0; }
.track-body h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.8rem; }
.track-body audio { width: min(100%, 420px); height: 32px; margin-top: 0.3rem; }
.track-link { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.track-link:hover { color: var(--ink); border-color: var(--ink); }
.posts { border-top: 1px solid var(--line); }
.post { display: grid; gap: 0.35rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.post-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 2.9vw, 2.6rem); line-height: 1.25; }
.post-title:hover { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.post-excerpt { color: var(--muted); max-width: 60ch; }

/* ---------- 10 About：大字宣言 ---------- */
.about { isolation: isolate; }
.about-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.about-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(0.45); opacity: 0.55; mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent); }
[data-theme="light"] .about-bg img { filter: grayscale(1) brightness(1.05); opacity: 0.35; }
.about-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2.5rem, 6vh, 4rem) clamp(2rem, 6vw, 6rem); padding: clamp(2rem, 6vh, 5rem) 0; }
.about-body--portrait { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); }
.manifesto { grid-column: 1; display: grid; gap: 2.4rem; } /* 段落之間留寬一點，別擠 */
.manifesto-lead { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.4rem, 5.4vw, 5.2rem); line-height: 1.06; letter-spacing: 0; color: var(--ink); text-wrap: balance; max-width: 18em; }
.manifesto-more { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.35rem, 2vw, 1.85rem); line-height: 1.42; color: var(--ink-2); max-width: 30em; } /* 跟第一段同一套襯線，只是小一級 */
.manifesto em { font-style: italic; font-weight: 300; color: var(--ink-2); }
.portrait { grid-column: 2; grid-row: 1 / span 2; align-self: start; } /* 首屏的 margin-top 由 clearPortrait() 依選單高度算；照片跟著內容捲動 */
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; } /* 偏上裁，別把頭髮切掉 */
.about-facts { grid-column: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem clamp(2rem, 5vw, 5rem); max-width: 60rem; }
.honors { display: grid; gap: 0.5rem; align-content: start; color: var(--ink-2); }
.honors li { padding-left: 1.1rem; position: relative; }
.honors li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.5rem; height: 1px; background: var(--ink); }
.facts { border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: 0.65rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); padding-top: 0.2rem; }
.facts dd { color: var(--ink-2); font-size: 1rem; }

/* ---------- 11 Contact / 頁尾 ---------- */
.contact { isolation: isolate; }
.contact-body { display: grid; gap: 1.5rem; padding: clamp(2rem, 6vh, 5rem) 0 clamp(4rem, 10vh, 8rem); }
.contact-title { font-family: var(--font-display); font-weight: 300; font-size: clamp(3.4rem, 10vw, 9rem); line-height: 1; letter-spacing: 0; max-width: 10em; }
.contact-title em { font-style: italic; font-weight: 300; color: var(--ink-2); }
.contact-email { justify-self: start; font-family: var(--font-display); font-weight: 400; letter-spacing: 0; font-size: clamp(1.7rem, 3.8vw, 3rem); border-bottom: 1px solid var(--line-strong); padding-bottom: 0.1em; transition: border-color 0.2s; }
.contact-email:hover { border-color: var(--ink); }
.links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.8rem; color: var(--muted); }
.links a { transition: color 0.2s; }
.links a:hover { color: var(--ink); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; padding: 1.25rem var(--gutter) 2rem; border-top: 1px solid var(--line); color: var(--muted); }
.foot-links { display: flex; align-items: center; gap: 1.5rem; }
.section--empty { padding-top: clamp(2rem, 5vh, 3.5rem); }
.section--empty .section-head { margin-bottom: 0.8rem; }
.section--empty .soon { font-family: var(--font-display); font-size: 1.3rem; color: var(--muted); padding: 0 0 0.5rem; }
.section--empty + .section--empty { padding-top: clamp(1.5rem, 4vh, 2.5rem); }
.foot a:hover { color: var(--ink); }
.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 300; padding: 0.7rem 1.1rem; background: var(--ink); color: var(--bg); font-size: 0.85rem; opacity: 0; transform: translate(-50%, 12px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); pointer-events: none; max-width: calc(100% - 2rem); text-align: center; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 12 放大檢視 ---------- */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--bg); color: var(--ink); }
.lightbox::backdrop { background: var(--bg); }
.lb-figure { display: grid; grid-template-rows: 1fr auto; height: 100%; padding: var(--top-h) var(--gutter) 1.5rem; gap: 1rem; }
.lb-media { position: relative; min-height: 0; display: grid; place-items: center; }
.lb-media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lb-media .art-num { position: static; font-size: 6rem; }
.lb-caption { display: grid; grid-template-columns: auto auto auto 1fr; align-items: baseline; gap: 0.4rem 1.5rem; font-size: 0.85rem; }
.lb-num, .lb-meta { color: var(--muted); }
.lb-desc { grid-column: 1 / -1; color: var(--muted); max-width: 60ch; font-size: 0.85rem; }
.lb-desc:empty { display: none; }
.lb-link { grid-column: 1 / -1; justify-self: start; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.lb-link:hover { color: var(--ink); }
.lb-close, .lb-prev, .lb-next { position: absolute; z-index: 2; border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.6rem; transition: color 0.2s; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: var(--ink); }
.lb-close { top: 1.1rem; right: var(--gutter); }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 300; letter-spacing: 0; }
.lb-prev { left: max(0.5rem, calc(var(--gutter) - 1.5rem)); }
.lb-next { right: max(0.5rem, calc(var(--gutter) - 1.5rem)); }

/* ---------- 13 文章頁 ---------- */
.article-page { width: min(720px, 100% - 2 * var(--gutter)); margin-inline: auto; padding: calc(var(--top-h) + clamp(2rem, 6vh, 4rem)) 0 clamp(3rem, 8vh, 5rem); }
.article-back { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.article-back:hover { color: var(--ink); }
.article-head { margin-top: 1.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.post-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.post-tag { color: var(--ink-2); }
.article-head h1 { margin-top: 1.25rem; font-family: var(--font-display), var(--font-serif-tc); font-weight: 400; font-size: clamp(1.8rem, 4.5vw, 2.8rem); line-height: 1.3; }
.article-head .excerpt { margin-top: 1rem; font-size: 1.1rem; color: var(--muted); }
.article-body { padding-top: 2rem; }
.article-body > p { margin: 1.1rem 0; font-size: 1.02rem; line-height: 1.9; color: var(--ink-2); }
.article-body h2 { margin-top: 3rem; font-family: var(--font-serif-tc); font-weight: 500; font-size: 1.6rem; }
.article-body h3 { margin-top: 2.4rem; font-family: var(--font-serif-tc); font-weight: 500; font-size: 1.25rem; }
.article-body ul, .article-body ol { margin: 1rem 0 1.25rem; padding-left: 1.4rem; color: var(--ink-2); line-height: 1.85; }
.article-body ul { list-style: disc; } .article-body ol { list-style: decimal; }
.article-body li + li { margin-top: 0.35rem; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body hr { margin: 3rem 0; border: 0; border-top: 1px solid var(--line); }
.article-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }
.article-author { display: flex; gap: 1rem; align-items: center; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.article-author p { color: var(--muted); font-size: 0.92rem; }
.article-author strong { color: var(--ink); }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; font-weight: 500; font-size: 1rem; line-height: 1; color: var(--accent-ink); background: var(--fill-gradient); border-radius: 10px; flex-shrink: 0; }

/* ---------- 14 後台用的按鈕 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.7rem 1.2rem; border-radius: 999px; border: 1px solid transparent; font-weight: 500; font-size: 0.9rem; line-height: 1.2; white-space: nowrap; cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.btn:disabled { opacity: 0.5; cursor: wait; }
.btn-primary { background: var(--accent-fill); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { border-color: var(--line-strong); background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 0.5rem 0.95rem; font-size: 0.85rem; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { border-color: var(--line-strong); background: var(--surface-hover); }
[data-cover] { --cover-bg: var(--cover-a); }
[data-cover="print"] { --cover-bg: var(--cover-b); }
[data-cover="motion"] { --cover-bg: var(--cover-c); }
.img-field--settings { grid-template-columns: 140px 1fr; }
.img-preview--portrait { aspect-ratio: 4 / 5; }
.field-label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.admin { mix-blend-mode: normal; }

/* ---------- 17 後台 ---------- */
.admin {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
}
.admin[hidden] { display: none; }
.admin-bar {
  flex: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
  background: var(--surface-solid);
}
.admin-title { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.admin-title strong { font-weight: 500; font-size: 1.15rem; }
.admin-status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  white-space: nowrap;
}
.admin-status.is-dirty { color: var(--ink); border-color: var(--line-strong); }
.admin-actions { display: flex; align-items: center; gap: 0.5rem; }
.admin-more { position: relative; }
.admin-more summary { list-style: none; cursor: pointer; }
.admin-more summary::-webkit-details-marker { display: none; }
.admin-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 5;
  min-width: 190px;
  padding: 0.4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: var(--surface-solid);
  box-shadow: var(--shadow-sm);
  display: grid;
}
.admin-menu button {
  text-align: left;
  padding: 0.6rem 0.8rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 0.9rem;
}
.admin-menu button:hover { background: var(--surface-hover); }

.admin-body {
  flex: 1;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 0;
}
.admin-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 0.75rem;
  border-right: 1px solid var(--line);
  overflow: auto;
}
.admin-tabs button {
  text-align: left;
  padding: 0.65rem 0.9rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}
.admin-tabs button:hover { color: var(--ink); }
.admin-tabs button.is-active { background: var(--surface-hover); color: var(--ink); font-weight: 600; }
.admin-tabs button.is-add { margin-top: 0.4rem; border-top: 1px solid var(--line); border-radius: 0; padding-top: 0.9rem; }
.admin-main {
  overflow: auto;
  padding: clamp(1rem, 3vw, 2rem);
  padding-bottom: 6rem;
}

.admin-section { max-width: 860px; margin-bottom: 2.5rem; }
.admin-section h2 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif-tc);
  font-weight: 600;
  font-size: 1.4rem;
}
.admin-section h2 .count { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); font-weight: 400; }
.admin-section-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.admin-section > .hint { margin: 0.35rem 0 1rem; }
.hint { color: var(--muted); font-size: 0.84rem; }

.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 1rem; }
.field { display: grid; gap: 0.35rem; grid-column: 1 / -1; }
.field--short { grid-column: auto; }
.field > span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input[type="text"],
.field input[type="password"],
.field textarea,
.field select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
}
.field textarea { resize: vertical; min-height: 5.5rem; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); background: var(--surface-hover); }
.field--check { grid-template-columns: auto 1fr; align-items: center; gap: 0.6rem; }
.field--check input { width: 18px; height: 18px; accent-color: var(--ink); }
.field--check span { font-family: inherit; font-size: 0.92rem; text-transform: none; letter-spacing: 0; color: var(--ink); }

.rows { display: grid; gap: 0.5rem; }
.row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.row-thumb {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--cover-bg, var(--cover-a));
}
.row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.row-title { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.6rem; }
.row-title strong { font-weight: 600; }
.row-sub { flex-basis: 100%; font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { padding: 0.1rem 0.5rem; border-radius: 999px; border: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; }
.row-actions { display: flex; align-items: center; gap: 0.3rem; flex-shrink: 0; }
.row-actions .icon-btn { width: 34px; height: 34px; font-size: 0.95rem; }
.icon-btn:disabled { opacity: 0.35; cursor: default; }
.icon-btn--danger:hover { background: var(--accent-fill); color: var(--accent-ink); }

.item-form {
  margin-bottom: 0.75rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: var(--surface-solid);
  box-shadow: var(--shadow-sm);
}
.item-form-head { margin-bottom: 1rem; font-weight: 500; font-size: 1.05rem; }
.item-form-actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1rem; }
.img-field { display: grid; grid-template-columns: 180px 1fr; gap: 1rem; align-items: center; margin-bottom: 1.1rem; }
.img-preview {
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--cover-bg, var(--cover-a));
  display: grid;
  place-items: center;
  padding: 0.5rem;
  text-align: center;
}
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.img-actions { display: grid; gap: 0.6rem; justify-items: start; }
.img-actions .btn { cursor: pointer; }

.admin-help ol { padding-left: 1.3rem; list-style: decimal; color: var(--ink-2); line-height: 1.8; margin: 1rem 0 1.5rem; }
.admin-help li + li { margin-top: 0.5rem; }

.admin-floating {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-solid);
  box-shadow: var(--shadow-sm);
  transform: translateX(-50%);
  font-size: 0.86rem;
  max-width: calc(100% - 2rem);
}
.admin-floating[hidden] { display: none; }

.admin-gate { border: 0; padding: 0; background: transparent; }
.admin-gate::backdrop { background: rgba(0, 0, 0, 0.7); }
.admin-gate-form {
  width: min(360px, 92vw);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: var(--surface-solid);
  color: var(--ink);
}
.admin-gate-form h2 { font-weight: 500; font-size: 1.3rem; margin-bottom: 1rem; }
.admin-gate-actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1rem; }
.gate-forgot { margin-left: 0.6rem; color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }
.confirm-text { font-size: 1rem; line-height: 1.6; }






/* ---------- 書法筆畫背景（Lovart 生成、去背） ----------
   三層動態：1) 寫出：沿筆勢擦出 + 墨暈（由模糊到清晰）2) 呼吸：透明度慢慢起伏
   3) 漂移：慢速漂動 + 滑鼠與捲動視差（motion.js 控制外層 .stroke-wrap） */
.stroke-wrap { position: absolute; pointer-events: none; z-index: 0; will-change: transform; translate: var(--px, 0) var(--py, 0); }
.stroke { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; mix-blend-mode: screen; opacity: 0;
  clip-path: inset(0 0 100% 0); filter: blur(14px); transform: scale(1.06);
  transition: clip-path 2.6s cubic-bezier(0.6, 0, 0.2, 1), filter 2.2s ease 0.4s, transform 2.6s ease, opacity 1.2s ease; }
.stroke.is-on { opacity: var(--ink-op, 0.42); clip-path: inset(0 0 0 0); filter: blur(0); transform: none; animation: ink-breathe 9s ease-in-out 3s infinite; }
.stroke--h { clip-path: inset(0 100% 0 0); }
[data-theme="light"] .stroke { filter: invert(1) blur(14px); mix-blend-mode: multiply; }
[data-theme="light"] .stroke.is-on { filter: invert(1); --ink-op: 0.78; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .stroke { filter: invert(1) blur(14px); mix-blend-mode: multiply; } :root:not([data-theme="dark"]) .stroke.is-on { filter: invert(1); --ink-op: 0.3; } }
@keyframes ink-breathe { 0%, 100% { opacity: var(--ink-op, 0.42); } 50% { opacity: calc(var(--ink-op, 0.42) * 0.7); } }
@keyframes ink-drift { 0% { translate: 0 0; rotate: 0deg; } 50% { translate: 1.2% -1.5%; rotate: 0.6deg; } 100% { translate: 0 0; rotate: 0deg; } }
.stroke-wrap > .stroke { animation-fill-mode: both; }
.stroke-wrap.is-on { animation: ink-drift 18s ease-in-out infinite; }
/* 位置與大小：當背景，放大，壓在文字後面 */
.opening .stroke-wrap { left: -5vw; top: 8vh; height: 84vh; width: 82vw; --ink-op: 0.72; }
.home-index .stroke-wrap { right: -16vw; top: 6%; width: 72vw; height: 88%; --ink-op: 0.16; }
.about .stroke-wrap { left: -12vw; top: 6%; width: 78vw; height: 88%; --ink-op: 0.36; }
.contact .stroke-wrap { right: -6vw; top: 6%; width: 64vw; height: 88%; --ink-op: 0.42; }
.opening-text, .home-index .showcase-body, .about-body, .contact-body, .page-head, .section-head { position: relative; z-index: 1; }
.contact, .opening, .home-index { overflow: hidden; position: relative; }
.about { overflow: clip; position: relative; } /* clip 不會變成捲動容器，About 的個人照才能 sticky */
@media (max-width: 860px) {
  .opening .stroke-wrap { left: -16vw; top: 8vh; height: 70vh; width: 110vw; --ink-op: 0.4; }
  .about .stroke-wrap { width: 110vw; left: -22vw; }
  .contact .stroke-wrap { width: 100vw; right: -18vw; }
  .home-index .stroke-wrap { width: 120vw; right: -20vw; }
}
/* 一筆一劃寫出來（SVG 遮罩沿筆順推進） */
.stroke--write { clip-path: none; transform: none; filter: none; mix-blend-mode: normal; transition: opacity 0.6s ease; }
.stroke-wrap:has(.stroke--write) { will-change: auto; }
.stroke--write.is-on { clip-path: none; transform: none; animation: ink-breathe 9s ease-in-out var(--total, 6s) infinite; }
.stroke--write .wpath { fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.stroke--write.is-on .wpath { animation: ink-write var(--d, 1s) linear var(--wait, 0s) forwards; }
@keyframes ink-write { to { stroke-dashoffset: 0; } }
.stroke--write .stroke-final { opacity: 0; }
.stroke--write.is-on .stroke-final { animation: ink-final 1.4s ease calc(var(--total, 6s) - 0.2s) forwards; }
@keyframes ink-final { to { opacity: 1; } }
[data-theme="light"] .stroke--write { filter: invert(1); }
[data-theme="light"] .stroke--write.is-on { filter: invert(1); --ink-op: 0.82; }
@media (prefers-reduced-motion: reduce) {html:not([data-motion="always"]) .stroke--write .wpath { stroke-dashoffset: 0 !important; animation: none !important; }html:not([data-motion="always"]) .stroke--write .stroke-final { opacity: 1 !important; animation: none !important; } }
@media (prefers-reduced-motion: reduce) {html:not([data-motion="always"]) .stroke, html:not([data-motion="always"]) .stroke.is-on { clip-path: none !important; filter: none !important; transform: none !important; animation: none !important; opacity: var(--ink-op, 0.4); }html:not([data-motion="always"]) .stroke-wrap.is-on { animation: none !important; } }

/* ---------- 三語：中文小字、語言切換 ---------- */
.sub { display: block; margin-top: 0.35em; font-family: var(--font-sans); font-weight: 300; font-size: 0.5em; letter-spacing: 0.04em; line-height: 1.6; color: var(--muted); }
.opening-statement + .sub--opening { font-size: clamp(0.95rem, 1.4vw, 1.2rem); margin-top: 0.9rem; max-width: 40em; }
.sub--head { display: inline; margin: 0 0 0 0.8em; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: none; }
.sub--contact { font-size: clamp(1rem, 1.8vw, 1.4rem); margin-top: 0.2rem; }
.section-head p .sub { font-size: 0.92rem; }
.manifesto-lead .sub { font-size: clamp(1rem, 1.5vw, 1.25rem); }
.manifesto-lead--long { font-size: clamp(1.35rem, 2vw, 1.85rem); line-height: 1.42; max-width: 30em; text-wrap: pretty; } /* 第一段很長時就跟其他段落同一個字級 */
.manifesto-lead--long .sub { font-size: 0.95rem; } /* 長版第一段的中文副文，跟後面段落的副文同大小 */ /* 第一段很長時縮小一級，不然整頁都是大字 */
.manifesto-more .sub, .manifesto-lead--long .sub { font-size: 0.95rem; margin-top: 0.9rem; line-height: 1.85; } /* 中文副文跟英文之間多留一口氣 */
.statement .sub { font-size: 0.95rem; }
.facts .sub { font-size: 0.82rem; margin-top: 0.15rem; }
.sub-inline { margin-left: 0.5em; font-family: var(--font-sans); font-weight: 300; font-size: 0.85em; color: var(--muted); letter-spacing: 0.06em; }
html[data-lang="ja"] body { font-family: "DM Sans", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", var(--font-sans); }
html[data-lang="ja"] .opening-statement, html[data-lang="ja"] .manifesto-lead, html[data-lang="ja"] .contact-title { font-family: "Cormorant Garamond", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif; font-weight: 300; }
html[data-lang="ja"] .opening-statement { font-size: clamp(2rem, 5.2vw, 4.8rem); line-height: 1.25; letter-spacing: 0.02em; }
html[data-lang="ja"] .manifesto-lead { font-size: clamp(1.7rem, 3.8vw, 3.4rem); line-height: 1.3; letter-spacing: 0.02em; }
html[data-lang="ja"] .contact-title { font-size: clamp(2.4rem, 6vw, 5.5rem); line-height: 1.2; }
.lang-switch { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.72rem; letter-spacing: 0.12em; }
.lang-switch i { font-style: normal; color: var(--muted); opacity: 0.6; }
.lang-switch button { border: 0; background: none; padding: 0.2rem 0; cursor: pointer; color: var(--muted); opacity: 0.6; transition: opacity 0.2s, color 0.2s; }
.lang-switch button.is-active { color: var(--ink); opacity: 1; }
.lang-switch button:hover { opacity: 1; }
.tools .lang-switch { justify-self: end; }

/* ---------- Teaching / Awards ---------- */
.entries { border-top: 1px solid var(--line); }
.entry { display: grid; grid-template-columns: 7rem 1fr; gap: 1.5rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.entry-year { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-top: 0.55rem; }
.entry-body h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.2; }
.entry--gold .entry-body h3::after { content: ""; display: inline-block; width: 0.45em; height: 0.45em; margin-left: 0.5em; border-radius: 50%; background: var(--fill-gradient); vertical-align: middle; }
.entry-body .label-meta { margin-top: 0.3rem; }
.entry-desc { margin-top: 0.5rem; color: var(--muted); max-width: 60ch; }
@media (max-width: 600px) { .entry { grid-template-columns: 1fr; gap: 0.3rem; } .entry-year { padding-top: 0; } .lang-switch { gap: 0.25rem; } }


/* ---------- 多頁：內頁標題、分頁、首頁索引、換頁淡出 ---------- */
#app { transition: opacity 0.18s ease; }
#app.is-leaving { opacity: 0; }
.page-head { padding: calc(var(--top-h) + clamp(2rem, 8vh, 6rem)) var(--gutter) clamp(1.5rem, 4vh, 3rem); }
.page-back { display: inline-block; margin-bottom: 1.6rem; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); transition: color 0.2s; }
.page-back:hover { color: var(--ink); }
.page-title { font-family: var(--font-display); font-weight: 300; font-size: clamp(3rem, 9vw, 8rem); line-height: 1; letter-spacing: -0.01em; animation: ink-in 1.4s var(--ease) both; }
@keyframes ink-in { from { opacity: 0; filter: blur(10px); transform: translateY(12px); } to { opacity: 1; filter: blur(0); transform: none; } }
.page-title .sub--page { font-size: clamp(1rem, 1.8vw, 1.4rem); margin-top: 0.6rem; }
.page-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 2rem; margin-top: 1.2rem; }
.page-meta .count { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.page-meta p { font-size: 1.15rem; color: var(--muted); max-width: 46em; }
main[data-route]:not([data-route="home"]) .section { padding-top: 0; }
.soon--page { padding: 1rem var(--gutter) 6rem; font-family: var(--font-display); font-size: 1.6rem; color: var(--muted); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: clamp(3rem, 8vh, 6rem) var(--gutter) 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.pager a { display: grid; gap: 0.35rem; font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2.2rem); line-height: 1.1; color: var(--ink-2); transition: color 0.2s; }
.pager a:hover { color: var(--ink); }
.pager-next { text-align: right; }
.home-index .index { padding: 2vh 0 8vh; }
.home-index .index-btn { text-decoration: none; }
.home-index .index-title .sub-inline { font-size: 0.5em; }
.about .page-head, .contact .page-head { padding-left: 0; padding-right: 0; padding-top: 0; }
main[data-route="about"] .section.about, main[data-route="contact"] .section.contact { padding-top: calc(var(--top-h) + clamp(2rem, 8vh, 6rem)); }
main[data-route="home"] .contact .section-head { margin-top: 0; }
@media (max-width: 600px) { .pager { grid-template-columns: 1fr; } .pager-next { text-align: left; } }


/* 放大檢視：多張圖縮圖列；後台：額外圖片 */
.lb-thumbs { grid-column: 1 / -1; display: flex; gap: 0.4rem; margin-top: 0.6rem; }
.lb-thumbs:empty { display: none; }
.lb-thumbs button { width: 48px; height: 48px; padding: 0; border: 1px solid var(--line); background: #000; cursor: pointer; opacity: 0.55; transition: opacity 0.2s, border-color 0.2s; display: grid; place-items: center; color: var(--ink); }
.lb-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumbs button.is-active, .lb-thumbs button:hover { opacity: 1; border-color: var(--ink); }
.extra-images { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }
.extra-thumb { position: relative; width: 84px; height: 84px; border: 1px solid var(--line); }
.extra-thumb img { width: 100%; height: 100%; object-fit: cover; }
.extra-thumb .icon-btn { position: absolute; width: 24px; height: 24px; font-size: 0.7rem; background: var(--surface-solid); }
.extra-thumb [data-extra-remove] { top: -8px; right: -8px; }
.extra-thumb [data-extra-main] { bottom: -8px; right: -8px; }


/* ---------- 年代表 ---------- */
.timeline { position: relative; margin: 0 var(--gutter); padding-left: 0; }
.timeline::before { content: ""; position: absolute; left: calc(7rem + 0.45rem); top: 0; bottom: 0; width: 1px; background: var(--line-strong); }
.tl-item { display: grid; grid-template-columns: 7rem 1rem 1fr; gap: 0 1.5rem; padding: 1.4rem 0; align-items: start; }
.tl-year { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.4rem, 2.4vw, 2.2rem); line-height: 1; color: var(--ink); padding-top: 0.1rem; text-align: right; }
.tl-dot { width: 9px; height: 9px; margin-top: 0.55rem; border-radius: 50%; background: var(--bg); border: 1px solid var(--ink); justify-self: center; }
.tl-award .tl-dot { background: var(--ink); }
.tl-gold .tl-dot { background: var(--fill-gradient); border-color: transparent; box-shadow: 0 0 0 4px var(--accent-soft); }
.tl-body h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.3rem, 2vw, 1.8rem); line-height: 1.2; }
.tl-type { display: block; margin-bottom: 0.3rem; }
.tl-body .label-meta { margin-top: 0.25rem; }
@media (max-width: 600px) {
  .timeline::before { left: 0.45rem; }
  .tl-item { grid-template-columns: 1rem 1fr; }
  .tl-year { grid-column: 2; text-align: left; font-size: 1.2rem; margin-bottom: 0.3rem; }
  .tl-dot { grid-row: 1 / span 2; }
}

/* ---------- 動態效果（motion.js） ---------- */
/* 開場文字逐字浮現 */
.opening-statement .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.opening-statement .wi { display: inline-block; transform: translateY(110%); opacity: 0; filter: blur(8px); transition: transform 1.1s var(--ease), opacity 0.8s var(--ease), filter 1.4s ease; transition-delay: calc(0.25s + var(--i, 0) * 60ms); }
html.is-ready .opening-statement .wi { transform: none; opacity: 1; filter: blur(0); }
.opening .eyebrow { opacity: 0; transform: translateY(8px); transition: opacity 1s var(--ease) 0.15s, transform 1s var(--ease) 0.15s; }
html.is-ready .opening .eyebrow { opacity: 1; transform: none; }
.opening-bg img { animation: none; transform: scale(1.08); will-change: transform; transition: filter 0.6s; }
.opening-bg { opacity: 0; animation: fade-in 1.8s var(--ease) 0.1s both; }
.opening-text { will-change: transform, opacity; }
.about-bg img { will-change: transform; transform: scale(1.12); }
@keyframes fade-in { to { opacity: 1; } }

/* 髮絲線畫入 */
.section-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--line-strong); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease); }
.section-head { position: relative; border-bottom-color: transparent; }
.section-head.is-visible::after { transform: scaleX(1); }
.section-head h2, .section-head .count { opacity: 0; transform: translateY(8px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.section-head.is-visible h2, .section-head.is-visible .count { opacity: 1; transform: none; }
.section-head.is-visible .count { transition-delay: 0.15s; }
.index-item, .post, .facts > div, .honors li { opacity: 0; transform: translateY(10px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0ms); }
.index-item.is-visible, .post.is-visible, .facts > div.is-visible, .honors li.is-visible { opacity: 1; transform: none; }

/* 顆粒微流動 */
body::before { animation: grain 1.2s steps(4) infinite; }
@keyframes grain {
  0% { background-position: 0 0; } 25% { background-position: -40px 60px; } 50% { background-position: 80px -20px; } 75% { background-position: -60px -80px; } 100% { background-position: 0 0; }
}

/* 柔光跟著游標 */
.glow { position: fixed; left: 0; top: 0; z-index: 0; width: 60vmax; height: 60vmax; border-radius: 50%; pointer-events: none; background: radial-gradient(circle at center, var(--orb-1), transparent 60%); opacity: 0.9; mix-blend-mode: screen; will-change: transform; }
[data-theme="light"] .glow { mix-blend-mode: multiply; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .glow { mix-blend-mode: multiply; } }
#app { position: relative; z-index: 1; }

/* 自訂游標 */
html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }
/* 游標：中心永遠有一顆實心點（真正的點擊位置），懸停時外圈才出現；點與圈都描一圈底色邊，深淺照片上都看得到 */
.cursor { position: fixed; left: 0; top: 0; z-index: 1000; width: 0; height: 0; pointer-events: none; will-change: transform; }
.cursor::before { content: ""; position: absolute; left: 0; top: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 1.5px var(--bg); transform: translate(-50%, -50%); transition: transform 0.2s var(--ease); }
.cursor::after { content: ""; position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--ink); box-shadow: 0 0 0 1px var(--bg), inset 0 0 0 1px var(--bg); opacity: 0; transform: translate(-50%, -50%) scale(0.5); transition: transform 0.3s var(--ease), opacity 0.3s; }
html.cursor-hover .cursor::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }
html.cursor-down .cursor::before { transform: translate(-50%, -50%) scale(0.6); }
html.cursor-down .cursor::after { transform: translate(-50%, -50%) scale(0.8); }
html.cursor-out .cursor { opacity: 0; }
.admin, .admin * { cursor: auto !important; }

/* 放大檢視淡入 */
.lightbox[open] { animation: lb-in 0.5s var(--ease); }
.lightbox[open] .lb-media img { animation: lb-img 0.7s var(--ease); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes lb-img { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }

/* 舞台換圖：淡入 + 微縮放 */
.stage-media img { transition: opacity 0.7s var(--ease), transform 1.4s var(--ease); }
.stage-media img.is-entering { opacity: 0; transform: scale(1.03); }

/* 選單連結底線滑入 */
.menu a, .tools a { position: relative; }
.menu a::after, .tools a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
.menu a:hover::after, .tools a:hover::after, .menu a.is-active::after { transform: scaleX(1); transform-origin: left; }

@media (prefers-reduced-motion: reduce) {html:not([data-motion="always"]) .opening-statement .wi, html:not([data-motion="always"]) .opening .eyebrow, html:not([data-motion="always"]) .section-head h2, html:not([data-motion="always"]) .section-head .count, html:not([data-motion="always"]) .index-item, html:not([data-motion="always"]) .post, html:not([data-motion="always"]) .facts > div, html:not([data-motion="always"]) .honors li { opacity: 1 !important; transform: none !important; transition: none !important; }html:not([data-motion="always"]) .section-head::after { transform: scaleX(1); }html:not([data-motion="always"]) .section-head { border-bottom-color: var(--line); }html:not([data-motion="always"]) .opening-bg { opacity: 1; }html:not([data-motion="always"]) .glow, html:not([data-motion="always"]) .cursor { display: none; }html:not([data-motion="always"])html.has-cursor, html:not([data-motion="always"])html.has-cursor a, html:not([data-motion="always"])html.has-cursor button { cursor: auto; }
}
@media (hover: none) {
  .glow, .cursor { display: none; }
}

/* ---------- 動態 ---------- */
.reveal.is-visible { animation: rise 0.9s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.12); } to { transform: scale(1.04); } }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@keyframes float-a { to { transform: translate3d(8vw, 6vh, 0); } }
@keyframes float-b { to { transform: translate3d(-7vw, 8vh, 0); } }
@media (prefers-reduced-motion: reduce) {html:not([data-motion="always"]) *, html:not([data-motion="always"]) *::before, html:not([data-motion="always"]) *::after { animation: none !important; transition: none !important; }html:not([data-motion="always"])html { scroll-behavior: auto; }html:not([data-motion="always"]) .opening-bg img { transform: none; }
}

/* ---------- 響應式 ---------- */
@media (max-width: 1024px) {
  .grid { columns: 2 15rem; }
  .showcase-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .top { grid-template-columns: 1fr auto; height: auto; padding-bottom: 0.9rem; }
  .menu { display: none; }
  .tools { grid-auto-flow: column; gap: 1.2rem; align-items: center; }
  .nav-toggle { display: block; }
  .top.is-open .menu { display: block; position: absolute; top: 100%; left: 0; right: 0; padding: 0.5rem var(--gutter) 1.25rem; background: var(--nav-bg); border-bottom: 1px solid var(--line); }
  .top.is-open .menu a { display: block; padding: 0.75rem 0; font-size: 0.85rem; border-bottom: 1px solid var(--line); opacity: 1; }
  .showcase-body { grid-template-columns: 1fr; }
  .index { padding: 0 0 2rem; }
  .stage { display: none; }
  .index-btn { grid-template-columns: 2rem 1fr; }
  .index-meta { grid-column: 2; }
  .index-item { position: relative; }
  .index-thumb { display: block; width: 100%; aspect-ratio: var(--ratio, 4/5); max-height: 70vh; object-fit: cover; margin-top: 1.25rem; }
  .index-item .index-btn { padding-top: 0.6rem; }
  .about-body--portrait { grid-template-columns: 1fr; }
  .portrait { grid-column: 1; grid-row: auto; max-width: 420px; }
  .about-facts { grid-template-columns: 1fr; }
  .track { grid-template-columns: 2rem 1fr auto; }
  .track-cover { display: none; }
  .lb-caption { grid-template-columns: 1fr; gap: 0.2rem; }
  .img-field--settings { grid-template-columns: 1fr; }
  .admin-body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .admin-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 0.6rem 0.75rem; }
  .admin-tabs button { white-space: nowrap; }
}
@media (max-width: 600px) {
  .grid { columns: 2 8rem; column-gap: 0.9rem; }
  .work { margin-bottom: 1.4rem; }
  .label { flex-direction: column; gap: 0.1rem; font-size: 0.76rem; }
  .label > span:first-child { white-space: normal; }
  .facts > div { grid-template-columns: 5.5rem 1fr; }
  .fields { grid-template-columns: 1fr; }
  .field--short { grid-column: 1 / -1; }
  .admin-actions .btn { padding: 0.5rem 0.75rem; font-size: 0.8rem; }
  .admin-status { display: none; }
  .row { flex-wrap: wrap; }
  .row-actions { width: 100%; justify-content: flex-end; }
}

/* ---------- 首頁個人介紹 ---------- */
.profile { position: relative; padding-top: clamp(4rem, 12vh, 9rem); padding-bottom: clamp(3rem, 10vh, 7rem); }
.profile-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2.5rem, 6vh, 4rem) clamp(2.5rem, 7vw, 7rem); align-items: start; }
.profile-body--portrait { grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr); }
.profile-portrait { margin: 0; position: sticky; top: calc(var(--top-h) + 2rem); }
.profile-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; display: block; filter: grayscale(0.15); }
.profile-text { display: grid; gap: 1.6rem; max-width: 46rem; }
.profile-eyebrow { font: 500 0.72rem/1.4 var(--font-body); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.4rem; }
.profile-lead { font: 300 clamp(1.5rem, 2.4vw, 2.2rem)/1.3 var(--font-display); letter-spacing: 0; margin: 0; }
.profile-lead em { font-style: italic; color: var(--muted); }
.profile-more { font: 300 clamp(1.1rem, 1.5vw, 1.4rem)/1.55 var(--font-display); color: var(--muted); margin: 0; }
.profile-more .sub, .profile-lead .sub { display: block; }
.profile-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem clamp(1.5rem, 4vw, 3.5rem); margin: 1rem 0 0; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.profile-facts dt { font: 500 0.68rem/1.4 var(--font-body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.35rem; }
.profile-facts dd { margin: 0; font: 300 1rem/1.5 var(--font-body); }
.profile-link { justify-self: start; font: 400 0.9rem/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 0.45rem; transition: border-color 0.3s ease, letter-spacing 0.3s ease; }
.profile-link:hover { border-color: var(--fg); letter-spacing: 0.14em; }
@media (max-width: 820px) {
  .profile-body--portrait { grid-template-columns: 1fr; }
  .profile-portrait { position: static; max-width: 360px; }
  .profile-facts { grid-template-columns: 1fr; }
}

/* ---------- 音樂：專輯播放器與動態歌詞 ---------- */
.music-page { display: grid; gap: clamp(3rem, 8vh, 6rem); }
.album { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; padding-top: clamp(1.5rem, 4vh, 3rem); border-top: 1px solid var(--line); }
.album-side { position: sticky; top: calc(var(--top-h) + 1.5rem); display: grid; gap: 1.4rem; }
.album-cover { position: relative; aspect-ratio: 1; background: #0c0c0c; overflow: hidden; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.6s ease; }
.album.is-playing .album-cover img { transform: scale(1.04); }
.album-cover-blank { display: grid; place-items: center; height: 100%; font: 300 5rem/1 var(--font-display); color: var(--muted); }
.album-play { position: absolute; inset: auto 1rem 1rem auto; width: 3.4rem; height: 3.4rem; border-radius: 50%; border: 1px solid rgba(255,255,255,0.35); background: rgba(0,0,0,0.45); backdrop-filter: blur(8px); color: #fff; cursor: pointer; display: grid; place-items: center; opacity: 0; transform: translateY(6px); transition: opacity 0.4s ease, transform 0.4s ease, background 0.3s; }
.album-cover:hover .album-play, .album.is-playing .album-play { opacity: 1; transform: none; }
.album-play:hover { background: rgba(255,255,255,0.15); }
.ico-play, .ico-pause { display: block; }
.ico-play { width: 0; height: 0; border-left: 0.75rem solid currentColor; border-top: 0.45rem solid transparent; border-bottom: 0.45rem solid transparent; margin-left: 0.15rem; }
.ico-pause { width: 0.7rem; height: 0.85rem; border-left: 0.22rem solid currentColor; border-right: 0.22rem solid currentColor; }
[data-play] .ico-pause, [data-play].is-on .ico-play { display: none; }
[data-play].is-on .ico-pause { display: block; }
.album-head { display: grid; gap: 0.5rem; }
.album-no { font: 500 0.7rem/1 var(--font-body); letter-spacing: 0.2em; color: var(--muted); }
.album-title { font: 300 clamp(2rem, 3.6vw, 3.2rem)/1.05 var(--font-display); letter-spacing: -0.01em; margin: 0; }
.album-meta { font: 500 0.7rem/1.4 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 0; }
.album-note { font: 300 1rem/1.6 var(--font-body); color: var(--muted); margin: 0.2rem 0 0; }
.album-link { justify-self: start; font: 400 0.72rem/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 0.35rem; margin-top: 0.4rem; }
.album-link:hover { border-color: var(--fg); }
.album-main { display: grid; gap: 1.6rem; min-width: 0; }
.player { display: grid; gap: 0.9rem; }
.player-row { display: flex; align-items: center; gap: 0.6rem; }
.p-btn { background: none; border: 1px solid var(--line); color: var(--fg); width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; cursor: pointer; font-size: 0.85rem; transition: border-color 0.25s, background 0.25s; }
.p-btn:hover { border-color: var(--fg); }
.p-btn--main { width: 3rem; height: 3rem; border-color: rgba(255,255,255,0.5); }
.p-now { flex: 1; min-width: 0; padding-left: 0.6rem; }
.p-title { font: 400 1.05rem/1.3 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.p-time { font: 400 0.72rem/1 var(--font-body); letter-spacing: 0.08em; color: var(--muted); font-variant-numeric: tabular-nums; }
.p-progress { position: relative; height: 1.2rem; cursor: pointer; touch-action: none; }
.p-progress::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line-strong); }
.p-bar { position: absolute; left: 0; top: 50%; height: 1px; width: 0; background: var(--fg); }
.p-knob { position: absolute; top: 50%; left: 0; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--fg); transform: translate(-50%, -50%) scale(0); transition: transform 0.2s; }
.p-progress:hover .p-knob, .p-progress:focus-visible .p-knob, .album.is-playing .p-knob { transform: translate(-50%, -50%) scale(1); }
.album-tracks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.atrack { display: flex; align-items: center; gap: 0.5rem; border-bottom: 1px solid var(--line); }
.atrack-btn { flex: 1; display: grid; grid-template-columns: 2.4rem 1fr auto auto; align-items: center; gap: 0.8rem; padding: 0.85rem 0; background: none; border: 0; color: var(--fg); text-align: left; cursor: pointer; min-width: 0; }
.atrack-btn:disabled { cursor: default; color: var(--muted); }
.atrack-no { font: 500 0.68rem/1 var(--font-body); letter-spacing: 0.18em; color: var(--muted); }
.atrack-title { font: 300 1.25rem/1.3 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.3s, transform 0.3s; }
.atrack.is-current .atrack-title { color: var(--fg); }
.atrack-btn:not(:disabled):hover .atrack-title { transform: translateX(4px); }
.atrack-dur { font: 400 0.72rem/1 var(--font-body); color: var(--muted); font-variant-numeric: tabular-nums; min-width: 2.5rem; text-align: right; }
.atrack-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; width: 14px; opacity: 0; transition: opacity 0.3s; }
.atrack-eq i { width: 2px; background: var(--fg); height: 30%; animation: eq 0.9s ease-in-out infinite; animation-play-state: paused; }
.atrack-eq i:nth-child(2) { animation-delay: 0.25s; } .atrack-eq i:nth-child(3) { animation-delay: 0.5s; }
.atrack.is-current .atrack-eq { opacity: 1; }
.atrack.is-playing .atrack-eq i { animation-play-state: running; }
@keyframes eq { 0%, 100% { height: 30%; } 50% { height: 100%; } }
.atrack-mv { background: none; border: 1px solid var(--line); color: var(--muted); font: 500 0.64rem/1 var(--font-body); letter-spacing: 0.16em; padding: 0.4rem 0.6rem; cursor: pointer; transition: color 0.25s, border-color 0.25s; }
.atrack-mv:hover { color: var(--fg); border-color: var(--fg); }
.album-mv { display: grid; gap: 0.6rem; }
.mv-head { display: flex; justify-content: space-between; align-items: center; }
.mv-label { font: 500 0.68rem/1 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.mv-close { background: none; border: 0; color: var(--muted); font-size: 1.4rem; cursor: pointer; line-height: 1; }
.mv-close:hover { color: var(--fg); }
.mv-video, .mv-frame { width: 100%; aspect-ratio: 16 / 9; background: #000; display: block; border: 0; }
/* 歌詞 */
.album-lyrics { position: relative; }
.lyrics { position: relative; max-height: 24rem; overflow-y: auto; scrollbar-width: none; padding: 4rem 0 6rem; mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent); }
.lyrics::-webkit-scrollbar { display: none; }
.lyrics:not(.lyrics--timed) { padding: 1rem 0; mask-image: none; -webkit-mask-image: none; max-height: none; }
.ly { margin: 0; padding: 0.35rem 0; font: 300 clamp(1.3rem, 2.2vw, 1.9rem)/1.35 var(--font-display); color: var(--muted); opacity: 0.45; transform-origin: left center; transition: color 0.5s ease, opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.5s ease; filter: blur(0.6px); }
.lyrics:not(.lyrics--timed) .ly { opacity: 0.85; filter: none; }
.ly[data-t] { cursor: pointer; }
.ly.is-past { opacity: 0.3; filter: blur(0.6px); }
.ly.is-current { color: var(--fg); opacity: 1; filter: blur(0); transform: scale(1.06) translateX(0.2rem); text-shadow: 0 0 24px rgba(255,255,255,0.25); }
.lw { transition: color 0.25s ease; }
.ly.is-current .lw { color: var(--muted); }
.ly.is-current .lw.is-sung { color: var(--fg); }
.lyrics-empty { font: 500 0.7rem/1.4 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); padding: 1rem 0; }
[data-theme="light"] .album-play { background: rgba(255,255,255,0.6); color: #111; border-color: rgba(0,0,0,0.2); }
[data-theme="light"] .ly.is-current { text-shadow: none; }
@media (max-width: 820px) {
  .album { grid-template-columns: 1fr; }
  .album-side { position: static; grid-template-columns: 7rem 1fr; align-items: end; }
  .album-play { inset: auto 0.5rem 0.5rem auto; width: 2.6rem; height: 2.6rem; }
  .album-title { font-size: 1.9rem; }
  .lyrics { max-height: 20rem; }
}
/* 後台：曲目編輯 */
.field--wide { grid-column: 1 / -1; }
.tracks-editor { display: grid; gap: 0.8rem; }
.track-row { border: 1px solid var(--line); padding: 0.9rem; display: grid; gap: 0.7rem; }
.track-row-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--muted); }
.track-row-actions { display: inline-flex; gap: 0.3rem; }
.track-upload { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.4rem; }
/* 後台：歌詞對時 */
.lyric-timer-form { width: min(92vw, 640px); display: grid; gap: 0.9rem; }
.lyric-timer-form audio { width: 100%; }
.lt-lines { list-style: none; margin: 0; padding: 0; max-height: 40vh; overflow: auto; border: 1px solid var(--line); }
.lt-lines li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.8rem; padding: 0.5rem 0.8rem; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 0.95rem; }
.lt-lines li.is-cur { background: rgba(255,255,255,0.08); }
.lt-time { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }
.lt-lines li.is-cur .lt-time { color: var(--fg); }
.lyric-timer kbd { font-family: var(--font-mono); font-size: 0.75em; border: 1px solid var(--line); padding: 0 0.3em; border-radius: 3px; }

/* 平台圖示 */
.ico { width: 1em; height: 1em; vertical-align: -0.15em; margin-right: 0.4em; display: inline-block; }
.links a { display: inline-flex; align-items: center; }
.album-link .ico { width: 1.1em; height: 1.1em; }
.confirm-text { white-space: pre-line; }

/* ---------- 首頁索引：純文字，滑過才浮出小圖 ---------- */
.home-idx { position: relative; overflow: hidden; padding-top: clamp(3rem, 10vh, 7rem); padding-bottom: clamp(3rem, 10vh, 7rem); }
.idx { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; border-top: 1px solid var(--line); max-width: 62rem; }
.idx-item { border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(8px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0ms); }
.idx-item.is-visible { opacity: 1; transform: none; }
.idx-link { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; align-items: baseline; gap: 1rem; padding: 0.95rem 0; text-decoration: none; color: var(--muted); transition: color 0.35s var(--ease), padding-left 0.5s var(--ease); }
.idx-link:hover { color: var(--fg); padding-left: 0.6rem; }
.idx-no { font: 500 0.62rem/1 var(--font-body); letter-spacing: 0.2em; }
.idx-title { font: 300 clamp(1.7rem, 3vw, 2.7rem)/1.15 var(--font-display); letter-spacing: -0.005em; }
.idx-title .sub-inline { font-size: 0.4em; margin-left: 0.7em; vertical-align: 0.15em; letter-spacing: 0.06em; }
.idx-count { font: 300 0.9rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.idx-float { position: fixed; left: 0; top: 0; width: clamp(140px, 16vw, 220px); aspect-ratio: 4 / 5; pointer-events: none; z-index: 5; opacity: 0; transform: translate(-50%, -50%) scale(0.92); transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); overflow: hidden; }
.idx-float.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.idx-float img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(0.15); }
@media (hover: none) { .idx-float { display: none; } }
@media (max-width: 820px) { .idx-link { grid-template-columns: 2.2rem 1fr auto; } .idx-title .sub-inline { display: block; margin-left: 0; } }
/* 首頁上的年代表：緊湊一點 */
.home-timeline .tl-item { padding: 0.85rem 0; }
.home-timeline .tl-body h3 { font-size: 1.35rem; }
.home-timeline .entry-desc { display: none; }

/* 年代表分組：獎項 / 展覽 / 教學·經歷 */
.tl-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem clamp(2rem, 5vw, 5rem); }
.tl-group--award { grid-column: 1 / -1; }
.tl-group-title { font: 300 clamp(1.4rem, 2.2vw, 1.9rem)/1.2 var(--font-display); margin: 0 0 0.6rem var(--gutter); display: flex; align-items: baseline; gap: 0.8rem; }
.tl-group-title .count { font: 400 0.68rem/1 var(--font-body); letter-spacing: 0.18em; color: var(--muted); }
.tl-group-title .sub-inline { font-size: 0.55em; }
.tl-group .timeline { margin-left: var(--gutter); margin-right: 0; }
@media (max-width: 820px) { .tl-groups { grid-template-columns: 1fr; } }

/* 首頁極簡：一句自介 + 更小的肖像；年代表只留年份與標題 */
.profile--min .profile-body--portrait { grid-template-columns: minmax(0, 0.38fr) minmax(0, 1fr); align-items: center; }
.profile--min .profile-lead { font: 300 clamp(1.7rem, 3vw, 2.8rem)/1.25 var(--font-display); }
.profile--min .profile-lead .sub { font-size: 0.45em; margin-top: 0.6em; }
.home-timeline .tl-body { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.9rem; }
.home-timeline .tl-body h3 { margin: 0; }
.home-timeline .tl-body .label-meta { margin: 0; }
.home-timeline .tl-type { width: 100%; }

/* ---------- 大標題分區 + 留白 ---------- */
.section-head--big { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0.4rem 1.5rem; padding-bottom: 1.4rem; margin-bottom: clamp(2.5rem, 7vh, 5rem); border-bottom: 1px solid var(--line); }
.section-head--big .big-eyebrow { grid-column: 1 / -1; font: 500 0.66rem/1 var(--font-body); letter-spacing: 0.24em; color: var(--muted); margin-bottom: 0.6rem; }
.section-head--big h2 { font: 300 clamp(3rem, 8vw, 7rem)/0.95 var(--font-display); letter-spacing: -0.01em; text-transform: none; margin: 0; }
.section-head--big .sub--big { display: block; font-size: clamp(0.85rem, 1.2vw, 1.05rem); letter-spacing: 0.12em; margin-top: 0.8rem; }
.section-head--big .count { font: 300 1.1rem/1 var(--font-display); align-self: end; padding-bottom: 0.3rem; }
.section-head--big p { grid-column: 1 / -1; }
.profile--min { padding-bottom: clamp(2rem, 6vh, 5rem); }
.home-idx .idx { max-width: none; }
.home-timeline { padding-bottom: clamp(2rem, 6vh, 5rem); }
main[data-route="home"] .contact { padding-top: clamp(6rem, 18vh, 14rem); }

/* 索引分成「作品」與「經歷與關於」 */
.idx-groups { display: grid; grid-template-columns: 1fr; gap: clamp(3rem, 8vh, 6rem) 0; position: relative; z-index: 1; }
.idx-group-title { font: 500 0.66rem/1 var(--font-body); letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; display: flex; gap: 0.8rem; align-items: baseline; }
.idx-group-title .sub-inline { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: none; }
.idx-groups .idx { max-width: 62rem; }
.home-idx .idx-title { font-size: clamp(1.5rem, 2.4vw, 2.2rem); }
.nav-gap { height: 0.9rem; }
@media (max-width: 820px) { .idx-groups { grid-template-columns: 1fr; } }
/* 作品 / 經歷 之間的分隔線 */
.idx-groups { gap: 3rem 0; }
.idx-group + .idx-group { padding-top: clamp(2rem, 5vh, 4rem); border-top: 1px solid var(--line-strong); }
.nav-gap { height: 0; border-top: 1px solid var(--line-strong); margin: 0.7rem 0 0.7rem; width: 100%; }
@media (max-width: 820px) {
  .idx-group + .idx-group { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-strong); padding-top: 2rem; }
  .idx-group:first-child { padding-right: 0; }
}

/* 選單分組標籤 */
.nav-label { font: 500 0.5rem/1 var(--font-body); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); opacity: 0.7; margin: 0 0 0.45rem; padding-bottom: 0.35rem; border-bottom: 1px solid var(--line); }
.nav-label--gap { margin-top: 1.1rem; }
.nav-label .sub-inline { font-size: 0.6rem; letter-spacing: 0.08em; text-transform: none; margin-left: 0.4em; }

/* 可收納的選單群組 */
.nav-group { display: grid; }
.nav-group > .nav-label { font: 500 0.6rem/1 var(--font-body); letter-spacing: 0.22em; text-transform: uppercase; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--muted); cursor: pointer; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.35rem 0; margin: 0; width: 100%; opacity: 0.85; transition: color 0.25s, opacity 0.25s; }
.nav-group > .nav-label:hover, .nav-group.is-open > .nav-label { color: var(--fg); opacity: 1; }
.nav-caret { width: 0.4rem; height: 0.4rem; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); transition: transform 0.35s var(--ease); margin-right: 0.15rem; }
.nav-group.is-open .nav-caret { transform: rotate(-135deg); }
.nav-sub { display: grid; gap: 0.32rem; overflow: hidden; max-height: 0; opacity: 0; padding-top: 0; transition: max-height 0.5s var(--ease), opacity 0.35s ease, padding-top 0.35s ease; }
.nav-group.is-open .nav-sub { max-height: 30rem; opacity: 1; padding-top: 0.55rem; }
.nav-group + .nav-group { margin-top: 0.7rem; }
.nav-label--gap { margin-top: 0; }

/* ---------- 手機（≤640px）：防止橫向溢出、縮小字級與欄寬 ---------- */
html, body { overflow-x: clip; }
@media (max-width: 640px) {
  :root { --gutter: 1.25rem; }
  .section { padding-top: clamp(4rem, 12vh, 7rem); }
  .section-head--big h2 { font-size: clamp(2.6rem, 14vw, 4rem); }
  .opening-statement { font-size: clamp(2.1rem, 9.5vw, 3.2rem); }
  .eyebrow { display: flex; flex-wrap: wrap; gap: 0.2rem 0.6rem; }
  .eyebrow .sub-inline { margin-left: 0; display: block; width: 100%; }
  .profile--min .profile-lead { font-size: clamp(1.4rem, 6.4vw, 1.9rem); }
  .profile--min .profile-body--portrait { grid-template-columns: 1fr; }
  .profile-portrait { max-width: 200px; }
  /* 年代表：窄一點的年份欄 */
  .timeline { margin: 0; }
  .tl-group .timeline { margin-left: 0; }
  .tl-group-title { margin-left: 0; }
  .timeline::before { left: calc(3.4rem + 0.45rem); }
  .tl-item { grid-template-columns: 3.4rem 1rem minmax(0, 1fr); gap: 0 0.8rem; }
  .tl-year { font-size: 1rem; }
  .tl-body { min-width: 0; }
  .tl-body h3 { font-size: 1.15rem; }
  .tl-body .label-meta { font-size: 0.62rem; letter-spacing: 0.1em; white-space: normal; }
  /* 索引 */
  .idx-title { font-size: 1.45rem; }
  .idx-title .sub-inline { display: inline; font-size: 0.5em; margin-left: 0.5em; }
  /* 專輯 */
  .album-side { grid-template-columns: 1fr; }
  .album-cover { max-width: 60vw; }
  .album-title { font-size: 1.8rem; }
  .player-row { flex-wrap: wrap; }
  .p-time { width: 100%; text-align: right; }
  .atrack-btn { grid-template-columns: 2rem 1fr auto; }
  .atrack-eq { display: none; }
  .ly { font-size: 1.15rem; }
  .lyrics { max-height: 18rem; }
  /* 聯絡 */
  .contact-title { font-size: clamp(2.8rem, 15vw, 4.5rem); }
  .contact-email { font-size: clamp(1.2rem, 6vw, 2rem); word-break: break-all; }
}

/* 首頁索引：縮小，當成目錄而不是主角 */
.home-idx { padding-top: clamp(4rem, 10vh, 7rem); }
.home-idx .section-head { margin-bottom: clamp(1.5rem, 4vh, 2.5rem); }
.home-idx .idx-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem clamp(3rem, 7vw, 8rem); }
.home-idx .idx-group + .idx-group { border-top: 0; padding-top: 0; }
.home-idx .idx-groups .idx { max-width: 30rem; }
.home-idx .idx-link { padding: 0.55rem 0; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: 0.6rem; }
.home-idx .idx-link:hover { padding-left: 0.3rem; }
.home-idx .idx-no { font-size: 0.56rem; }
.home-idx .idx-title { font-size: clamp(1.1rem, 1.5vw, 1.35rem); }
.home-idx .idx-title .sub-inline { font-size: 0.55em; margin-left: 0.5em; }
.home-idx .idx-count { font-size: 0.72rem; }
.home-idx .idx-group-title { margin-bottom: 0.4rem; }
.home-index .stroke-wrap { right: -20vw; top: 0; width: 60vw; height: 100%; --ink-op: 0.12; }
@media (max-width: 640px) {
  .home-idx .idx-groups { grid-template-columns: 1fr; gap: 1.6rem 0; }
  .home-idx .idx-title { font-size: 1.05rem; }
  .home-idx .idx-link { padding: 0.45rem 0; }
}

.profile--min .profile-more { font: 300 clamp(1rem, 1.25vw, 1.15rem)/1.7 var(--font-body); color: var(--muted); max-width: 40rem; }
.profile--min .profile-more .sub { display: block; margin-top: 0.5rem; }
.manifesto { scroll-margin-top: calc(var(--top-h) + 1rem); }

/* 首頁順序：介紹 → 聯絡 → 軌跡 → 索引 */
main[data-route="home"] .contact { padding-bottom: clamp(3rem, 8vh, 6rem); }
main[data-route="home"] .home-idx { padding-bottom: clamp(5rem, 14vh, 10rem); }
/* 年代表：文字允許換行，不被邊界切掉 */
.tl-item { grid-template-columns: 7rem 1rem minmax(0, 1fr); }
.tl-body { min-width: 0; }
.tl-body .label-meta, .tl-body h3 { white-space: normal; overflow-wrap: anywhere; }
.entries .label-meta { white-space: normal; }
/* 樂：大一點，手機不擋字 */
.home-index .stroke-wrap { right: -16vw; top: -10%; width: 80vw; height: 122%; --ink-op: 0.16; }
@media (max-width: 640px) { .home-index .stroke-wrap { right: -45vw; width: 110vw; --ink-op: 0.08; } }

/* ---------- 專輯：發行資訊與平台 icon ---------- */
.album-platforms { list-style: none; margin: 0.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; }
.album-platforms a { display: inline-flex; align-items: center; gap: 0.4rem; font: 500 0.66rem/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color 0.25s; }
.album-platforms a:hover { color: var(--fg); }
.album-platforms .ico { width: 1.25rem; height: 1.25rem; margin: 0; }
.platforms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- 換頁動畫與內頁進場 ---------- */
main.page-enter { opacity: 0; transform: translateY(14px); }
main.page-enter-done { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.8s var(--ease); }
.page-title { animation: title-in 1s var(--ease) both; }
.page-meta { animation: rise 1s var(--ease) 0.15s both; }
@keyframes title-in { from { opacity: 0; transform: translateY(18px); letter-spacing: 0.02em; } to { opacity: 1; transform: none; letter-spacing: 0; } }
.grid .work:nth-child(n) { transition-delay: calc(var(--i, 0) * 60ms); }
.grid .work:nth-child(1) { --i: 0; } .grid .work:nth-child(2) { --i: 1; } .grid .work:nth-child(3) { --i: 2; } .grid .work:nth-child(4) { --i: 3; } .grid .work:nth-child(5) { --i: 4; } .grid .work:nth-child(6) { --i: 5; } .grid .work:nth-child(7) { --i: 6; } .grid .work:nth-child(8) { --i: 7; }
.page-meta p { font: 300 clamp(1.05rem, 1.4vw, 1.3rem)/1.6 var(--font-display); color: var(--muted); max-width: 40em; margin: 0.6rem 0 0; }
.page-meta p .sub { display: block; font-family: var(--font-sans); font-size: 0.85rem; margin-top: 0.3rem; }
@media (prefers-reduced-motion: reduce) {html:not([data-motion="always"]) main.page-enter { opacity: 1; transform: none; }html:not([data-motion="always"]) .page-title, html:not([data-motion="always"]) .page-meta { animation: none; } }

/* 連字號的英文字不在連字號處斷行 */
.nb { white-space: nowrap; }
.tl-body h3 .cjk, .entry-body h3 .cjk { font-size: 0.72em; letter-spacing: 0.02em; } /* 英文標題內的中文縮到與大寫等高 */

/* Instagram / Threads 嵌入 */
.post--social { display: grid; gap: 0.6rem; }
.social-embed { margin-top: 0.8rem; display: grid; gap: 0.5rem; max-width: 540px; }
.social-embed blockquote:empty { display: none; }
.social-embed iframe { max-width: 100%; }
.social-fallback { display: inline-flex; align-items: center; gap: 0.5rem; font: 500 0.68rem/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); text-decoration: none; border: 1px solid var(--line); padding: 0.55rem 0.8rem; justify-self: start; transition: color 0.25s, border-color 0.25s; }
.social-fallback:hover { color: var(--fg); border-color: var(--fg); }
.social-fallback .ico { width: 1.1rem; height: 1.1rem; margin: 0; }

/* ---------- 書法字：背景大字（2026-09-16，使用者：放在背景、大一點、有氣勢） ----------
   開場「創」：靠右上方的大字，壓在文字後面但不整個蓋住主標；首頁索引「樂」：右側大背景字。 */
.opening .stroke-wrap { left: auto; right: 17vw; top: 4vh; width: 48vw; height: 80vh; --ink-op: 0.66; }
.home-index .stroke-wrap { right: -6vw; left: auto; top: -6%; width: 62vw; height: 112%; --ink-op: 0.2; }
.about .stroke-wrap { left: -10vw; top: 4%; width: 70vw; height: 92%; --ink-op: 0.34; }
.contact .stroke-wrap { right: -4vw; left: auto; top: 4%; width: 58vw; height: 92%; --ink-op: 0.4; }
@media (max-width: 860px) {
  .opening .stroke-wrap { left: 6vw; right: auto; top: 6vh; width: 88vw; height: 50vh; --ink-op: 0.5; }
  .home-index .stroke-wrap { right: -28vw; width: 100vw; --ink-op: 0.12; }
  .about .stroke-wrap { width: 110vw; left: -22vw; }
  .contact .stroke-wrap { width: 100vw; right: -18vw; }
}

/* 背景音樂開關：三根小豎條，開著時輕輕起伏 */
.bgm-toggle { border: 0; background: none; padding: 0.2rem 0.3rem; cursor: pointer; color: inherit; opacity: 0.55; transition: opacity 0.2s; line-height: 0; }
.bgm-toggle:hover, .bgm-toggle.is-on { opacity: 1; }
.bgm-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.bgm-bars i { display: block; width: 2px; height: 4px; background: currentColor; border-radius: 1px; transform-origin: bottom; }
.bgm-toggle.is-on .bgm-bars i { animation: bgm-bar 1.6s ease-in-out infinite; }
.bgm-toggle.is-on .bgm-bars i:nth-child(2) { animation-delay: -0.5s; }
.bgm-toggle.is-on .bgm-bars i:nth-child(3) { animation-delay: -1.1s; }
@keyframes bgm-bar { 0%, 100% { height: 4px; } 50% { height: 12px; } }
@media (prefers-reduced-motion: reduce) { .bgm-toggle.is-on .bgm-bars i { animation: none; height: 8px; } }
