/* ai.coreplay.com.tw 共用 base —— 對齊 Design Tokens v1.1
   單一來源：改這份，再跑 python3 tools/sync_base.py 灌進每份 design-*.html 的 <style id="base">
   色彩／字體／元件全部照抄 coreplay-2027 主站 src/sass/style.sass（origin/main 5290b59＋字級比修正），不新增 */

@font-face { font-family: "Inter Outline"; src: url("fonts/inter-xbold-outline.woff2") format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+0020-007E, U+2019; }
@font-face { font-family: "Inter Outline"; src: url("fonts/noto-tc-outline.woff2") format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+804A, U+30FB; }
@font-face { font-family: "Inter Outline"; src: url("fonts/noto-tc-wordmark-outline.woff2") format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+679C, U+6838, U+6982, U+5FF5; }

:root {
  --ink: #16161a;
  --ink-soft: #3c3c44;
  --bg: #fff;
  --paper: #f7f7f5;
  --brand: #2540d8;
  --brand-soft: #7c8cff;
  --accent-lime: #C5FF4A;
  --lavender: #DED5E8;
  --ink-line: #000000;
  --muted: #74747c;
  --line: #e4e4e8;
  --danger: #D92D20;
  --on-dark-82: rgba(255, 255, 255, .82);
  --on-dark-62: rgba(255, 255, 255, .62);
  --on-dark-26: rgba(255, 255, 255, .26);
  --on-dark-12: rgba(255, 255, 255, .12);
  --maxw: 1600px;
  --font-en: "Inter", "Noto Sans TC", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", ui-monospace, monospace;
  --font-outline: "Inter Outline", "Inter", "Noto Sans TC", sans-serif;
  --font-logo: "Google Sans Flex", "Inter", "Noto Sans TC", sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --sec-pad: clamp(88px, 11vw, 152px);
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans TC", -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
/* 全站微噪點（工程紙纖維感），4% —— 主站 body::after */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 2000; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
button, input, select, textarea { font-family: inherit; }
::selection { background: var(--brand); color: var(--bg); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* 捲動進場（JS 掛 .rv，進視窗加 .is-in；--d＝stagger） */
.rv { opacity: 0; transform: translateY(30px); transition: opacity .64s var(--ease-out), transform .64s var(--ease-out); transition-delay: var(--d, 0s); }
.rv.is-in { opacity: 1; transform: none; }

/* 區段通用：英文大標＋藍底線，中文 h2 當副標（不放 eyebrow） */
.section { padding: var(--sec-pad) 0; }
.section__kicker { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; color: var(--muted); margin-bottom: clamp(24px, 3.4vw, 40px); }
.section__kicker::before { content: "+"; color: var(--brand); font-weight: 600; }
.section__kicker::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section__en { display: inline-block; font-family: var(--font-en); font-size: clamp(44px, 6.6vw, 104px); font-weight: 800; letter-spacing: -.02em; line-height: 1; color: var(--ink); padding-bottom: clamp(12px, 1.6vw, 20px); margin: 0 0 clamp(18px, 2.4vw, 28px); border-bottom: 5px solid var(--brand); }
.section__en + h2 { font-size: clamp(14px, 2.1vw, 22px); font-weight: 700; color: var(--ink-soft); margin: 0 0 16px; }
.section__sub { color: var(--muted); font-size: clamp(14px, 1.4vw, 16px); margin: 0 0 clamp(28px, 4vw, 48px); max-width: 640px; }
/* 藍底段（主站 .menu / confession 反白） */
.section--blue { background: var(--brand); color: var(--bg); }
.section--blue .section__en { color: var(--bg); border-bottom-color: var(--bg); }
.section--blue .section__en + h2 { color: var(--bg); }
.section--blue .section__sub { color: var(--on-dark-82); }
.section--blue .section__kicker { color: rgba(255, 255, 255, .72); }
.section--blue .section__kicker::before { color: var(--bg); }
.section--blue .section__kicker::after { background: rgba(255, 255, 255, .24); }
.section--blue :focus-visible, .section--ink :focus-visible { outline-color: var(--accent-lime); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--bg); }

/* 次要按鈕（主站 .btn） */
.btn { display: inline-block; border: 1.5px solid var(--ink); border-radius: 999px; padding: 12px 26px; min-height: 44px; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--ink); background: transparent; cursor: pointer; transition: background .25s ease, color .25s ease; }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--on-dark { border-color: var(--bg); color: var(--bg); }
.btn--on-dark:hover { background: var(--bg); color: var(--ink); }

/* 賽璐璐位移陰影（主 CTA，一頁只點 1–2 個） */
.cello { position: relative; display: inline-flex; isolation: isolate; text-decoration: none; }
.cello__label { position: relative; z-index: 2; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 20px 40px; background: var(--accent-lime); border: 1.5px solid var(--ink-line); color: var(--ink-line); font-weight: 800; font-size: 18px; line-height: 1.3; white-space: nowrap; transition: transform .3s var(--ease-out); }
.cello__sub { font-size: 13px; font-weight: 500; opacity: .82; }
.cello::after { content: ""; position: absolute; z-index: 1; inset: 0; transform: translate(8px, 8px); background: var(--lavender); border: 1.5px solid var(--ink-line); transition: transform .3s var(--ease-out); }
.cello:hover .cello__label { transform: translate(-4px, -4px); }
.cello:hover::after { transform: translate(12px, 12px); }
.cello--on-dark .cello__label { border-color: var(--bg); }
.cello--on-dark::after { background: var(--brand-soft); border-color: var(--bg); }

