/* ============================================================
   鄭富方｜第二條路
   色票：暖紙白 × 夜空藍 × 柿子橘（人）× 訊號藍（第二條路）
   ============================================================ */
:root {
  --paper: #f4eee4;
  --paper-2: #ebe3d6;
  --ink: #1a1f2c;
  --ink-2: rgba(26, 31, 44, .68);
  --ink-3: rgba(26, 31, 44, .42);
  --line: rgba(26, 31, 44, .14);
  --night: #0d1220;
  --night-2: #151c30;
  --moon: #f3eee6;
  --moon-2: rgba(243, 238, 230, .66);
  --moon-3: rgba(243, 238, 230, .36);
  --accent: #f2542d;
  --accent-ink: #c43c18;
  --signal: #3d7bff;
  --gold: #f4b860;
  --serif: 'Noto Serif TC', 'Songti TC', 'PMingLiU', serif;
  --sans: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', system-ui, sans-serif;
  --en: 'Instrument Serif', Georgia, serif;
  --pad: clamp(16px, 5vw, 72px);
  --ease: cubic-bezier(.22, .8, .2, 1);
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* 大螢幕：字跟版面一起放大（版面寬度都用 rem），寬螢幕上不會縮成中間一小塊 */
@media (min-width: 1280px) { html { font-size: 106.25%; } }
@media (min-width: 1500px) { html { font-size: 112.5%; } }
@media (min-width: 1760px) { html { font-size: 125%; } }
@media (min-width: 2200px) { html { font-size: 137.5%; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(16px, .95rem + .15vw, 18px);
  line-height: 1.85;
  letter-spacing: .02em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.lock { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 900; line-height: 1.25; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; transition: top .2s; }
.skip:focus { top: 12px; }

/* ---------- 共用 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 999px;
  font-weight: 700; font-size: .95rem; letter-spacing: .04em;
  text-decoration: none; border: 1.5px solid currentColor;
  background: transparent; transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
}
.btn small { font-weight: 500; opacity: .7; font-size: .78em; }
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 10px 30px -12px rgba(242, 84, 45, .7); }
.btn-solid:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn-ghost { background: rgba(255, 255, 255, .5); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }

.sec-head { max-width: 51.25rem; margin: 0 auto clamp(32px, 6vw, 64px); padding: 0 var(--pad); text-align: center; position: relative; z-index: 2; }
.sec-kicker { font-family: var(--en); font-style: italic; font-size: 1.15rem; letter-spacing: .08em; color: var(--accent); margin-bottom: .6em; }
.sec-head h2 { font-family: var(--serif); font-size: clamp(2rem, 1.2rem + 3.6vw, 3.8rem); letter-spacing: .02em; }
.sec-lead { margin-top: 1em; color: var(--ink-2); font-size: 1.02rem; }

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- 導覽 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--pad);
  transition: background .4s, color .4s, transform .4s var(--ease), box-shadow .4s;
}
.nav.solid { background: rgba(244, 238, 228, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav.dark { color: var(--moon); }
.nav.dark.solid { background: rgba(13, 18, 32, .78); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.nav.hide { transform: translateY(-110%); }
.nav-mark { font-family: var(--serif); font-weight: 900; font-size: 1.2rem; text-decoration: none; display: flex; align-items: baseline; gap: .6em; white-space: nowrap; }
.nav-mark span { font-family: var(--en); font-style: italic; font-weight: 400; font-size: .85rem; opacity: .6; letter-spacing: .06em; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: .92rem; font-weight: 500; opacity: .75; position: relative; }
.nav-links a:hover, .nav-links a.on { opacity: 1; }
.nav-links a.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--accent); border-radius: 2px; }
.nav-film { border: 0; background: var(--ink); color: var(--paper); padding: .5em 1.1em; border-radius: 99px; font-size: .85rem; font-weight: 700; white-space: nowrap; }
.nav.dark .nav-film { background: var(--moon); color: var(--night); }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-film { margin-left: auto; }
  .nav-mark span { display: none; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden; overflow: clip;
  display: grid; place-items: end center;
  background:
    radial-gradient(120% 70% at 50% 100%, #f8d9b4 0%, rgba(248, 217, 180, 0) 60%),
    linear-gradient(180deg, #efe6da 0%, var(--paper) 55%, #f6dcc0 100%);
}
.hero-sun {
  position: absolute; left: 50%; top: 54%; width: min(64vw, 620px); aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 50% 50%, #ffb46a 0%, #f98a4a 46%, rgba(249, 138, 74, 0) 70%);
  opacity: .55; filter: blur(2px);
}
.hero-name {
  position: absolute; left: 0; right: 0; top: 44%; transform: translateY(-60%);
  display: flex; justify-content: center; gap: .02em;
  font-family: var(--serif); font-weight: 900; line-height: 1;
  font-size: min(29vw, 48vh); color: var(--ink); letter-spacing: -.02em;
  user-select: none; pointer-events: none; will-change: transform;
}
.hero-name span { display: inline-block; transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.js .hero:not(.on) .hero-name span { opacity: 0; transform: translateY(40px); }
.hero.on .hero-name span { opacity: 1; transform: none; }
.hero.on .hero-name span:nth-child(2) { transition-delay: .08s; }
.hero.on .hero-name span:nth-child(3) { transition-delay: .16s; }
.hero-cut {
  position: relative; z-index: 2; height: min(92svh, 1000px); align-self: end;
  transition: opacity 1.2s var(--ease) .25s, transform 1.4s var(--ease) .25s;
  will-change: transform; filter: drop-shadow(0 30px 40px rgba(26, 31, 44, .28));
}
.js .hero:not(.on) .hero-cut { opacity: 0; transform: translateY(30px); }
.hero-cut img { height: 100%; width: auto; }
.hero-copy {
  position: absolute; z-index: 3; left: var(--pad); bottom: clamp(24px, 6vh, 64px);
  max-width: min(460px, 46vw); padding: 22px 26px 24px; border-radius: var(--radius);
  background: rgba(244, 238, 228, .84); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px -30px rgba(26, 31, 44, .45);
}
.kicker { font-family: var(--en); font-style: italic; font-size: 1rem; letter-spacing: .06em; color: var(--ink-2); margin-bottom: .8em; }
.hero-title { font-family: var(--serif); font-weight: 900; font-size: clamp(1.7rem, 1rem + 2.4vw, 3rem); line-height: 1.3; }
.hero-title em { font-style: normal; color: var(--accent); background: linear-gradient(transparent 70%, rgba(61, 123, 255, .22) 70%); }
.hero-roles { margin-top: .9em; font-size: .9rem; color: var(--ink-2); letter-spacing: .12em; }
.hero-cta { margin-top: 1.6em; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-nick {
  position: absolute; z-index: 3; right: var(--pad); top: 50%; writing-mode: vertical-rl;
  font-family: var(--serif); font-size: .95rem; color: var(--ink-2); letter-spacing: .3em;
}
.hero-scroll { position: absolute; left: 50%; bottom: 14px; z-index: 3; width: 1px; height: 46px; background: var(--line); overflow: hidden; }
.hero-scroll i { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--ink); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }
@media (max-width: 760px) {
  .hero { place-items: start center; }
  .hero-name { top: 34%; font-size: 30vw; }
  .hero-cut { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); height: 70svh; }
  .js .hero:not(.on) .hero-cut { transform: translateX(-50%) translateY(30px); }
  .hero-copy { left: 16px; right: 16px; bottom: 18px; max-width: none; background: rgba(244, 238, 228, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 18px; border-radius: var(--radius); }
  .hero-nick { display: none; }
  .hero-scroll { display: none; }
}

/* ---------- 穿越 ---------- */
.warp { position: relative; height: 900vh; background: var(--night); color: var(--moon); }
.warp-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; overflow: clip; perspective: 900px; perspective-origin: 50% 46%; }
.warp-stars {
  position: absolute; inset: -20%;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 72% 12%, rgba(255,255,255,.6), transparent),
    radial-gradient(1.5px 1.5px at 42% 78%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 88% 64%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 26% 58%, rgba(255,255,255,.4), transparent),
    radial-gradient(1.5px 1.5px at 58% 38%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 6% 86%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 94% 30%, rgba(255,255,255,.4), transparent);
  background-size: 420px 420px;
  opacity: .8;
}
.warp-stage::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 46%, var(--warp-glow, rgba(61, 123, 255, .28)), transparent 70%);
  transition: background 1s;
}
.warp-world { position: absolute; inset: 0; transform-style: preserve-3d; }
.warp-item {
  position: absolute; left: 50%; top: 46%;
  will-change: transform, opacity; transform-style: preserve-3d;
  backface-visibility: hidden;
}
.warp-year {
  font-family: var(--serif); font-weight: 900; font-size: 38vmin; line-height: 1;
  color: transparent; -webkit-text-stroke: 2px rgba(243, 238, 230, .55);
  translate: -50% -50%; white-space: nowrap; pointer-events: none;
}
.warp-year small { display: block; font-family: var(--sans); font-weight: 500; font-size: 2.6vmin; letter-spacing: .3em; -webkit-text-stroke: 0; color: var(--moon-2); text-align: center; margin-top: 1.4vmin; }
.warp-card {
  width: clamp(200px, 26vmin, 320px); translate: -50% -50%;
  border: 0; padding: 0; background: #0f1628; color: var(--moon); text-align: left;
  border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08);
}
.warp-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.warp-card span { display: block; padding: 10px 14px 12px; font-family: var(--serif); font-weight: 600; font-size: clamp(.85rem, 1.6vmin, 1rem); line-height: 1.45; }
.warp-card em { display: block; font-family: var(--sans); font-style: normal; font-size: .72rem; color: var(--gold); letter-spacing: .1em; margin-bottom: 2px; }
.warp-card:hover { box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), 0 0 0 2px var(--gold); }
.warp-line { font-family: var(--serif); font-weight: 600; font-size: clamp(1.1rem, 3.2vmin, 2rem); color: var(--moon); translate: -50% -50%; width: min(80vw, 760px); text-align: center; line-height: 1.6; pointer-events: none; text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.warp-line b { color: var(--gold); }
.warp-hud { position: absolute; left: var(--pad); right: var(--pad); bottom: 24px; display: flex; align-items: flex-end; gap: 20px; z-index: 5; }
.warp-label { font-family: var(--serif); font-size: 1rem; color: var(--moon-2); }
.warp-label b { font-size: 2.2rem; color: var(--moon); margin-left: .2em; font-weight: 900; }
.warp-hint { font-size: .8rem; color: var(--moon-3); margin-left: auto; }
.warp-bar { position: absolute; left: 0; right: 0; bottom: -10px; height: 2px; background: rgba(255,255,255,.1); }
.warp-bar i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), var(--gold), var(--signal)); }
.nojs-note { padding: 40vh var(--pad); text-align: center; }
@media (max-width: 760px) { .warp-hint { display: none; } }
.warp.static { height: auto; }
.warp.static .warp-stage { position: relative; height: auto; perspective: none; overflow: visible; }
.warp.static .warp-world { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; padding: 100px var(--pad) 120px; }
.warp.static .warp-item { position: static; translate: none; }
.warp.static .warp-year { flex-basis: 100%; text-align: center; font-size: 22vmin; margin-top: 40px; }
.warp.static .warp-line { flex-basis: 100%; width: auto; }
.warp.static .warp-hud { display: none; }

