/* 版面：淺色、乾淨的產品頁風格。作品畫面放在淡色的展示台上，游標在上面把頁面「蓋」出來。
   這個網站只做淺色版，所以 color-scheme 固定是 light。示意畫面裡只有終端機與 iPad 螢幕是深色。 */
:root {
  color-scheme: light;
  --bg: #fbfbfc;
  --surface: #ffffff;
  --surface-2: #f4f5f8;
  --line: rgb(15 23 42 / .08);
  --line-2: rgb(15 23 42 / .14);
  --ink: #0f1219;
  --text: #303643;
  --muted: #565d6d;
  --dim: #6b7282;

  /* 填色用（圖表、長條、點） */
  --violet: #6366f1;
  --cyan: #06b6d4;
  --warm: #f97316;
  --ok: #10b981;
  --warn: #f59e0b;
  --bad: #ef4444;
  --info: #3b82f6;
  --pink: #ec4899;
  /* 當文字用（在白底上要夠深） */
  --violet-ink: #4f46e5;
  --cyan-ink: #0e7490;
  --ok-ink: #047857;
  --warn-ink: #b45309;
  --bad-ink: #b91c1c;
  --info-ink: #1d4ed8;
  --pink-ink: #be185d;

  --accent: #4f46e5;
  --grad: linear-gradient(100deg, #4f46e5 0%, #2563eb 50%, #0891b2 100%);
  --stage:
    radial-gradient(110% 90% at 0% 0%, #eceeff 0%, transparent 60%),
    radial-gradient(110% 90% at 100% 100%, #e3f6fa 0%, transparent 60%),
    #f3f4f8;
  --radius: 18px;
  --f-body: "Noto Sans TC", system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow-sm: 0 1px 2px rgb(16 24 40 / .05);
  --shadow: 0 1px 2px rgb(16 24 40 / .05), 0 12px 32px -16px rgb(16 24 40 / .2);
  --shadow-lg: 0 2px 6px rgb(16 24 40 / .05), 0 36px 70px -30px rgb(16 24 40 / .32);
  --wrap: 1200px;
}

* { box-sizing: border-box; }
/* Noto Sans TC 把彎引號、省略號排成全形，英文頁改用它內建拉丁字的同一套設計 Source Sans 3 */
html:lang(en) { --f-body: "Source Sans 3", "Noto Sans TC", system-ui, -apple-system, sans-serif; }
html:lang(en) .hero h1 { font-size: clamp(1.9rem, 1rem + 2.6vw, 2.9rem); }
html { scroll-behavior: smooth; scroll-padding-top: 76px; background: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; min-height: 100vh;
  background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* 頂端一層很淡的點陣，往下漸漸消失 */
body::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 760px; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgb(15 23 42 / .09) 1px, transparent 1.2px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: rgb(79 70 229 / .18); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
button { font: inherit; color: inherit; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: .4rem .8rem; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ───────── 頂欄 ───────── */
.top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem max(20px, (100% - var(--wrap)) / 2);
  background: rgb(251 251 252 / .82); backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 900; text-decoration: none; letter-spacing: .02em; }
.brand-mark { width: 18px; height: 18px; border-radius: 6px; background: var(--grad); }
.top nav { display: flex; gap: 1.3rem; font-size: .92rem; }
.top nav a { color: var(--muted); text-decoration: none; transition: color .2s; white-space: nowrap; }
.top nav a:hover { color: var(--ink); }
.top nav .lang { padding: 0 .5em; border: 1px solid var(--line-2); border-radius: 6px; font-family: var(--f-mono); font-size: .78rem; line-height: 1.7; }

/* ───────── 開場 ───────── */
.hero {
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}
.kicker {
  display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.2rem;
  padding: .3rem .8rem; border: 1px solid var(--line-2); border-radius: 999px;
  font-family: var(--f-mono); font-size: .78rem; color: var(--muted); background: var(--surface); box-shadow: var(--shadow-sm);
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgb(16 185 129 / .45); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgb(16 185 129 / 0); } 100% { box-shadow: 0 0 0 0 rgb(16 185 129 / 0); } }
.hero h1 {
  margin: 0; font-size: clamp(2rem, 1.1rem + 3.2vw, 3.45rem); line-height: 1.25; font-weight: 900; letter-spacing: -.02em;
  text-wrap: balance;
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { max-width: 38em; margin: 1.3rem 0 0; color: var(--muted); font-size: clamp(1rem, .95rem + .25vw, 1.1rem); }
.cta { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.8rem 0 0; }
.btn {
  display: inline-flex; align-items: center; gap: .4rem; padding: .7rem 1.15rem; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface); text-decoration: none; font-weight: 700; font-size: .95rem;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); border-color: rgb(15 23 42 / .28); box-shadow: var(--shadow); }
.btn-primary { border-color: var(--ink); color: #fff; background: var(--ink); }
.btn-primary:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--muted); box-shadow: none; border-color: transparent; }

/* 開場右邊：真實產品畫面 */
.hero-shot { position: relative; margin: 0; padding: clamp(1.2rem, 3vw, 2rem) clamp(1.2rem, 3vw, 2rem) 2.6rem; border-radius: 28px; background: var(--stage); border: 1px solid var(--line); }
.hs-browser { overflow: hidden; border: 1px solid var(--line-2); border-radius: 14px; background: #fff; box-shadow: var(--shadow-lg); margin-right: 16%; }
.hs-browser img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: 50% 0; }
.hs-phone {
  position: absolute; right: clamp(.8rem, 2.5vw, 1.6rem); bottom: 2.3rem; width: 27%;
  border: 6px solid #111827; border-radius: 26px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg);
}
.hs-phone img { width: 100%; aspect-ratio: 520 / 1000; object-fit: cover; object-position: top; }
.hs-chip {
  position: absolute; left: clamp(.6rem, 2vw, 1.2rem); bottom: 1.1rem; margin: 0;
  display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .7rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .78rem; font-weight: 700;
}
.hero-shot .mock-cap { position: absolute; right: clamp(.8rem, 2.5vw, 1.6rem); bottom: .6rem; margin: 0; }

/* ───────── 數字 ───────── */
.stats {
  margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm);
}
.stats > div { padding: 1.15rem 1.3rem 1.25rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats > div:nth-child(4n) { border-right: 0; }
.stats > div:nth-last-child(-n + 4) { border-bottom: 0; }
.stats dt { font-family: var(--f-mono); font-size: .72rem; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.stats dd { margin: .15rem 0 .1rem; font-family: var(--f-mono); font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stats dd small { font-size: .5em; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.stats span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.5; }

/* ───────── 區段標題 ───────── */
section.wrap { padding-top: clamp(3.5rem, 8vw, 6rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 2rem; margin-bottom: 1.6rem; }
.section-title { margin: 0; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 900; letter-spacing: -.02em; }
.section-title .count { font-family: var(--f-mono); font-size: .55em; vertical-align: .5em; color: var(--accent); padding: .1em .5em; border: 1px solid rgb(79 70 229 / .3); border-radius: 999px; background: rgb(79 70 229 / .06); }
.section-sub { margin: 0; max-width: 40em; color: var(--muted); font-size: .95rem; }

/* 狀態標籤 */
.st {
  display: inline-flex; align-items: center; gap: .35em; padding: .08em .6em; border-radius: 999px;
  font: 700 .7rem/1.6 var(--f-mono); white-space: nowrap; vertical-align: .15em;
  border: 1px solid color-mix(in srgb, currentColor 30%, transparent); background: color-mix(in srgb, currentColor 9%, transparent);
}
.st::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.st-live { color: var(--ok-ink); }
.st-uat { color: var(--warn-ink); }
.st-poc { color: var(--cyan-ink); }
.st-dev { color: var(--violet-ink); }
.st-side { color: var(--info-ink); }

/* ───────── 全部作品索引 ───────── */
.index-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm);
}
.index-col { padding: 1.1rem 1.2rem 1.3rem; border-right: 1px solid var(--line); }
.index-col:last-child { border-right: 0; }
.index-col h3 { margin: .2rem 0 .5rem; font: 700 .72rem/1.6 var(--f-mono); color: var(--dim); letter-spacing: .08em; text-transform: uppercase; }
.index-col h3:not(:first-child) { margin-top: 1.2rem; }
.index-col a {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  padding: .45rem .55rem; margin: 0 -.55rem; border-radius: 9px; text-decoration: none; font-size: .92rem;
  transition: background .15s ease;
}
.index-col a:hover { background: var(--surface-2); }
.index-col a b { font-weight: 500; min-width: 0; }

/* ───────── 卡片 ───────── */
.card {
  position: relative; isolation: isolate;
  border: 1px solid var(--line); border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
/* 滑鼠聚光：main.js 設定 --mx / --my */
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgb(79 70 229 / .06), transparent 50%);
  opacity: 0; transition: opacity .3s ease;
}
.card:hover::before { opacity: 1; }
.tag { margin: 0 0 .5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-family: var(--f-mono); font-size: .76rem; color: var(--accent); letter-spacing: .02em; }
.stack { margin: 1rem 0 0; font-family: var(--f-mono); font-size: .74rem; color: var(--dim); line-height: 1.8; }
.stack a { color: var(--accent); text-decoration: none; }
.stack a:hover { text-decoration: underline; }
.mock-cap { margin: .7rem 0 0; font-family: var(--f-mono); font-size: .7rem; color: var(--dim); }
.mock-cap.center { text-align: center; }
.mock-tag { margin-left: auto; padding: 0 .45em; border: 1px dashed var(--line-2); border-radius: 5px; font-family: var(--f-mono); font-size: .66rem; color: var(--dim); background: var(--surface); }

/* 展示台：作品畫面底下那塊淡色底 */
.stage { padding: clamp(1rem, 2.4vw, 1.6rem); border-radius: 26px; background: var(--stage); border: 1px solid var(--line); }

/* 精選作品：沒有外框，用分隔線和留白分段 */
.feature { padding: clamp(2.4rem, 5vw, 4rem) 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; padding-top: .5rem; }
.feature h3 { margin: 0; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.35rem); line-height: 1.25; font-weight: 900; letter-spacing: -.02em; }
.h-sub { display: inline-block; margin-left: .3em; font-size: .5em; font-weight: 500; color: var(--muted); letter-spacing: 0; vertical-align: .2em; }
.feature-lede { margin: .8rem 0 0; max-width: 46em; color: var(--muted); font-size: 1.03rem; }
.feature-head + .mv-stage { margin-top: 1.8rem; }
.facts { margin: 1.2rem 0 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.facts li { position: relative; padding-left: 1.2rem; color: var(--text); font-size: .95rem; line-height: 1.7; }
.facts li::before { content: ""; position: absolute; left: 0; top: .68em; width: 6px; height: 6px; border-radius: 2px; background: var(--grad); transform: rotate(45deg); }
.facts b { color: var(--ink); }
.feature-body { margin-top: 1.6rem; }
.feature-body .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 2rem; }