/* mask 刷色塊進場（區塊主標第一眼用，不逐行刷內文） */
.mask-reveal { --mask-duration: 550ms; position: relative; clip-path: inset(0 100% 0 0); transition: clip-path var(--mask-duration) ease-out; }
.mask-reveal::before { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--accent-lime); clip-path: inset(0 0 0 0); transition: clip-path var(--mask-duration) ease-out; pointer-events: none; }
.mask-reveal--blue::before { background: var(--brand-soft); }
.mask-reveal.is-revealed { clip-path: inset(0 0 0 0); }
.mask-reveal.is-revealed::before { transition-delay: var(--mask-duration); clip-path: inset(0 0 0 100%); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .mask-reveal { clip-path: none; transition: none; }
  .mask-reveal::before { display: none; }
  .cello:hover .cello__label, .cello:hover::after { transform: none; }
}

/* ── nav ── */
/* nav —— 照抄主站 .nav（style.sass:340-598）：fixed 透明 bar＋右側萊姆綠 drawer，桌機手機都只有漢堡
   與主站唯一差異：捲動後字色依「底下那段的底色」切換（data-tone），不是一律白字——
   主站捲到白底作品區時白 logo 疊白底讀不到（2026-10-12 截圖實證），這裡不沿用 */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; --logo-color: var(--accent-lime); background: rgba(255, 255, 255, 0); border-bottom: 1px solid transparent; transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease; }
.nav__inner { display: flex; justify-content: space-between; align-items: center; max-width: var(--maxw); margin: 0 auto; padding: 18px var(--gutter); }
.nav__logo { display: flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: none; position: relative; z-index: 2; }
.nav__word { font-family: var(--font-logo); font-variation-settings: "ROND" 100, "wdth" 100, "wght" 700; font-size: 30px; line-height: 1; white-space: nowrap; color: var(--logo-color); transition: color .3s ease; }
.nav__zh { font-size: 20px; font-weight: 700; line-height: 1; white-space: nowrap; color: var(--logo-color); transition: color .3s ease; }
.nav__burger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: none; cursor: pointer; color: var(--logo-color); position: relative; z-index: 1000; }
.nav__burger-box { position: relative; display: block; width: 26px; height: 18px; }
.nav__burger-inner, .nav__burger-inner::before, .nav__burger-inner::after { position: absolute; left: 0; width: 26px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease-out), opacity .15s ease, background .3s ease; }
.nav__burger-inner { top: 50%; margin-top: -1px; }
.nav__burger-inner::before { content: ""; top: -8px; }
.nav__burger-inner::after { content: ""; top: 8px; }

/* 捲離首屏：毛玻璃底；深／藍底段白字，淺底段品牌藍 */
.nav.is-scrolled { --logo-color: var(--bg); background: rgba(255, 255, 255, .08); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid rgba(255, 255, 255, .18); }
.nav.is-scrolled.on-light { --logo-color: var(--brand); background: rgba(255, 255, 255, .78); border-bottom-color: var(--line); }

.nav.is-open .nav__burger-inner { transform: rotate(45deg); background: var(--ink); }
.nav.is-open .nav__burger-inner::before { top: 0; transform: rotate(90deg); background: var(--ink); }
.nav.is-open .nav__burger-inner::after { top: 0; opacity: 0; }

.nav__drawer { position: fixed; inset: 0 0 0 auto; z-index: 999; width: min(420px, 86vw); height: 100vh; height: 100dvh; background: var(--accent-lime); color: var(--ink); transform: translateX(100%); visibility: hidden; overflow-y: auto; transition: transform .7s var(--ease-out), visibility 0s linear .7s; }
.nav__drawer-panel { position: relative; min-height: 100%; display: flex; flex-direction: column; justify-content: center; padding: clamp(88px, 14vh, 128px) clamp(28px, 6vw, 56px) 40px; }
.nav__drawer-foot { display: flex; flex-direction: column; gap: 6px; margin-top: 40px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: rgba(22, 22, 26, .55); }
.nav__drawer-foot a { display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; color: rgba(22, 22, 26, .8); text-decoration: none; }
.nav__drawer-foot a:hover { color: var(--ink); text-decoration: underline; }
.nav.is-open .nav__drawer { transform: translateX(0); visibility: visible; transition: transform .7s var(--ease-out); }
.nav__backdrop { position: fixed; inset: 0; z-index: 998; background: rgba(0, 0, 0, .35); opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility 0s linear .4s; }
.nav.is-open .nav__backdrop { opacity: 1; visibility: visible; transition: opacity .4s ease; }
body:has(.nav.is-open) .nav { --logo-color: var(--ink); }
.nav__drawer :focus-visible { outline-color: var(--ink); }

.nav__menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.nav__item { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; text-decoration: none; color: var(--ink); border-bottom: 1px solid rgba(22, 22, 26, .12); opacity: 0; transform: translateX(18px); transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); }
.nav__item-en { font-family: var(--font-en); font-size: clamp(22px, 3.5vw, 28px); font-weight: 800; line-height: 1.05; letter-spacing: .01em; }
.nav__item-ch { font-size: 12px; letter-spacing: .3em; opacity: .6; }
.nav__item-ch__en { letter-spacing: normal; }
.nav__item:hover { transform: translate(-2px, -2px); }
.nav__item--cta .nav__item-en { color: var(--brand); }
.nav.is-open .nav__item { opacity: 1; transform: none; }
.nav.is-open .nav__menu li:nth-child(1) .nav__item { transition-delay: 85ms; }
.nav.is-open .nav__menu li:nth-child(2) .nav__item { transition-delay: 130ms; }
.nav.is-open .nav__menu li:nth-child(3) .nav__item { transition-delay: 175ms; }
.nav.is-open .nav__menu li:nth-child(4) .nav__item { transition-delay: 220ms; }
.nav.is-open .nav__menu li:nth-child(5) .nav__item { transition-delay: 265ms; }
body.is-menu-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .nav__drawer, .nav__backdrop, .nav__item, .nav__burger-inner { transition: none; }
  .nav.is-open .nav__item { opacity: 1; transform: none; }
}
@media (max-width: 480px) {
  .nav__word { font-size: 26px; }
  .nav__zh { font-size: 17px; }
}
/* ── hero ── */
/* hero —— 照抄主站 .hero（style.sass:145-277）＋ .hero__title--claim（:1815）
   主站壓的是影片；本站沒有影片素材，改用主站 .promise 的方格紙底（:1095）反白在墨黑上，不另外發明背景
   主標行遮罩升起＝主站 .hero__line／.hero__word 機制；「AI」兩字上萊姆綠（修法一，10-12 Kidult 定：主標直接放 AI） */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; color: var(--bg); background-color: var(--ink); background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 64px 64px; background-position: center top; }