/* ---------- 一座城 ---------- */
.world { padding: clamp(80px, 12vw, 140px) 0 clamp(60px, 8vw, 100px); background: linear-gradient(180deg, var(--night) 0%, #283353 14%, #f0d9bd 42%, var(--paper) 70%); }
.world .sec-head { color: var(--moon); }
.world .sec-lead { color: var(--moon-2); }
.world-frame { position: relative; }
.world-pan {
  /* 插畫比例 5186:2200 ≈ 2.357；寬螢幕時加高到剛好填滿寬度，窄螢幕維持左右拖曳 */
  position: relative; height: min(95svh, max(min(78svh, 760px), calc(100vw / 2.357))); overflow-x: auto; overflow-y: hidden;
  cursor: grab; scrollbar-width: none; touch-action: pan-x pan-y; outline-offset: -4px;
}
.world-pan::-webkit-scrollbar { display: none; }
.world-pan.drag { cursor: grabbing; }
.world-canvas { position: relative; height: 100%; width: max-content; margin: 0 auto; }
.world-ui[hidden] { display: none; }
.world-img { height: 100%; width: auto; max-width: none; user-select: none; -webkit-user-drag: none; }
.world-spot {
  position: absolute; translate: -50% -50%;
  display: flex; align-items: center; gap: 8px;
  background: none; border: 0; padding: 0;
}
.world-spot i {
  position: relative; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); flex: none;
  box-shadow: 0 0 0 4px rgba(255,255,255,.9), 0 6px 18px rgba(0,0,0,.35);
}
.world-spot i::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--accent); animation: ping 2s var(--ease) infinite; }
@keyframes ping { from { transform: scale(1); opacity: .9; } to { transform: scale(2.3); opacity: 0; } }
.world-spot span {
  background: rgba(26, 31, 44, .9); color: #fff; font-size: .82rem; font-weight: 700; padding: 5px 11px; border-radius: 99px;
  white-space: nowrap; box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: transform .25s var(--ease), background .25s;
}
.world-spot:hover span, .world-spot:focus-visible span { background: var(--accent); transform: translateY(-2px); }
.world-spot.l { flex-direction: row-reverse; }
.world-ui { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 16px; }
.world-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper); font-size: 1.1rem; }
.world-tip { font-size: .85rem; color: var(--ink-2); }
.world-list { list-style: none; margin: 28px auto 0; padding: 0 var(--pad); max-width: 68.75rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; counter-reset: w; }
.world-list button { border: 1px solid var(--line); background: rgba(255,255,255,.6); padding: .35em .9em; border-radius: 99px; font-size: .85rem; }
.world-list button:hover { border-color: var(--accent); color: var(--accent-ink); }
@media (min-width: 900px) { .world-list { display: none; } }