.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.6rem, 4vw, 3.5rem); align-items: center; }
.split.flip > :first-child { order: 2; }

/* 更多作品：便當盒排法，幾張橫向的寬卡 */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 1.1rem; }
.mini { display: flex; flex-direction: column; padding: .75rem; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.mini:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.mini-visual { height: 190px; flex: none; }
.mini-text { padding: 1rem .45rem .35rem; display: flex; flex-direction: column; flex: 1; }
.mini-text h3 { margin: 0 0 .35rem; font-size: 1.15rem; font-weight: 900; letter-spacing: -.01em; }
.mini-text p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.7; }
.mini-text .tag { margin-bottom: .45rem; font-size: .7rem; }
.mini-text .stack { margin-top: auto; padding-top: .9rem; font-size: .7rem; }
.mini.wide { grid-column: span 2; flex-direction: row; gap: .4rem; }
.mini.wide .mini-visual { flex: 1.1 1 0; min-width: 0; height: auto; min-height: 230px; }
.mini.wide .mini-text { flex: 1 1 0; min-width: 0; padding: .8rem .8rem .5rem 1.1rem; }

/* 工作方式：左邊步驟，右邊 agent 終端機（終端機跑到哪一步，左邊就亮哪一步） */
.how-wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.2rem, 3vw, 2.4rem); align-items: center; }
.how { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.how li {
  display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); column-gap: .6rem; align-items: baseline;
  padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.how li.is-on { border-color: rgb(79 70 229 / .45); box-shadow: 0 0 0 3px rgb(79 70 229 / .1); }
.how li.is-done b { color: var(--ok-ink); }
.how b { grid-row: span 2; font-family: var(--f-mono); font-size: .8rem; color: var(--accent); }
.how h3 { margin: 0; font-size: 1rem; }
.how p { margin: .1rem 0 0; color: var(--muted); font-size: .85rem; line-height: 1.6; }
.how-stats { margin-top: 1.2rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.how-stats p { margin: 0; padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); font-size: .88rem; background: var(--surface); }
.how-stats b { display: block; font-family: var(--f-mono); font-size: 1.6rem; color: var(--ink); line-height: 1.3; letter-spacing: -.02em; }

/* 不只寫程式 */
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
.people > div { padding: 1.2rem 1.15rem 1.3rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); }
.people b { font-family: var(--f-mono); font-size: 2rem; line-height: 1.1; color: var(--accent); letter-spacing: -.02em; }
.people b small { font-size: .45em; color: var(--muted); }
.people h3 { margin: .5rem 0 .3rem; font-size: 1rem; }
.people p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.65; }