.hero__video { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero__overlay { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(180deg, rgba(10, 12, 24, .62), rgba(10, 12, 24, .34) 42%, rgba(10, 12, 24, .68)); z-index: 1; }
.hero > .container { width: 100%; position: relative; z-index: 2; padding-top: 120px; padding-bottom: 120px; }
.hero__claim { margin: 0; font-size: clamp(38px, 6.2vw, 100px); font-weight: 900; line-height: 1.15; letter-spacing: -.01em; }
.hero__line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__word { display: inline-block; transform: translateY(112%); transition: transform 1.1s var(--ease-out); }
.hero__line:nth-child(2) .hero__word { transition-delay: .1s; }
.hero__line:nth-child(3) .hero__word { transition-delay: .2s; }
.hero__ai { font-family: var(--font-en); font-weight: 700; font-size: 1.2em; color: var(--accent-lime); letter-spacing: -.02em; position: relative; top: .03em; }
.hero__lead { margin: clamp(24px, 3.4vw, 44px) 0 0; max-width: 680px; font-size: clamp(17px, 1.8vw, 22px); font-weight: 700; line-height: 1.7; color: var(--bg); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: clamp(36px, 4.4vw, 56px); }
.hero__lead, .hero__actions, .hero__meta { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease-out) .5s, transform 1s var(--ease-out) .5s; }
.hero__meta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; border-top: 1px solid rgba(255, 255, 255, .22); }
.hero__meta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 16px; padding-bottom: 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: rgba(255, 255, 255, .6); }
.hero__scroll { animation: heroScroll 2.2s ease-in-out infinite; }
@keyframes heroScroll { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
body.is-loaded .hero__word { transform: none; }
body.is-loaded .hero__lead, body.is-loaded .hero__actions, body.is-loaded .hero__meta { opacity: 1; transform: none; }
@media (max-width: 600px) {
  .hero > .container { padding-top: 104px; padding-bottom: 96px; }
  .hero__meta-inner span:first-child { display: none; }
  .hero__meta-inner { justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__word, .hero__lead, .hero__actions, .hero__meta { transform: none !important; opacity: 1 !important; transition: none !important; }
  .hero__scroll { animation: none; }
}
/* ── m-cases-s1 ── */
/* S1 · 作品格（主站 .works__grid＋.work-card）：兩欄、偶數卡下沉；每張＝大面板（他說小、其實是大）＋面板下方粗標題（身份）
   DOM 順序 身份→他說→其實是（朗讀正確），視覺上用 order 把身份放到面板下方，對應主站「圖在上、標題在下」 */
.cases .section__en + h2 { margin-bottom: clamp(44px, 5.6vw, 64px); }
.u-cases .uc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 72px); row-gap: clamp(48px, 6vw, 88px); align-items: start; }
.u-cases .uc-card { display: flex; flex-direction: column; color: var(--bg); }
.u-cases .uc-card:nth-child(even) { margin-top: clamp(40px, 7vw, 112px); }
.u-cases .uc-panel { display: flex; flex-direction: column; gap: clamp(16px, 1.6vw, 22px); min-height: clamp(240px, 15vw, 290px); padding: clamp(26px, 3.2vw, 48px); border: 1px solid var(--on-dark-26); border-radius: 10px; background: color-mix(in srgb, var(--ink) 14%, var(--brand)); box-shadow: 0 0 0 rgba(0, 0, 0, 0); transition: background .28s var(--ease-out), transform .28s var(--ease-out), border-color .28s var(--ease-out), box-shadow .28s var(--ease-out); }
/* hover：面板浮起＋邊框轉實＋投影，配合下方身份字轉萊姆綠（只在有滑鼠的裝置） */
@media (hover: hover) {
  .u-cases .uc-card:hover .uc-panel { transform: translateY(-6px); background: color-mix(in srgb, var(--ink) 30%, var(--brand)); border-color: var(--bg); box-shadow: 0 18px 40px rgba(0, 0, 0, .3); }
}
.u-cases .uc-said { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; }  /* label 自然寬：原 4.2em 固定欄讓「他說」與引言中間空一截 */
/* label 的 line-height 刻意配成 p 的行高（17×1.8＝30.6px），讓「他說」與引言第一行基線對齊 */
.u-cases .uc-said__label { font-size: clamp(14px, 1vw, 15px); font-weight: 700; letter-spacing: .02em; line-height: 2.04; color: var(--on-dark-62); }
.u-cases .uc-said p { margin: 0; font-size: clamp(16px, 1.15vw, 17px); line-height: 1.8; color: var(--on-dark-82); }
.u-cases .uc-found { margin-top: auto; padding-top: clamp(16px, 1.6vw, 22px); border-top: 1px solid var(--on-dark-26); }
.u-cases .uc-label { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--accent-lime); }
.u-cases .uc-found p { margin: 0; font-size: clamp(19px, 1.9vw, 26px); font-weight: 700; line-height: 1.6; color: var(--bg); text-wrap: pretty; }
.u-cases .uc-who { order: 2; margin: 0; padding: 18px 2px 0; font-size: clamp(16px, 1.6vw, 19px); font-weight: 800; line-height: 1.4; color: var(--bg); transition: color .25s ease; }
.u-cases .uc-card:hover .uc-who { color: var(--accent-lime); }
@media (prefers-reduced-motion: reduce) {
  .u-cases .uc-panel { transition: background .28s ease, border-color .28s ease; }
  .u-cases .uc-card:hover .uc-panel { transform: none; }
}
@media (max-width: 900px) {
  .u-cases .uc-grid { grid-template-columns: minmax(0, 1fr); row-gap: 44px; }
  .u-cases .uc-card:nth-child(even) { margin-top: 0; }
  .u-cases .uc-panel { min-height: 0; }
}
@media (max-width: 480px) {
  .u-cases .uc-said { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
}
/* ── m-how-s2 ── */
.u-how .how__track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(32px, 4vw, 56px); }
.u-how .how__steps { display: contents; list-style: none; }
/* 階段帶（主站 .menu 1px 分格）：入口跨兩步、建置一步、之後一步 */
.u-how .how__phase { grid-row: 1; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px clamp(16px, 1.8vw, 24px); border: 1px solid var(--ink); font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; color: var(--ink); }
.u-how .how__phase + .how__phase { margin-left: -1px; }
.u-how .how__phase::after { content: "→"; margin-left: auto; font-family: var(--font-en); font-size: 16px; color: var(--brand); }
.u-how .how__phase--entry { grid-column: 1 / span 2; }
.u-how .how__phase--build { grid-column: 3; background: var(--ink); color: var(--bg); }
.u-how .how__phase--build::after { color: var(--accent-lime); }
.u-how .how__phase--after { grid-column: 4; border-color: var(--line); color: var(--muted); }
.u-how .how__phase--after::after { content: none; }
/* 軌道：每步頂端一段 hairline＋節點，相鄰欄首尾相接成一條線 */
.u-how .how__step { grid-row: 2; position: relative; padding: clamp(40px, 4.4vw, 56px) clamp(20px, 2.6vw, 40px) 0 0; }
.u-how .how__step::before { content: ""; position: absolute; left: 0; right: 0; top: 18px; height: 1px; background: var(--ink); }
.u-how .how__step::after { content: ""; position: absolute; left: 0; top: 13px; width: 11px; height: 11px; background: var(--bg); border: 1.5px solid var(--ink); }
.u-how .how__step:nth-child(3)::after { top: 9px; width: 19px; height: 19px; background: var(--accent-lime); border-color: var(--ink-line); }
.u-how .how__step:last-child::before { background: var(--line); }
.u-how .how__name { margin: 0 0 14px; font-size: clamp(19px, 2vw, 24px); font-weight: 800; line-height: 1.4; color: var(--ink); }
.u-how .how__desc { margin: 0; color: var(--ink-soft); font-size: clamp(15px, 1.3vw, 16px); line-height: 1.9; }
@media (max-width: 900px) {
  .u-how .how__track { grid-template-columns: minmax(0, 1fr); }
  .u-how .how__phase, .u-how .how__step { grid-row: auto; grid-column: 1; }
  .u-how .how__phase + .how__phase { margin-left: 0; }
  .u-how .how__phase--entry { order: 0; }
  .u-how .how__step:nth-child(1) { order: 1; }
  .u-how .how__step:nth-child(2) { order: 2; }
  .u-how .how__phase--build { order: 3; margin-top: 8px; }
  .u-how .how__step:nth-child(3) { order: 4; }
  .u-how .how__phase--after { order: 5; margin-top: 8px; }
  .u-how .how__step:nth-child(4) { order: 6; }
  .u-how .how__phase::after { content: "↓"; }
  .u-how .how__phase--after::after { content: none; }
  /* 直排：軌道轉成左側直線 */
  .u-how .how__step { padding: 24px 0 32px 36px; }
  .u-how .how__step::before { left: 5px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .u-how .how__step::after { left: 0; top: 30px; }
  .u-how .how__step:nth-child(3)::after { left: -4px; top: 27px; }
}
/* ── diff ── */
/* THE DIFFERENCE —— 底＝主站 .promise 方格紙（paper＋64px 格，style.sass:1095），中文副標照 .promise 放大
   三點＝主站 .menu-row 白底列表（:1030-1078）：ink 頂線、左欄名稱 34%、右欄說明、hairline 分隔、hover 名稱右移 */
.diff { background-color: var(--paper); background-image: linear-gradient(rgba(22, 22, 26, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(22, 22, 26, .045) 1px, transparent 1px); background-size: 64px 64px; }
.diff .section__en + h2 { font-size: clamp(22px, 3.2vw, 38px); color: var(--ink); margin-bottom: clamp(14px, 1.6vw, 20px); }
.diff .section__sub { max-width: 880px; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.9; color: var(--ink-soft); margin-bottom: clamp(36px, 5vw, 64px); }
.diff__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.diff__row { display: grid; grid-template-columns: minmax(0, 34%) 1fr; column-gap: clamp(20px, 2.6vw, 40px); align-items: start; padding: clamp(28px, 3.4vw, 44px) 4px; border-bottom: 1px solid var(--line); transition: background .25s ease; }
.diff__row:hover { background: rgba(255, 255, 255, .7); }
.diff__name { margin: 0; font-size: clamp(19px, 2.2vw, 25px); font-weight: 800; line-height: 1.4; transition: transform .35s var(--ease-out); }
.diff__row:hover .diff__name { transform: translateX(8px); }
.diff__desc { margin: 0; max-width: 760px; color: var(--ink-soft); font-size: clamp(15px, 1.5vw, 17px); line-height: 2; padding-top: 2px; }
.diff__more { grid-column: 2; justify-self: start; position: relative; display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--brand); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; transition: gap .25s ease, opacity .25s ease; }
.diff__more:hover { opacity: .7; }
.diff__more::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
@media (max-width: 760px) {
  .diff__row { grid-template-columns: 1fr; row-gap: 12px; }
  .diff__more { grid-column: 1; margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .diff__row:hover .diff__name { transform: none; }
}
/* ── m-fde-s3 ── */
/* s3：說明在上，預約單卡片（cta-box 結構 × contact-modal 面板） */
.u-fde .fde { background: var(--ink); color: var(--bg); }
.u-fde .fde .section__en { color: var(--bg); border-bottom-color: var(--brand); }
.u-fde .fde .section__en + h2 { color: var(--on-dark-82); }
.u-fde .fde :focus-visible { outline-color: var(--accent-lime); }

.u-fde .fde__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(40px, 6vw, 96px); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.u-fde .fde__head h2 { margin-bottom: 0; }
.u-fde .fde__lead { margin: 0; max-width: 560px; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.75; color: var(--on-dark-82); }

/* 預約單：亮底面板（contact-modal__panel）＋cta-box 兩端對齊 */
.u-fde .fde__sheet { background: var(--paper); color: var(--ink); border-radius: 20px; padding: clamp(28px, 4vw, 56px); }
.u-fde .fde__sheet :focus-visible { outline-color: var(--brand); }
.u-fde .fde__box { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 28px 40px; }
.u-fde .fde__h { margin: 0 0 10px; font-size: clamp(24px, 3vw, 40px); font-weight: 900; letter-spacing: -.01em; line-height: 1.3; }
.u-fde .fde__p { margin: 0; max-width: 520px; font-size: clamp(15px, 1.4vw, 16px); color: var(--ink-soft); }
.u-fde .fde__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 24px; }
.u-fde .fde__rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); margin: clamp(28px, 3.4vw, 40px) 0 0; padding: clamp(20px, 2.4vw, 28px) 0 0; list-style: none; border-top: 1px dashed var(--muted); }
.u-fde .fde__rows li { display: flex; flex-direction: column; gap: 4px; }
.u-fde .fde__rows b { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; color: var(--ink-soft); }
.u-fde .fde__rows a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-en); font-size: clamp(16px, 1.6vw, 19px); font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; align-self: flex-start; overflow-wrap: anywhere; }
.u-fde .fde__rows a:hover { color: var(--brand); border-bottom-color: var(--brand); }