/* ---------- 我是誰 ---------- */
.who { position: relative; padding: clamp(60px, 9vw, 110px) 0 clamp(80px, 12vw, 140px); overflow: hidden; overflow: clip; }
.who-top { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; max-width: 82.5rem; margin: 0 auto 28px; padding: 0 var(--pad); }
.who .sec-head { text-align: left; margin: 0 0 28px; padding: 0; max-width: 40rem; }
.who-cut { width: min(26vw, 340px); pointer-events: none; }
.who-cut img { width: 100%; height: auto; filter: drop-shadow(0 20px 30px rgba(26,31,44,.18)); -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
.traits { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 0 var(--pad); max-width: 82.5rem; margin: 0 auto; }
@media (max-width: 1100px) { .traits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .traits { grid-template-columns: 1fr; } .who-top { grid-template-columns: 1fr; } .who-cut { display: none; } }
.trait {
  position: relative; text-align: left; border: 0; border-radius: var(--radius); padding: 26px 24px 22px;
  background: #fffaf2; box-shadow: 0 1px 0 var(--line), 0 18px 40px -26px rgba(26,31,44,.35);
  display: flex; flex-direction: column; gap: 12px; transition: transform .35s var(--ease), box-shadow .35s;
}
.trait:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 1px 0 var(--line), 0 28px 50px -26px rgba(26,31,44,.45); }
.trait h3 { font-family: var(--serif); font-size: 1.55rem; color: var(--accent); }
.trait q { font-family: var(--serif); font-weight: 600; font-size: 1.08rem; line-height: 1.7; quotes: '「' '」'; }
.trait p { font-size: .9rem; color: var(--ink-2); }
.trait small { margin-top: auto; font-size: .78rem; color: var(--ink-3); letter-spacing: .06em; }
.trait small b { color: var(--accent-ink); font-weight: 700; }
/* 數字：卡片置中排，最後一列不會空一格；點了開對應的故事 */
.numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 82.5rem; margin: clamp(48px, 8vw, 90px) auto 0; padding: 0 var(--pad); position: relative; z-index: 1; }
.num { flex: 0 1 calc((100% - 42px) / 4); min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; font: inherit; color: inherit; background: #fffaf2; border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 18px; cursor: pointer; transition: transform .25s, box-shadow .25s, border-color .25s; }
.num:hover, .num:focus-visible { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 18px 40px -24px rgba(26,31,44,.45); }
.num b { display: flex; align-items: baseline; font-family: var(--serif); font-weight: 900; font-size: clamp(2.2rem, 1.5rem + 2vw, 3.2rem); line-height: 1; }
.num b i { font-style: normal; }
.num b small { font-size: .4em; font-weight: 700; color: var(--accent); margin-left: 4px; }
.num span { font-size: .9rem; line-height: 1.55; color: var(--ink-2); }
.num em { margin-top: auto; padding-top: 6px; font-style: normal; font-size: .76rem; font-weight: 700; color: var(--accent-ink); opacity: .75; transition: opacity .2s; }
.num:hover em { opacity: 1; }
@media (max-width: 900px) { .num { flex-basis: calc((100% - 14px) / 2); } }
@media (max-width: 860px) { .who-cut { opacity: .22; width: 70vw; right: -20vw; } }

/* ---------- 影片：輪播式，整個畫面 ---------- */
/* clip：照片緩推放大時不會被瀏覽器捲動而整個畫面偏移 */
.film { position: relative; height: 100svh; min-height: 480px; background: #000; color: #fff; overflow: hidden; overflow: clip; }
.film-stage { position: absolute; inset: 0; }
.film-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; transition: opacity .6s; }
.film-stage video.off { opacity: 0; }
@media (max-aspect-ratio: 4/3) { .film-stage video { object-fit: contain; } }
/* 照片：底下一層模糊放大的同一張填滿畫面，上面一層完整顯示，緩推交給瀏覽器做，才不會抖 */
.film-photo { position: absolute; inset: 0; opacity: 0; transition: opacity .7s; will-change: transform; }
.film-photo.on { opacity: 1; animation: filmKbIn 6s linear forwards; }
.film-photo.on.kb-out { animation-name: filmKbOut; }
.film-photo i { position: absolute; inset: 0; background-position: center; background-repeat: no-repeat; }
#filmPhBg { background-size: cover; filter: blur(30px) brightness(.5); transform: scale(1.15); }
#filmPhFg { background-size: contain; }
@keyframes filmKbIn { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes filmKbOut { from { transform: scale(1.08); } to { transform: scale(1); } }
.film-title { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; font-family: var(--serif); font-weight: 900; font-size: clamp(2.4rem, 1rem + 5vw, 5.5rem); opacity: 0; transition: opacity .8s; pointer-events: none; }
.film-title.on { opacity: 1; }
.film-cap { transition: opacity .5s; }
.film-cap.wait { opacity: 0; }
/* 章節：每一章第一段左上角浮出章名 */
.film-chapter { position: absolute; left: clamp(20px, 6vw, 80px); top: clamp(80px, 14vh, 140px); display: grid; gap: 6px; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.75); opacity: 0; translate: 0 14px; transition: opacity .8s, translate .8s; pointer-events: none; }
.film-chapter.on { opacity: 1; translate: 0 0; }
.film-chapter small { font-family: var(--en); font-style: italic; font-size: clamp(3rem, 2rem + 4vw, 5.6rem); line-height: .9; color: var(--gold); }
.film-chapter b { font-family: var(--serif); font-weight: 900; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.4rem); }
.film-chapter span { font-family: var(--en); font-style: italic; letter-spacing: .08em; color: rgba(255,255,255,.72); }
/* 倒帶：掃描線、畫面抖動、左上角 ◀◀ 和年份往回跳 */
.film-stage.rewind #filmPhFg { filter: saturate(.55) contrast(1.15); animation: rwJit .16s steps(2) infinite; }
.film-stage.rewind::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.07) 0 2px, transparent 2px 5px); }
@keyframes rwJit { 0% { translate: 0 0; } 50% { translate: -6px 1px; } 100% { translate: 4px -1px; } }
.film-rw { position: absolute; left: clamp(20px, 5vw, 60px); top: clamp(76px, 12vh, 120px); display: flex; align-items: baseline; gap: 14px; color: #fff; opacity: 0; transition: opacity .3s; pointer-events: none; text-shadow: 0 0 14px rgba(0,0,0,.7); }
.film-rw.on { opacity: 1; }
.film-rw b { font-size: 1.4rem; letter-spacing: -.12em; animation: rwBlink .6s steps(2) infinite; }
.film-rw span { font-family: var(--serif); font-weight: 900; font-size: clamp(2.6rem, 1.6rem + 3.4vw, 4.8rem); line-height: 1; }
@keyframes rwBlink { 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .film-stage.rewind #filmPhFg, .film-rw b { animation: none; } }
.film-title small { display: block; font-family: var(--en); font-style: italic; font-weight: 400; font-size: .32em; letter-spacing: .1em; color: rgba(255,255,255,.6); margin-top: .6em; }
.film-title small.foot { font-family: var(--sans); font-style: normal; font-size: .2em; color: rgba(255,255,255,.45); margin-top: 2.4em; }
.film-shade { position: absolute; left: 0; right: 0; bottom: 0; height: 42%; background: linear-gradient(transparent, rgba(0,0,0,.7)); pointer-events: none; }
.film-cap { position: absolute; left: 50%; bottom: 92px; translate: -50% 0; width: min(92vw, 900px); margin: 0; text-align: center; font-family: var(--serif); font-weight: 600; font-size: clamp(1.05rem, .9rem + .9vw, 1.7rem); line-height: 1.6; text-shadow: 0 2px 14px rgba(0,0,0,.85); }
.film-bars { position: absolute; left: 16px; right: 16px; bottom: 68px; display: flex; gap: 4px; }
.film-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.22); overflow: hidden; position: relative; }
.film-bars b { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
.film-ui { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 6px; }
.film-label { margin-right: auto; font-size: .75rem; letter-spacing: .08em; color: rgba(255,255,255,.6); }
.film-ctl { border: 0; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: .9rem; }
.film-ctl:hover { background: rgba(255,255,255,.25); }
.film-btn { border: 0; padding: .55em 1.1em; border-radius: 99px; background: rgba(255,255,255,.14); color: #fff; font-size: .85rem; }
.film-btn:hover { background: rgba(255,255,255,.28); }
@media (max-width: 600px) { .film-cap { bottom: 100px; } .film-label { display: none; } }

/* ---------- 故事館 ---------- */
.stories { padding: clamp(80px, 12vw, 140px) 0; background: var(--paper); }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0 var(--pad); margin-bottom: 36px; }
.chip { border: 1.5px solid var(--line); background: transparent; padding: .45em 1.1em; border-radius: 99px; font-size: .9rem; font-weight: 500; transition: all .2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.grid { columns: 4 16.25rem; column-gap: 18px; padding: 0 var(--pad); max-width: 90rem; margin: 0 auto; }
.card {
  break-inside: avoid; display: block; width: 100%; margin: 0 0 18px; text-align: left;
  border: 0; padding: 0; background: #fffaf2; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 0 var(--line), 0 16px 34px -24px rgba(26,31,44,.4);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 var(--line), 0 26px 44px -24px rgba(26,31,44,.5); }
.card-img { position: relative; overflow: hidden; background: var(--paper-2); }
.card-img img { width: 100%; height: auto; transition: transform 1s var(--ease); }
.card:hover .card-img img { transform: scale(1.04); }
.card-noimg { aspect-ratio: 4 / 3; display: grid; place-items: center; font-family: var(--serif); font-weight: 900; font-size: 3rem; color: var(--paper); background: linear-gradient(135deg, var(--ink), #3a4466); }
.card-body { padding: 16px 18px 18px; }
.card-meta { display: flex; gap: 8px; align-items: center; font-size: .76rem; color: var(--ink-3); letter-spacing: .06em; margin-bottom: 6px; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 99px; background: rgba(242, 84, 45, .1); color: var(--accent-ink); font-weight: 700; }
.card h3 { font-family: var(--serif); font-size: 1.12rem; line-height: 1.45; }
.card p { margin-top: 6px; font-size: .86rem; color: var(--ink-2); line-height: 1.7; }
.card.imp5 h3 { font-size: 1.3rem; }
.card[hidden] { display: none; }

/* ---------- 遊戲場：樣式搬到 games.css ---------- */

/* ---------- 報導 ---------- */
.press { padding: clamp(80px, 12vw, 140px) var(--pad); background: var(--paper); }
.press-list { list-style: none; margin: 0 auto; padding: 0; max-width: 70rem; border-top: 1px solid var(--line); }
.press-list li { border-bottom: 1px solid var(--line); }
.press-list a { display: grid; grid-template-columns: 9.5rem 1fr auto; gap: 20px; align-items: baseline; padding: 18px 4px; text-decoration: none; transition: background .2s, padding .3s var(--ease); }
.press-list a:hover { background: rgba(255,255,255,.6); padding-left: 14px; }
.press-o { font-weight: 700; font-size: .88rem; }
.press-o small { display: block; font-weight: 400; color: var(--ink-3); font-size: .76rem; }
.press-t { font-family: var(--serif); font-weight: 600; font-size: 1.04rem; line-height: 1.55; }
.press-go { color: var(--accent); font-size: .85rem; white-space: nowrap; }
@media (max-width: 640px) { .press-list a { grid-template-columns: 1fr; gap: 4px; } .press-go { display: none; } }

/* ---------- 聯絡 ---------- */
.contact { position: relative; overflow: hidden; overflow: clip; min-height: 86svh; display: flex; align-items: center; padding: clamp(80px, 10vw, 120px) var(--pad); background: radial-gradient(90% 80% at 80% 100%, #ffc58a 0%, rgba(255,197,138,0) 60%), linear-gradient(180deg, var(--paper), #f7ddc0); }
.contact-cut { position: absolute; right: max(4vw, 20px); bottom: 0; height: 92%; pointer-events: none; }
.contact-cut img { height: 100%; width: auto; filter: drop-shadow(0 20px 30px rgba(26,31,44,.25)); }
.contact-copy { position: relative; z-index: 1; max-width: 35rem; }
.contact-copy h2 { font-family: var(--serif); font-size: clamp(2.4rem, 1.4rem + 4vw, 4.6rem); margin-bottom: .4em; }
.contact-copy p { color: var(--ink-2); }
.contact-mail { display: inline-block; margin-top: 1.4em; font-family: var(--serif); font-weight: 900; font-size: clamp(1.2rem, .9rem + 1.4vw, 2rem); text-decoration: none; border-bottom: 3px solid var(--accent); word-break: break-all; }
@media (max-width: 760px) { .contact-cut { opacity: .25; right: -10vw; } }
.foot { padding: 28px var(--pad); background: var(--night); color: var(--moon-3); font-size: .78rem; text-align: center; }

/* ---------- 故事頁 ---------- */
.story { position: fixed; inset: 0; z-index: 120; background: var(--paper); }
.story[hidden] { display: none; }
.story.opening { animation: storyIn .55s var(--ease); }
@keyframes storyIn { from { opacity: 0; transform: scale(.98); } }
.story-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; }
.story-close { position: fixed; top: 16px; right: 16px; z-index: 5; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(26,31,44,.82); color: #fff; font-size: 1.1rem; backdrop-filter: blur(6px); }
.story-hero { position: relative; min-height: 78svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; overflow: clip; background: var(--night); }
.story-cover { position: absolute; inset: 0; }
.story-cover img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 18s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1); } }
.story-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,18,32,.2) 0%, rgba(13,18,32,.15) 40%, rgba(13,18,32,.88) 100%); }
.story-cover.noimg { background: linear-gradient(135deg, #1a2240, #3a2f4d); }
.story-head { position: relative; z-index: 1; padding: 0 var(--pad) clamp(28px, 6vh, 64px); max-width: 61.25rem; }
.story-meta { font-size: .85rem; letter-spacing: .12em; color: var(--gold); margin-bottom: .6em; }
.story-title { font-family: var(--serif); font-size: clamp(2rem, 1.2rem + 3.6vw, 4.2rem); line-height: 1.2; text-shadow: 0 4px 30px rgba(0,0,0,.4); }
.story-hook { margin-top: .8em; font-size: clamp(1rem, .9rem + .4vw, 1.25rem); color: rgba(255,255,255,.86); max-width: 43.75rem; }
.story-body { max-width: 47.5rem; margin: 0 auto; padding: clamp(40px, 7vw, 80px) var(--pad) 40px; }
.story-quote { margin: 0 0 1.8em; padding-left: 20px; border-left: 4px solid var(--accent); font-family: var(--serif); font-weight: 600; font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem); line-height: 1.6; }
.story-quote:empty { display: none; }
.story-text p { margin-bottom: 1.2em; font-size: 1.06rem; line-height: 2; }
.story-text p:first-child:not(.orig-meta)::first-letter { font-family: var(--serif); font-weight: 900; font-size: 3.2em; float: left; line-height: .9; margin: .08em .1em 0 0; color: var(--accent); }
.story-facts { margin: 2.2em 0; padding: 22px 24px; border-radius: var(--radius); background: #fffaf2; box-shadow: 0 1px 0 var(--line); }
.story-facts h3 { font-family: var(--serif); font-size: 1.05rem; margin-bottom: .6em; }
.story-facts ul { margin: 0; padding-left: 1.2em; font-size: .9rem; color: var(--ink-2); line-height: 1.8; }
.story-facts li.sub { list-style: circle; margin-left: 1.1em; }
.story-facts:empty { display: none; }
.story-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 2em 0; }
.story-gallery figure { margin: 0; }
.story-gallery figure:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.story-gallery img { width: 100%; border-radius: 12px; cursor: zoom-in; }
.story-gallery figcaption { font-size: .78rem; color: var(--ink-3); margin-top: 6px; }
.orig-meta { font-size: .8rem !important; color: var(--ink-3); letter-spacing: .08em; margin-bottom: 1.4em !important; }
.orig-meta + p::first-letter { font-family: var(--serif); font-weight: 900; font-size: 3.2em; float: left; line-height: .9; margin: .08em .1em 0 0; color: var(--accent); }
.story-more { margin: 2em 0; }
.story-more:empty { display: none; }
.story-more h3, .story-press h3 { font-family: var(--serif); font-size: 1.05rem; margin-bottom: .6em; }
.story-more details { border-top: 1px solid var(--line); padding: 12px 0; }
.story-more summary { cursor: pointer; font-size: .92rem; list-style: none; }
.story-more summary::-webkit-details-marker { display: none; }
.story-more summary::before { content: '＋'; color: var(--accent); margin-right: .6em; }
.story-more details[open] summary::before { content: '－'; }
.story-more summary b { color: var(--ink-3); font-weight: 500; margin-right: .8em; font-size: .82rem; }
.story-more details p { font-size: .95rem; line-height: 1.95; margin: .8em 0; color: var(--ink-2); }
.story-press a { display: block; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; font-size: .92rem; }
.story-press a b { color: var(--accent-ink); margin-right: .6em; }
.story-press:empty { display: none; }
.story-nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); max-width: 68.75rem; margin: 20px auto 0; }
.story-nav button { border: 0; background: none; padding: 28px var(--pad); text-align: left; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; }
.story-nav button small { display: block; font-family: var(--sans); font-weight: 400; font-size: .76rem; color: var(--ink-3); letter-spacing: .1em; }
.story-nav .story-next { text-align: right; border-left: 1px solid var(--line); }
.story-nav button:hover { background: #fffaf2; }
.zoom { position: fixed; inset: 0; z-index: 130; background: rgba(13,18,32,.94); display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.zoom img { max-height: 92svh; width: auto; border-radius: 8px; }

/* ---------- 提案 ---------- */
.props { padding: clamp(80px, 12vw, 140px) var(--pad); background: #fffaf2; }
/* 提案總覽：總數｜解除列管進度｜各委員會（點了篩選下面的清單） */
.psum { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px 44px; max-width: 70rem; margin: 0 auto 32px; padding: 26px 30px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; }
.psum-main { display: flex; align-items: baseline; gap: 8px; }
.psum-main b { font-family: var(--serif); font-weight: 900; font-size: clamp(3rem, 2rem + 3vw, 4.4rem); line-height: 1; }
.psum-main span { font-weight: 700; color: var(--ink-2); }
.psum-meter p { margin: 0 0 10px; color: var(--ink-2); }
.psum-meter p b { font-family: var(--serif); font-size: 1.6rem; color: #1f7a4b; margin-right: 6px; }
.psum-bar { height: 10px; border-radius: 99px; background: rgba(47, 168, 106, .14); overflow: hidden; }
.psum-bar i { display: block; height: 100%; width: var(--w); border-radius: 99px; background: #2fa86a; transition: width 1.4s cubic-bezier(.2,.7,.2,1) .2s; }
.js .psum:not(.in) .psum-bar i { width: 0; }
.psum-meter small { display: block; margin-top: 8px; font-size: .76rem; color: var(--ink-3); }
.psum-coms { display: flex; flex-direction: column; min-width: 180px; }
.psum-com { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font: inherit; font-size: .9rem; color: var(--ink-2); background: none; border: 0; border-bottom: 1px dashed var(--line); padding: 6px 0; cursor: pointer; text-align: left; }
.psum-com:last-child { border-bottom: 0; }
.psum-com b { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); }
.psum-com:hover span { color: var(--accent-ink); }
@media (max-width: 760px) { .psum { grid-template-columns: 1fr; gap: 18px; padding: 22px; } }
.props .filters { margin-bottom: 24px; }
.props-list { list-style: none; margin: 0 auto; padding: 0; max-width: 70rem; border-top: 1px solid var(--line); }
.prop { border-bottom: 1px solid var(--line); }
.prop[hidden] { display: none; }
.prop-head { width: 100%; display: grid; grid-template-columns: 5.25rem 8.5rem 1fr auto; gap: 14px; align-items: baseline; padding: 18px 6px; border: 0; background: none; text-align: left; transition: background .2s; }
.prop-head:hover { background: rgba(242, 84, 45, .05); }
.prop-date { font-size: .82rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.prop-com { font-size: .78rem; font-weight: 700; color: var(--accent-ink); }
.prop-title { font-family: var(--serif); font-weight: 600; font-size: 1.04rem; line-height: 1.55; }
.prop-st { font-size: .76rem; font-weight: 700; padding: 2px 10px; border-radius: 99px; white-space: nowrap; background: var(--paper-2); color: var(--ink-2); max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.prop-st.st-done { background: rgba(47, 168, 106, .14); color: #1f7a4b; }
.prop-st.st-doing { background: rgba(61, 123, 255, .12); color: #2a5bc4; }
.prop-st:empty { display: none; }
.prop-head[aria-expanded="true"] .prop-title { color: var(--accent-ink); }
.prop-body { padding: 4px 6px 22px calc(13.75rem + 34px); font-size: .94rem; color: var(--ink-2); }
.prop-body h4 { font-size: .82rem; color: var(--ink); margin: 14px 0 4px; letter-spacing: .06em; }
.prop-body ul, .prop-ups { margin: 0; padding-left: 1.2em; line-height: 1.8; }
.prop-src { margin-top: 14px; font-size: .78rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.prop-story { border: 1.5px solid var(--accent); color: var(--accent-ink); background: none; border-radius: 99px; padding: .3em .9em; font-size: .8rem; font-weight: 700; }
@media (max-width: 760px) {
  .prop-head { grid-template-columns: 1fr auto; gap: 4px 10px; }
  .prop-date, .prop-com { grid-row: 1; }
  .prop-title { grid-column: 1 / -1; }
  .prop-st { grid-column: 1 / -1; justify-self: start; }
  .prop-body { padding-left: 6px; }
}

/* ---------- 經歷 ---------- */
.cv { padding: clamp(80px, 12vw, 140px) var(--pad); background: var(--paper-2); }
/* 上排兩大欄（資訊安全、公共參與），下排三小欄 */
.cv-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 36px 40px; max-width: 82rem; margin: 0 auto; }
.cv-col { grid-column: span 2; }
.cv-col:nth-child(-n+2) { grid-column: span 3; }
@media (max-width: 960px) { .cv-grid { grid-template-columns: 1fr; } .cv-col, .cv-col:nth-child(-n+2) { grid-column: auto; } }
.cv-col h3 { font-family: var(--serif); font-size: 1.2rem; padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 6px; }
.cv-col ul { list-style: none; margin: 0; padding: 0; }
.cv-col li { display: grid; grid-template-columns: 5.75rem 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .92rem; line-height: 1.6; }
.cv-when { color: var(--ink-3); font-size: .8rem; font-variant-numeric: tabular-nums; padding-top: 2px; }
.cv-what b { font-weight: 700; display: block; }
.cv-what em { font-style: normal; color: var(--ink-2); font-size: .86rem; }
.props .filters { flex-direction: column; align-items: center; gap: 10px; }
.chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip-sm { font-size: .8rem; padding: .3em .9em; }
.prop-st.st-none { display: none; }
.prop-out { font-weight: 700; color: var(--ink); background: rgba(47, 168, 106, .08); border-left: 3px solid #2fa86a; padding: 8px 12px; border-radius: 0 8px 8px 0; margin: 6px 0 4px; }

/* ---------- 看全部 ---------- */
.more-wrap { text-align: center; margin-top: 28px; }
.more-btn[hidden] { display: none; }
.press-list li[hidden], .card[hidden] { display: none; }
@media (max-width: 600px) {
}