/* 經歷 */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.timeline li {
  display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 1rem; padding: 1.15rem 1.3rem;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm);
}
.timeline .when { margin: 0; font-family: var(--f-mono); font-size: .8rem; color: var(--accent); padding-top: .2rem; }
.timeline h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.timeline p { margin: 0; color: var(--muted); font-size: .9rem; }

.foot { padding: 4rem 0 5rem; margin-top: 4rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.foot p { margin: .3rem 0; }
.foot a { color: var(--ink); text-underline-offset: 3px; }
.credit { color: var(--dim); font-size: .8rem; }

/* 服務頁 */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.svc { display: flex; flex-direction: column; padding: 1.5rem 1.5rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.svc h3 { margin: 0; font-size: 1.3rem; font-weight: 900; letter-spacing: -.01em; }
.svc > p { margin: .5rem 0 0; color: var(--muted); font-size: .95rem; }
.svc .facts { margin-top: .9rem; }
.svc .svc-note { color: var(--dim); font-size: .85rem; }
.svc-proof { margin: auto 0 0; padding-top: 1.2rem; }
.svc-proof p { margin: 0; padding-top: .9rem; border-top: 1px dashed var(--line-2); font-size: .85rem; color: var(--muted); }
.svc-proof b { margin-right: .4rem; font: 700 .7rem var(--f-mono); color: var(--accent); letter-spacing: .06em; text-transform: uppercase; }
.svc-proof a { color: var(--ink); text-underline-offset: 3px; }
.svc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; }
.svc-steps li { padding: 1.1rem 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); }
.svc-steps b { font-family: var(--f-mono); font-size: .8rem; color: var(--accent); }
.svc-steps h3 { margin: .3rem 0 .25rem; font-size: 1rem; }
.svc-steps p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.65; }
.contact { padding: clamp(1.6rem, 4vw, 2.6rem); border-radius: 28px; background: var(--stage); border: 1px solid var(--line); }
.contact > p { max-width: 40em; margin: .6rem 0 0; color: var(--muted); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* 放大看截圖 */
.lightbox {
  width: min(1180px, 94vw); max-height: 92vh; padding: 0; border: 1px solid var(--line-2); border-radius: 14px;
  background: var(--surface); color: var(--ink); overflow: auto; box-shadow: var(--shadow-lg);
}
.lightbox::backdrop { background: rgb(15 18 25 / .55); backdrop-filter: blur(4px); }
.lightbox img { width: 100%; height: auto; }
.lightbox form { position: sticky; top: 0; display: flex; justify-content: flex-end; height: 0; }
.lightbox-close {
  margin: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgb(15 18 25 / .78); color: #fff; font-size: 1.4rem; line-height: 1;
}

.crew-toggle {
  position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 60;
  padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgb(255 255 255 / .92); backdrop-filter: blur(10px); color: var(--ink); box-shadow: var(--shadow); font-size: .85rem; cursor: pointer;
}
.crew-toggle:hover { border-color: var(--accent); }

/* ───────── 游標動畫層 ─────────
   只有 html.crew-on 時才藏內容；沒有 JS、腳本出錯或偏好減少動態時，整頁都是直接顯示的。 */
html.crew-on [data-build] { visibility: hidden; }
html.crew-on [data-build].is-building,
html.crew-on [data-build].is-built { visibility: visible; }
html.crew-on [data-build].is-popped { animation: crew-pop .45s ease-out both; }
@keyframes crew-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 寬度鎖在畫面寬、橫向裁掉：游標名牌跑到右邊緣時不會把手機版的版面撐寬 */
.crew { position: absolute; left: 0; top: 0; width: 100%; height: 0; overflow-x: clip; overflow-y: visible; z-index: 50; pointer-events: none; }
.crew * { pointer-events: none; }
.agent { position: absolute; left: 0; top: 0; will-change: transform; }
.agent svg { display: block; width: 22px; height: 22px; filter: drop-shadow(0 2px 3px rgb(15 23 42 / .28)); transition: transform .12s ease; transform-origin: 3px 2px; }
.agent .ibeam { display: none; }
.agent.is-typing .arrow { display: none; }
.agent.is-typing .ibeam { display: block; }
.agent.is-down svg { transform: scale(.86); }
.agent .name {
  position: absolute; left: 15px; top: 19px;
  padding: 2px 7px 3px; border-radius: 5px; white-space: nowrap;
  background: var(--c); color: #fff;
  font: 700 11px/1.3 var(--f-mono); letter-spacing: .02em;
  box-shadow: 0 2px 6px rgb(15 23 42 / .18);
}
.agent .say {
  position: absolute; left: 15px; top: 41px; white-space: nowrap;
  padding: 3px 8px; border-radius: 6px; background: #fff; color: var(--ink);
  border: 1.5px solid var(--c); font: 500 12px/1.4 var(--f-body); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(-4px); transition: opacity .2s ease, transform .2s ease;
}
.agent .say.is-on { opacity: 1; transform: none; }
.frame {
  position: absolute; left: 0; top: 0;
  border: 1.5px solid var(--c); border-radius: 4px;
  background: color-mix(in srgb, var(--c) 6%, transparent);
  transition: opacity .35s ease;
}
.frame.is-media { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 12%, transparent) 0 8px, transparent 8px 16px); }
.frame.is-done { opacity: 0; }
.frame .size {
  position: absolute; right: -1px; bottom: -22px;
  padding: 1px 6px; border-radius: 4px; background: var(--c); color: #fff;
  font: 700 10px/1.6 var(--f-mono); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.frame .handle { position: absolute; width: 7px; height: 7px; background: #fff; border: 1.5px solid var(--c); }
.frame .h-tl { left: -4px; top: -4px; } .frame .h-tr { right: -4px; top: -4px; }
.frame .h-bl { left: -4px; bottom: -4px; } .frame .h-br { right: -4px; bottom: -4px; }
.caret { position: absolute; left: 0; top: 0; width: 2px; background: var(--c); border-radius: 1px; animation: crew-blink 1s steps(1) infinite; }
@keyframes crew-blink { 50% { opacity: 0; } }
.stamp {
  position: absolute; left: 0; top: 0; padding: 2px 8px; border-radius: 999px;
  background: var(--c); color: #fff; font: 700 11px/1.6 var(--f-mono);
  animation: crew-stamp 1.4s ease-out forwards;
}
@keyframes crew-stamp { 0% { opacity: 0; transform: scale(.6); } 15% { opacity: 1; transform: scale(1.08); } 25% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-8px); } }