/* 電子報：墨黑上的虛線 cta-box，次要 */
.u-fde .fde__letter { margin-top: clamp(32px, 4vw, 48px); border: 1px dashed var(--on-dark-26); border-radius: 10px; padding: clamp(20px, 2.6vw, 32px); display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px 40px; }
.u-fde .fde__letter-h { margin: 0 0 6px; font-size: clamp(18px, 1.8vw, 21px); font-weight: 800; line-height: 1.4; }
.u-fde .fde__letter-p { margin: 0; font-size: 15px; color: var(--on-dark-62); }
.u-fde .fde__field { flex: 0 1 460px; display: flex; flex-direction: column; gap: 7px; }
.u-fde .fde__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--on-dark-62); }
.u-fde .fde__row { display: flex; gap: 10px; }
.u-fde .fde__field [hidden] { display: none; }
.u-fde .fde__input { flex: 1; min-width: 0; font-family: var(--font-en); font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid var(--bg); border-radius: 10px; padding: 12px 14px; min-height: 48px; }
.u-fde .fde__input::placeholder { color: var(--muted); }
.u-fde .fde__input:focus { outline: 2px solid var(--brand-soft); outline-offset: 2px; }
.u-fde .fde__input.is-invalid { border-color: var(--danger); outline: 2px solid var(--danger); outline-offset: 0; }
.u-fde .fde__submit { flex: 0 0 auto; min-height: 48px; }
.u-fde .fde__submit.is-loading { opacity: .7; cursor: progress; }
.u-fde .fde__status { margin: 0; font-size: 14px; min-height: 1.4em; }
.u-fde .fde__status.is-ok { color: var(--accent-lime); font-weight: 700; }
.u-fde .fde__status.is-err { color: var(--danger); color: color-mix(in srgb, var(--danger) 75%, var(--bg)); font-weight: 700; }
.u-fde .fde__more { margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 15px; }
.u-fde .fde__more a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark-82); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s ease, color .2s ease; }
.u-fde .fde__more a:hover { color: var(--bg); border-bottom-color: var(--brand-soft); }

@media (max-width: 900px) {
  .u-fde .fde__head { grid-template-columns: 1fr; }
  .u-fde .fde__field { flex-basis: 100%; }
}
@media (max-width: 600px) {
  .u-fde .fde__rows { grid-template-columns: 1fr; gap: 16px; }
  .u-fde .fde__row { flex-direction: column; }
  .u-fde .fde__submit { width: 100%; }
}

.u-fde .doc { background: var(--paper); color: var(--ink-soft); padding: 48px 0 64px; font-size: 14px; border-top: 1px dashed var(--line); }
.u-fde .doc h3 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--brand); margin: 0 0 12px; }
.u-fde .doc dl { display: grid; grid-template-columns: 90px 1fr; gap: 8px 16px; margin: 0; }
.u-fde .doc dt { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.u-fde .doc dd { margin: 0; }
/* ── footer ── */
/* footer —— 主站 footer.pug＋.foot／.contact（style.sass:612-684、2019-2052）原樣；多一列 LINE、FOLLOW US 換成 MAIN SITE（本站是子站，回主站的出口） */
/* footer */
.foot { background: var(--ink); color: var(--on-dark-62); font-size: 13px; padding: clamp(64px, 8vw, 96px) 0 0; overflow: hidden; border-top: 1px solid var(--on-dark-12); }
.foot__info { margin-bottom: 48px; }
.foot__label { display: block; font-family: var(--font-en); font-size: clamp(18px, 2.4vw, 26px); font-weight: 800; letter-spacing: .12em; color: var(--bg); padding-bottom: 12px; margin-bottom: 28px; position: relative; width: fit-content; }
.foot__label::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; background: var(--brand); }
.contact__row { display: flex; align-items: center; gap: 40px; padding: 12px 0; min-height: 69px; border-bottom: 1px solid var(--on-dark-12); }
.contact__row:first-child { border-top: 1px solid var(--on-dark-12); }
.contact__key { flex: 0 0 150px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; color: var(--on-dark-82); }
.contact__key--cjk { letter-spacing: .02em; }
.contact__val { flex: 1; font-size: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; color: var(--on-dark-82); }
.contact__val a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark-82); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s ease, color .2s ease; }
.contact__val a:hover { color: var(--bg); border-bottom-color: var(--brand-soft); }
.contact__sep { color: rgba(255, 255, 255, .28); margin: 0 6px; }
.foot__bar { margin-top: clamp(40px, 5vw, 56px); text-align: center; }
.foot__bar p { margin: 0; }
.foot__small { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; line-height: 2; color: rgba(255, 255, 255, .58); margin-top: 10px; }
.foot__sep { margin: 0 6px; color: rgba(255, 255, 255, .3); }
.foot__legal { display: inline-block; padding: 14px 4px; letter-spacing: normal; color: rgba(255, 255, 255, .58); text-decoration: none; border-bottom: 1px solid transparent; transition: color .25s ease, border-color .25s ease; }
.foot__legal:hover { color: var(--bg); border-bottom-color: rgba(255, 255, 255, .5); }
.foot__wordmark { display: block; font-family: var(--font-outline); font-weight: 900; font-size: clamp(56px, 12vw, 180px); line-height: .82; letter-spacing: .04em; text-align: center; text-decoration: none; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .22); margin-top: clamp(40px, 6vw, 72px); transform: translateY(12%); user-select: none; transition: -webkit-text-stroke-color .4s ease; }
.foot__wordmark:hover { -webkit-text-stroke-color: var(--brand-soft); }
.foot :focus-visible { outline-color: var(--accent-lime); }
@media (max-width: 600px) {
  .contact__row { flex-direction: column; align-items: flex-start; gap: 0; padding: 14px 0 6px; }
  .contact__key { flex: none; }
}