/* ───────── 響應式 ───────── */
@media (max-width: 1020px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .split, .how-wrap { grid-template-columns: minmax(0, 1fr); }
  .split.flip > :first-child { order: 0; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-body .facts { grid-template-columns: minmax(0, 1fr); }
  .svc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .top nav a:not(.keep) { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div:nth-child(4n) { border-right: 1px solid var(--line); }
  .stats > div:nth-child(2n) { border-right: 0; }
  .stats > div:nth-last-child(-n + 4) { border-bottom: 1px solid var(--line); }
  .stats > div:nth-last-child(-n + 2) { border-bottom: 0; }
  .index-grid { grid-template-columns: minmax(0, 1fr); }
  .index-col { border-right: 0; border-bottom: 1px solid var(--line); }
  .index-col:last-child { border-bottom: 0; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .mini.wide { grid-column: auto; flex-direction: column; gap: 0; }
  .mini.wide .mini-visual { flex: none; height: 190px; min-height: 0; }
  .mini.wide .mini-text { padding: 1rem .45rem .35rem; }
  .how-stats { grid-template-columns: minmax(0, 1fr); }
  .people { grid-template-columns: minmax(0, 1fr); }
  .svc-grid, .svc-steps { grid-template-columns: minmax(0, 1fr); }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .hero-shot { padding-bottom: 4.6rem; }
  .hs-browser { margin-right: 20%; }
  .hs-phone { width: 32%; bottom: 4.4rem; border-width: 4px; border-radius: 18px; }
  .hs-chip { bottom: 2.2rem; }
  .hero-shot .mock-cap { bottom: .5rem; }
  .stage { border-radius: 20px; }
}