/* ── services ── */
/* /services —— 第二頁，三段：
   ① 頁首＝主站 hero 的方格紙墨黑底縮成半屏（同 design-hero，無行遮罩動畫）
   ② 四階＝主站首頁 WHAT WE DO（.menu.menu--home）藍底兩欄卡；英文階名放 .menu-row__tag 的 mono 位
      四階之間是「同一件事的四種尺度」，不加 1–4 編號（主站「編號歸零」定版）
   ③ 收尾＝主站 .cta-end 墨黑＋賽璐璐，置中 */
.svc-hero { position: relative; display: flex; align-items: flex-end; min-height: 62vh; color: var(--bg); background-color: var(--ink); background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 64px 64px; padding: 140px 0 clamp(56px, 7vw, 96px); }
.svc-hero .container { width: 100%; }
.svc-hero .section__en { color: var(--bg); border-bottom-color: var(--brand); }
.svc-hero h1 { margin: 0 0 16px; font-size: clamp(14px, 2.1vw, 22px); font-weight: 700; color: rgba(255, 255, 255, .82); }
.svc-hero__lead { margin: clamp(20px, 2.6vw, 32px) 0 0; max-width: 960px; text-wrap: balance; font-size: clamp(22px, 3vw, 36px); font-weight: 900; line-height: 1.45; }

.tiers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; border: 1px solid var(--on-dark-26); background: var(--on-dark-26); }
.tier { display: flex; flex-direction: column; padding: clamp(28px, 3.4vw, 48px); background: var(--brand); transition: background .25s ease; scroll-margin-top: 88px; }
.tier:hover { background: color-mix(in srgb, var(--bg) 8%, var(--brand)); }
.tier__en { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; color: rgba(255, 255, 255, .66); margin-bottom: 10px; }
.tier__name { margin: 0 0 16px; font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; line-height: 1.3; color: var(--bg); transition: transform .35s var(--ease-out); }
.tier:hover .tier__name { transform: translateX(8px); }
.tier__desc { margin: 0 0 14px; color: var(--bg); font-size: clamp(15px, 1.5vw, 17px); line-height: 1.9; }
.tier__note { margin: 0; color: var(--on-dark-82); font-size: 14px; line-height: 1.8; }
.tier__note a { color: var(--bg); text-underline-offset: 3px; }
.tier__foot { margin-top: auto; padding-top: 24px; }

.svc-start { background: var(--ink); color: var(--bg); text-align: center; }
.svc-start .section__en { color: var(--bg); border-bottom-color: var(--brand); }
.svc-start .section__en + h2 { color: rgba(255, 255, 255, .82); }
.svc-start__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 28px; margin-top: clamp(28px, 4vw, 44px); }

@media (max-width: 900px) {
  .tiers { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .tier:hover .tier__name { transform: none; }
}

.cookie-notice { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1002; background: var(--ink); color: #fff; border-top: 1px solid rgba(255, 255, 255, .14); transform: translateY(100%); transition: transform .5s var(--ease-out); }
.cookie-notice[hidden] { display: none; }
.cookie-notice.is-in { transform: none; }
.cookie-notice__inner { max-width: var(--maxw); margin: 0 auto; padding: 16px clamp(20px, 5vw, 48px); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cookie-notice__text { margin: 0; font-size: 13px; line-height: 1.7; color: rgba(255, 255, 255, .82); }
.cookie-notice__link { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .45); transition: border-color .25s ease, color .25s ease; }
.cookie-notice__link:hover { color: var(--brand-soft); border-bottom-color: var(--brand-soft); }
.cookie-notice__btn { position: relative; flex-shrink: 0; border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 999px; background: none; color: #fff; padding: 9px 24px; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .25s ease, color .25s ease, border-color .25s ease; }
.cookie-notice__btn::after { content: ''; position: absolute; inset: -4px 0; }
.cookie-notice__btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .cookie-notice { transition: none; }
}
@media (max-width: 720px) {
  .cookie-notice__inner { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 20px; }
  .cookie-notice__btn { width: 100%; padding: 12px 24px; }
}

.agent { --agent-lift: 0px; position: fixed; right: clamp(16px, 2vw, 24px); bottom: clamp(16px, 2vw, 24px); z-index: 1003; transform: translateY(calc(-1 * var(--agent-lift))); transition: transform .5s var(--ease-out); }
.agent__orb { position: relative; width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer; background: var(--ink); display: grid; place-items: center; box-shadow: inset 0 0 0 2px var(--accent-lime), 0 8px 28px rgba(0, 0, 0, .22); transition: transform .2s var(--ease-out), opacity .2s ease; }
.agent__orb:hover { transform: scale(1.06); }
.agent__orb:focus-visible { outline: 3px solid var(--accent-lime); outline-offset: 3px; }
.agent__mark { width: 24px; height: auto; color: var(--accent-lime); display: block; }
.agent__orb-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--accent-lime); opacity: 0; animation: agentPulse 2.4s var(--ease-out) infinite; }
.agent__orb-ring.is-2 { animation-delay: 1.2s; }
.agent__panel { position: absolute; right: 0; bottom: 74px; width: min(348px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 140px - var(--agent-lift))); max-height: min(560px, calc(100dvh - 140px - var(--agent-lift))); display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 50px rgba(0, 0, 0, .2); opacity: 0; transform: translateY(10px) scale(.97); pointer-events: none; transition: opacity .2s ease-out, transform .2s var(--ease-out), max-height .5s var(--ease-out); overflow: hidden; }
.agent.is-open .agent__panel { opacity: 1; transform: none; pointer-events: auto; }
.agent.is-open .agent__orb { transform: scale(.88); opacity: .55; }
.agent__head { display: flex; align-items: center; gap: 11px; padding: 15px 16px; border-bottom: 1px solid var(--line); flex: none; }
.agent__avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; flex: none; }
.agent__avatar .agent__mark { width: 15px; }
.agent__name { font-size: 14.5px; font-weight: 800; }
.agent__state { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); }
.agent__dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; }
.agent__close { position: relative; margin-left: auto; background: none; border: none; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 2px; }
.agent__close::after { content: ''; position: absolute; top: -11px; bottom: -11px; left: 50%; width: 44px; transform: translateX(-50%); }
.agent__close:hover { color: var(--ink); }
.agent__body { flex: 1; min-height: 150px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.agent__bubble { max-width: 86%; padding: 11px 15px; border-radius: 15px; font-size: 14px; line-height: 1.75; }
.agent__bubble.is-them { background: var(--paper); border-bottom-left-radius: 4px; align-self: flex-start; }
.agent__bubble.is-me { background: var(--ink); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.agent__bubble.is-typing { display: flex; gap: 4px; padding: 14px 16px; }
.agent__bubble.is-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: agentDot 1.2s infinite; }
.agent__bubble.is-typing span:nth-child(2) { animation-delay: .18s; }
.agent__bubble.is-typing span:nth-child(3) { animation-delay: .36s; }
.agent__quick { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 16px 13px; flex: none; }
.agent__quick[hidden] { display: none; }
.agent__quick button { position: relative; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg); font-family: inherit; font-size: 12.5px; color: var(--ink-soft); cursor: pointer; transition: .15s; }
.agent__quick button::after { content: ''; position: absolute; inset: -4.5px 0; }
.agent__quick button:hover { border-color: var(--ink); color: var(--ink); }
.agent__quick button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.agent__foot { display: flex; gap: 8px; padding: 12px 13px; border-top: 1px solid var(--line); background: var(--paper); flex: none; }
.agent__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.agent__input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 99px; padding: 10px 16px; font-family: inherit; font-size: 13.5px; background: var(--bg); color: var(--ink); }
.agent__input:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.agent__send { position: relative; flex: none; border: none; border-radius: 99px; padding: 10px 17px; font-family: inherit; font-size: 13px; font-weight: 700; background: var(--ink); color: #fff; cursor: pointer; transition: opacity .15s ease; }
.agent__send::after { content: ''; position: absolute; inset: -1px 0; }
.agent__send:hover { opacity: .84; }
.agent__send:disabled { opacity: .4; cursor: default; }
.agent__send:focus-visible { outline: 3px solid var(--accent-lime); outline-offset: 2px; }
.agent__skip { position: relative; flex: none; border: none; background: none; padding: 10px 4px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.agent__skip::after { content: ''; position: absolute; inset: -1px; }
.agent__skip:hover { color: var(--ink); }
.agent__skip[hidden] { display: none; }
.agent__skip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
body:has(.cookie-notice.is-in) .agent { --agent-lift: var(--cookie-h, 76px); }
@keyframes agentPulse {
  0% { opacity: .55; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.75); }
}
@keyframes agentDot {
  0%, 60%, 100% { opacity: .3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  .agent { transition: none; }
  .agent__panel { transition: opacity .2s ease-out; }
  .agent__orb-ring { animation: none; }
  .agent__bubble.is-typing span { animation: none; }
}
@media (max-width: 480px) {
  .agent__panel { right: 0; width: calc(100vw - 32px); max-height: calc(100vh - 120px - var(--agent-lift)); max-height: calc(100dvh - 120px - var(--agent-lift)); }
}

.svc-hero + .section:not(.section--blue) { padding-top: clamp(56px, 7vw, 96px); }

.nl-quiz { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: clamp(10px, 2vw, 32px); max-width: 1040px; margin: 0 auto; text-align: center; }
.nl-quiz__body { grid-column: 2; max-width: 880px; margin: 0 auto; }
/* 小怪物（配角，不搶按鈕；一直播 GIF）——素材來源 ai-user-types/assets/creature，改圖要兩邊一起改。
   只挑綠身與白身四隻：藍身的 boss 會融進 section--blue 的底（底色與身色錯開）。
   ⚠ 原圖 216×232，顯示尺寸只能取整數分之一（桌機 1/3＝72、手機 1/4＝54×58），
   非整數倍會讓 image-rendering: pixelated 把黑描邊那一格削掉。 */
.nl-quiz__pals { display: flex; align-items: flex-end; gap: clamp(6px, 1vw, 14px); }
.nl-pal { position: relative; flex: none; width: 72px; height: 77px; }
.nl-pal:nth-child(2n) { transform: translateY(-14px); }
.nl-pal img { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
/* 平常就播 GIF；靜態 PNG 只留給 prefers-reduced-motion */
.nl-pal__still { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .nl-pal__still { opacity: 1; }
  .nl-pal__anim { opacity: 0; }
}
@media (max-width: 860px) {
  /* 兩組左右小怪物在手機併成一排四隻，放在按鈕下方 */
  /* ⚠ 不用 grid——body 跨欄會把 auto 欄撐開，兩組小怪物會被推到左右兩端 */
  .nl-quiz { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; }
  .nl-quiz__body { flex: 1 0 100%; order: -1; }
  .nl-quiz__pals { margin-top: clamp(22px, 5vw, 32px); }
  .nl-pal { width: 54px; height: 58px; }
  .nl-pal:nth-child(2n) { transform: translateY(-10px); }
}
.nl-quiz .section__en { margin-bottom: clamp(16px, 2vw, 24px); }
.nl-quiz__title { margin: 0 0 14px; font-size: clamp(26px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.01em; line-height: 1.35; color: var(--bg); }
.nl-quiz__lead { margin: 0 0 clamp(28px, 3.4vw, 40px); font-size: clamp(15px, 1.5vw, 18px); line-height: 1.7; color: var(--on-dark-82); }

.nl-list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.nl-item { border-bottom: 1px solid var(--line); }
.nl-item[hidden], .nl-pager [hidden] { display: none; }
.nl-item__link { display: grid; grid-template-columns: 4.5em 1fr; gap: 0 clamp(16px, 2vw, 32px); padding: clamp(20px, 2.4vw, 32px) 0; color: var(--ink); text-decoration: none; }
.nl-item__no { font-family: var(--font-en); font-size: clamp(22px, 2.4vw, 32px); font-weight: 800; line-height: 1; }
.nl-item__title { margin: 0 0 8px; font-size: clamp(17px, 1.8vw, 22px); font-weight: 700; line-height: 1.45; transition: color .25s ease; }
a.nl-item__link:hover .nl-item__title { color: var(--brand); }
.nl-item__meta { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.nl-item--held .nl-item__no, .nl-item--held .nl-item__title { color: var(--muted); }
.nl-tag { display: inline-block; margin-left: 10px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 700; vertical-align: middle; }
.svc-hero .nl-title { margin: 0; max-width: 960px; text-wrap: balance; font-size: clamp(22px, 3vw, 36px); font-weight: 700; line-height: 1.45; color: var(--bg); }
.nl-meta { margin: 16px 0 0; color: rgba(255, 255, 255, .72); font-size: 14px; }
.nl-meta a { display: inline-block; padding: 13px 0; margin: -13px 0; color: inherit; }
.nl-prose { max-width: 720px; font-size: 17px; line-height: 1.9; color: var(--ink); }
.nl-prose p, .nl-prose ul, .nl-prose ol { margin: 0 0 1.4em; }
.nl-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.nl-prose blockquote { margin: 1.6em 0; padding-left: 1.2em; border-left: 3px solid var(--brand); color: var(--ink-soft); }
.nl-prose h2, .nl-prose h3 { margin: 2em 0 .8em; font-size: 20px; }
.nl-prose a { color: var(--brand); }
.nl-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 720px; margin-top: clamp(48px, 6vw, 80px); padding-top: 24px; border-top: 1.5px solid var(--ink); }
.nl-pager a { color: var(--ink); font-weight: 700; line-height: 1.5; text-decoration: none; }
.nl-pager__dir { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13px; font-weight: 400; }
.nl-pager__next { text-align: right; }
.nl-sub { max-width: 720px; margin: clamp(28px, 4vw, 44px) auto 0; text-align: left; }
.nl-sub .fde__letter-p { margin: 0; font-size: 15px; color: var(--on-dark-62); }
.nl-sub .fde__field { flex: 0 1 460px; margin: clamp(20px, 2.6vw, 32px) 0 0; display: flex; flex-direction: column; gap: 7px; }
.nl-sub .fde__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--on-dark-62); }
.nl-sub .fde__row { display: flex; gap: 10px; }
.nl-sub .fde__field [hidden] { display: none; }
.nl-sub .fde__input { flex: 1; min-width: 0; font-family: var(--font-en); font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid var(--bg); border-radius: 10px; padding: 12px 14px; min-height: 48px; }
.nl-sub .fde__input::placeholder { color: var(--muted); }
.nl-sub .fde__input:focus { outline: 2px solid var(--brand-soft); outline-offset: 2px; }
.nl-sub .fde__input.is-invalid { border-color: var(--danger); outline: 2px solid var(--danger); outline-offset: 0; }
.nl-sub .fde__submit { flex: 0 0 auto; min-height: 48px; }
.nl-sub .fde__submit.is-loading { opacity: .7; cursor: progress; }
.nl-sub .fde__status { margin: 8px 0 0; font-size: 14px; min-height: 1.4em; }
.nl-sub .fde__status.is-ok { color: var(--accent-lime); font-weight: 700; }
.nl-sub .fde__status.is-err { color: var(--danger); color: color-mix(in srgb, var(--danger) 75%, var(--bg)); font-weight: 700; }
@media (max-width: 600px) {
  .nl-sub .fde__row { flex-direction: column; }
  .nl-sub .fde__submit { width: 100%; }
}
