/* Titanic.Workshop
   Palette from the ship itself: black hull, white superstructure, steel grey, and the
   red-orange of the waterline as the single accent. Dark is the default; light follows
   the system or the toggle.
   Shape rule: controls are pills; surfaces are 18 to 24px, screens inside them 12px.
   Type rule: 17px body, 1.8 line height, headings set with proportional CJK punctuation. */

@font-face { font-family: "Geist"; src: url("fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #0a0e11;
  --bg-2: #0f1418;
  --bg-3: #151b20;
  --bg-4: #1c242b;
  --fg: #f0f3f5;
  --fg-2: #b6c0c8;
  --fg-3: #87929c;
  --line: rgba(240, 243, 245, .08);
  --line-2: rgba(240, 243, 245, .14);
  --line-3: rgba(240, 243, 245, .24);
  --accent: #e8603f;
  --accent-ink: #170b07;
  --glow: rgba(232, 96, 63, .20);
  --grid: rgba(240, 243, 245, .05);
  --hi: inset 0 1px 0 rgba(255, 255, 255, .05);
  --shadow: 0 30px 70px -24px rgba(0, 0, 0, .7);
  --shadow-lg: 0 50px 120px -30px rgba(0, 0, 0, .75), 0 0 0 1px rgba(240, 243, 245, .04);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.4, 0, 1, 1);
  --sans: "Geist", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --mono: "Geist Mono", "Noto Sans TC", ui-monospace, monospace;
  --fs-display: clamp(44px, 6.3vw, 92px);
  --fs-h1: clamp(40px, 5vw, 72px);
  --fs-h2: clamp(30px, 3.4vw, 48px);
  --fs-lead: clamp(17px, 1.4vw, 20px);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #eef1f3; --bg-2: #f8f9fa; --bg-3: #fcfdfd; --bg-4: #e2e7ea;
    --fg: #0d1216; --fg-2: #3c4750; --fg-3: #5f6a74;
    --line: rgba(13, 18, 22, .08); --line-2: rgba(13, 18, 22, .13); --line-3: rgba(13, 18, 22, .22);
    --accent: #c9462b; --accent-ink: #fff8f5; --glow: rgba(201, 70, 43, .13); --grid: rgba(13, 18, 22, .055);
    --hi: inset 0 1px 0 rgba(255, 255, 255, .8);
    --shadow: 0 30px 60px -28px rgba(30, 45, 60, .3);
    --shadow-lg: 0 50px 100px -34px rgba(30, 45, 60, .38), 0 0 0 1px rgba(13, 18, 22, .05);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #eef1f3; --bg-2: #f8f9fa; --bg-3: #fcfdfd; --bg-4: #e2e7ea;
  --fg: #0d1216; --fg-2: #3c4750; --fg-3: #5f6a74;
  --line: rgba(13, 18, 22, .08); --line-2: rgba(13, 18, 22, .13); --line-3: rgba(13, 18, 22, .22);
  --accent: #c9462b; --accent-ink: #fff8f5; --glow: rgba(201, 70, 43, .13); --grid: rgba(13, 18, 22, .055);
  --hi: inset 0 1px 0 rgba(255, 255, 255, .8);
  --shadow: 0 30px 60px -28px rgba(30, 45, 60, .3);
  --shadow-lg: 0 50px 100px -34px rgba(30, 45, 60, .38), 0 0 0 1px rgba(13, 18, 22, .05);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 17px; line-height: 1.8; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; transition: background-color .4s var(--ease), color .4s var(--ease); }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-feature-settings: "palt"; text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { max-width: 1240px; margin-inline: auto; padding-inline: 32px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* 中文短句在標點處換行，避免最後一行只剩一兩個字 */
.lead, .keep { word-break: keep-all; overflow-wrap: anywhere; }

/* blueprint grid and a low waterline glow behind the top of every page */
.backdrop { position: absolute; z-index: -1; inset: 0 0 auto; height: 1040px; pointer-events: none; overflow: hidden; }
.backdrop::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 72px 72px; background-position: center -1px; -webkit-mask-image: radial-gradient(ellipse 75% 62% at 50% 8%, #000 25%, transparent 72%); mask-image: radial-gradient(ellipse 75% 62% at 50% 8%, #000 25%, transparent 72%); }
.backdrop::after { content: ""; position: absolute; left: 50%; top: 560px; width: min(1180px, 110vw); height: 520px; transform: translateX(-50%); background: radial-gradient(closest-side, var(--glow), transparent); filter: blur(30px); }
.backdrop-sm { height: 620px; }
.backdrop-sm::after { display: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn .ph { font-size: 17px; transition: transform .35s var(--ease); }
.btn:hover .ph { transform: translateX(3px); }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -10px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 88%, var(--fg)); }
.btn-line { border-color: var(--line-3); background: transparent; color: var(--fg); }
.btn-line:hover { border-color: var(--fg-3); background: var(--bg-3); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14.5px; }
.icon-btn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; display: grid; place-items: center; cursor: pointer; font-size: 18px; transition: background-color .25s var(--ease), transform .25s var(--ease); }
.icon-btn:hover { background: var(--bg-3); }
.icon-btn:active { transform: scale(.94); }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 600; text-decoration: none; padding-bottom: 4px; background: linear-gradient(var(--accent), var(--accent)) left bottom / 100% 1px no-repeat; }
.text-link .ph { transition: transform .35s var(--ease); }
.text-link:hover .ph { transform: translateX(4px); }

/* ---------- top bar: clear over the page top, frosted once you scroll ---------- */
.bar { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid transparent; transition: background-color .4s var(--ease), border-color .4s var(--ease); view-transition-name: bar; }
.bar.stuck { background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); border-bottom-color: var(--line); }
.bar-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; }
.mark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.mark-hull { width: 26px; height: 18px; border-radius: 4px; background: linear-gradient(var(--fg) 0 55%, transparent 55% 68%, var(--accent) 68%); }
.mark-text { font-weight: 650; letter-spacing: -.01em; font-size: 18px; }
.mark-text em { font-style: normal; color: var(--fg-3); font-weight: 500; }
.bar-tools { display: flex; align-items: center; gap: 10px; }
.top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 24px; pointer-events: none; }

/* page menu: a segmented pill centred in the bar (bottom dock on phones) */
.nav { position: fixed; z-index: 31; top: 13px; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--bg-3) 82%, transparent); -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%); border: 1px solid var(--line-2); box-shadow: var(--hi); view-transition-name: nav; }
.nav a { position: relative; z-index: 1; white-space: nowrap; padding: 6px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 500; line-height: 22px; text-decoration: none; color: var(--fg-2); transition: color .3s var(--ease); }
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"], .nav a[aria-current="page"]:hover { color: var(--accent-ink); }
.nav-glider { position: absolute; z-index: 0; top: 4px; left: 0; height: calc(100% - 8px); width: 0; border-radius: 999px; background: var(--accent); opacity: 0; transition: transform .55s var(--ease), width .55s var(--ease), opacity .35s var(--ease); }

/* ---------- home: hero ---------- */
.hero { padding-top: 64px; }
.kicker { margin: 0; display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 13.5px; color: var(--fg-3); letter-spacing: .06em; }
.kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--accent); }
.hero h1 { margin: 22px 0 0; font-size: var(--fs-display); line-height: 1.08; letter-spacing: -.015em; font-weight: 700; }
.hl { color: var(--accent); }
.hero-row { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; }
.hero-row .lead { margin: 0; max-width: 26em; color: var(--fg-2); font-size: var(--fs-lead); line-height: 1.75; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* the monitor: a real browser frame cycling through real project screens */
.stage { margin-top: 76px; perspective: 2200px; }
.monitor { position: relative; padding: 10px; border-radius: 22px; background: linear-gradient(var(--bg-3), var(--bg-2)); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg), var(--hi); transform-origin: 50% 0; }
.monitor-bar { position: relative; height: 36px; display: flex; align-items: center; justify-content: center; }
.dots { position: absolute; left: 10px; display: flex; gap: 7px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.monitor-url { max-width: min(460px, 60%); padding: 3px 16px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen { position: relative; aspect-ratio: 16 / 9; margin-top: 6px; border-radius: 12px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transform: scale(1.03); transition: opacity .7s var(--ease), transform 2.4s var(--ease); }
.screen img.on { opacity: 1; transform: none; }
.deck-meta { margin-top: 22px; padding-inline: 6px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.deck-cap { margin: 0; min-width: 0; display: flex; align-items: baseline; gap: 14px; white-space: nowrap; overflow: hidden; }
.deck-cap small { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.deck-cap b { font-weight: 500; font-size: 16px; color: var(--fg); overflow: hidden; text-overflow: ellipsis; }
.deck-steps { display: flex; gap: 6px; flex: none; }
.deck-steps i { position: relative; width: 34px; height: 2px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.deck-steps i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.deck-steps i.done::after { transform: scaleX(1); }
.deck-steps i.on::after { animation: step-fill 1.5s linear forwards; }
@keyframes step-fill { to { transform: scaleX(1); } }

/* a phone frame for real phone screenshots; the bezel stays dark in both themes, like real hardware */
.handset { position: relative; aspect-ratio: 390 / 844; padding: 7px; border-radius: 40px; background: linear-gradient(155deg, #39434b 0%, #12181c 22%, #070a0c 60%, #1d252b 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10), 0 0 0 1px rgba(0, 0, 0, .35), 0 40px 80px -28px rgba(0, 0, 0, .55); }
.handset-screen { position: relative; height: 100%; overflow: hidden; border-radius: 33px; background: #fff; }
.handset-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transform: scale(1.02); transition: opacity .7s var(--ease), transform 2.4s var(--ease); }
.handset-screen img.on { opacity: 1; transform: none; }
.hero-phone { display: none; }
.card-thumb picture, .shot picture, .tile-shot picture { display: contents; }

/* ---------- home: stats ---------- */
.stats { margin-top: 104px; }
.stats-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.stat { padding-top: 30px; }
.stat + .stat { padding-left: 40px; border-left: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(44px, 5vw, 68px); font-weight: 600; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 14px; color: var(--fg-2); font-size: 16px; }

/* ---------- shared section type ---------- */
.section { padding-block: 152px; }
.sec-head h2 { margin: 0; font-size: var(--fs-h2); line-height: 1.2; letter-spacing: -.01em; font-weight: 700; }
.sec-head p { margin: 18px 0 0; max-width: 34em; color: var(--fg-2); font-size: var(--fs-lead); line-height: 1.75; }

/* ---------- home: scenarios, one at a time ---------- */
.scn { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
.scn-tabs { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 4px; }
.scn-tab { position: relative; display: block; width: 100%; text-align: left; padding: 15px 20px 15px 24px; border-radius: 16px; border: 1px solid transparent; background: transparent; cursor: pointer; transition: background-color .35s var(--ease), border-color .35s var(--ease); }
.scn-tab::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px; border-radius: 2px; background: var(--accent); transform: scaleY(0); transition: transform .4s var(--ease); }
.scn-tab small { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--fg-3); line-height: 1.6; }
.scn-tab b { display: block; margin-top: 2px; font-size: 18px; font-weight: 600; color: var(--fg-2); line-height: 1.5; transition: color .3s var(--ease); }
.scn-tab:hover b { color: var(--fg); }
.scn-tab[aria-selected="true"] { background: var(--bg-2); border-color: var(--line); box-shadow: var(--hi); }
.scn-tab[aria-selected="true"]::before { transform: scaleY(1); }
.scn-tab[aria-selected="true"] b { color: var(--fg); }
.scn-panels { display: grid; }
.scn-panel { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s linear .45s; }
.scn-panel.on { opacity: 1; visibility: visible; transition: opacity .55s var(--ease) .05s, visibility 0s; }
.shot { margin: 0; padding: 8px; border-radius: 20px; background: linear-gradient(var(--bg-3), var(--bg-2)); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg), var(--hi); }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; border-radius: 13px; }
.scn-panel.on .shot img { animation: shot-in .9s var(--ease); }
@keyframes shot-in { from { transform: scale(1.025); opacity: .3; } }
.scn-cols { margin-top: 34px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 36px; }
.scn-cols small { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--fg-3); }
.scn-cols .k-on { color: var(--accent); }
.scn-cols p { margin: 8px 0 0; color: var(--fg-2); font-size: 16.5px; line-height: 1.8; word-break: keep-all; overflow-wrap: anywhere; }
.scn-cols p.after { color: var(--fg); font-size: 19px; font-weight: 600; line-height: 1.7; }
.scn-go { margin-top: 30px; }

/* ---------- home: page directory ---------- */
.dir { margin-top: 56px; border-top: 1px solid var(--line-2); }
.dir-row { position: relative; isolation: isolate; display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 8px 32px; align-items: center; padding: 34px 20px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--fg); overflow: hidden; }
.dir-row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg-2); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); }
.dir-row b { font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; transition: transform .5s var(--ease); }
.dir-row span { color: var(--fg-2); word-break: keep-all; overflow-wrap: anywhere; }
.dir-row .ph { width: 54px; height: 54px; border-radius: 999px; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 20px; transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .5s var(--ease); }
.dir-row:hover::before { transform: scaleY(1); }
.dir-row:hover b { transform: translateX(8px); }
.dir-row:hover .ph { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- subpages: header with a waterline that draws in ---------- */
.page-head { padding-top: 96px; }
.page-head h1 { margin: 0; font-size: var(--fs-h1); line-height: 1.1; letter-spacing: -.015em; font-weight: 700; }
.page-head h1::after { content: ""; display: block; width: 64px; height: 3px; margin-top: 26px; border-radius: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; animation: waterline 1s var(--ease) .35s forwards; }
@keyframes waterline { to { transform: scaleX(1); } }
.page-head .lead { margin: 22px 0 0; max-width: 34em; color: var(--fg-2); font-size: var(--fs-lead); line-height: 1.75; }
.page-body { padding-top: 72px; padding-bottom: 136px; }

/* next page link at the foot of each subpage */
.next-page { display: block; text-decoration: none; color: var(--fg); border-top: 1px solid var(--line); }
.next-page .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 52px; padding-bottom: 56px; }
.next-page small { display: block; font-family: var(--mono); font-size: 13px; color: var(--fg-3); }
.next-page b { display: block; margin-top: 6px; font-size: clamp(32px, 4vw, 56px); font-weight: 700; letter-spacing: -.01em; line-height: 1.15; transition: transform .5s var(--ease); }
.next-page .ph { width: 64px; height: 64px; flex: none; border-radius: 999px; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 22px; transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
.next-page:hover b { transform: translateX(10px); }
.next-page:hover .ph { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- services: bento of seven ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.tile { position: relative; display: flex; flex-direction: column; min-height: 360px; padding: 30px 30px 0; border-radius: 22px; border: 1px solid var(--line); background: var(--bg-2); box-shadow: var(--hi); overflow: hidden; text-decoration: none; color: var(--fg); transition: border-color .4s var(--ease); }
.tile:hover { border-color: var(--line-3); }
.tile-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tile-ico { width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-3); display: grid; place-items: center; font-size: 22px; color: var(--accent); box-shadow: var(--hi); }
.tile-n { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--fg-3); transition: color .3s var(--ease); }
.tile-n .ph { transition: transform .35s var(--ease); }
.tile:hover .tile-n { color: var(--fg); }
.tile:hover .tile-n .ph { transform: translateX(4px); }
.tile h2 { margin: 24px 0 0; font-size: 26px; font-weight: 700; line-height: 1.3; }
.tile p { margin: 8px 0 0; max-width: 24em; color: var(--fg-2); font-size: 16.5px; line-height: 1.75; word-break: keep-all; overflow-wrap: anywhere; }
.tile-shot { position: relative; margin-top: auto; padding-top: 30px; height: 210px; }
.tile-shot img { position: absolute; left: 0; right: 0; top: 30px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-radius: 12px 12px 0 0; border: 1px solid var(--line-2); box-shadow: 0 -18px 50px -24px rgba(0, 0, 0, .45); transform: translateY(14px); transition: transform .7s var(--ease); }
.tile:hover .tile-shot img { transform: translateY(2px); }
.t-web { grid-column: span 7; grid-row: span 2; }
.t-web .tile-shot { height: auto; flex: 1; min-height: 360px; }
.t-web .tile-shot img.phone { left: auto; right: 28px; top: 196px; width: 27%; aspect-ratio: 390 / 844; object-position: top center; border-radius: 22px; border: 1px solid var(--line-3); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); transform: translateY(24px); }
.t-web:hover .tile-shot img.phone { transform: translateY(6px); transition-delay: .05s; }
.t-admin, .t-line { grid-column: span 5; }
.t-excel, .t-auto, .t-n8n { grid-column: span 4; }
.t-scrapers { grid-column: span 12; min-height: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.t-scrapers .tile-text { padding: 34px 34px 36px; display: flex; flex-direction: column; }
.t-scrapers .tile-shot { margin: 0; padding: 34px 0 0; height: 330px; }
.t-scrapers .tile-shot img { top: 34px; border-radius: 12px 0 0 0; border-right: 0; }
.svc-more { margin: 40px 0 0; color: var(--fg-2); }

.nw { display: inline-block; }

/* ---------- works ---------- */
.works-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; color: var(--fg-2); transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.chip:hover { color: var(--fg); border-color: var(--line-3); }
.chip .n { font-family: var(--mono); font-size: 12.5px; color: var(--fg-3); }
.chip[aria-selected="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip[aria-selected="true"] .n { color: color-mix(in srgb, var(--bg) 65%, var(--fg)); }
.search { position: relative; display: flex; align-items: center; }
.search .ph { position: absolute; left: 16px; color: var(--fg-3); font-size: 18px; pointer-events: none; }
.search input { height: 44px; width: 300px; max-width: 100%; padding: 0 18px 0 44px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--fg); font: inherit; font-size: 15.5px; transition: border-color .25s var(--ease); }
.search input::placeholder { color: var(--fg-3); }
.search input:focus { outline: none; border-color: var(--accent); }

.grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.card { position: relative; display: flex; flex-direction: column; padding: 8px; border-radius: 20px; border: 1px solid var(--line); background: var(--bg-2); box-shadow: var(--hi); cursor: pointer; text-align: left; transition: transform .5s var(--ease), border-color .3s var(--ease), box-shadow .5s var(--ease); }
.card:hover { transform: translateY(-4px); border-color: var(--line-3); box-shadow: var(--shadow), var(--hi); }
.card-thumb { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 13px; background: var(--bg-3); border: 1px solid var(--line); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.1s var(--ease); }
.card:hover .card-thumb img { transform: scale(1.04); }
.card-body { padding: 20px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-cat { font-family: var(--mono); font-size: 12.5px; color: var(--accent); }
.card h3 { margin: 0; font-size: 18.5px; line-height: 1.45; font-weight: 600; }
.card p { margin: 0; color: var(--fg-2); font-size: 15.5px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .card-hl { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--fg); font-size: 15px; font-weight: 600; line-height: 1.5; }
.card-hl-k { flex: none; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--accent); }
.techs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.techs span { font-family: var(--mono); font-size: 12px; color: var(--fg-3); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 10px; }
.card.enter { animation: card-in .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms + 140ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.empty { margin-top: 40px; padding: 56px 24px; border: 1px dashed var(--line-3); border-radius: 20px; text-align: center; color: var(--fg-2); }
.empty .ph { font-size: 30px; color: var(--fg-3); }
.empty p { margin: 8px 0 0; }

/* ---------- process: a route line that draws itself once the page settles ---------- */
.route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; position: relative; }
.route::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 1px; background: var(--line-2); }
.route::after { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease); }
.route.in::after { transform: scaleX(1); }
.route-step { position: relative; padding-top: 48px; opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 180ms + 200ms); }
.route-step::before { content: ""; position: absolute; top: 0; left: 0; width: 17px; height: 17px; border-radius: 50%; background: var(--bg); border: 2px solid var(--fg-3); box-shadow: 0 0 0 6px var(--bg); transition: border-color .4s var(--ease), background-color .4s var(--ease); transition-delay: inherit; }
.route.in .route-step { opacity: 1; transform: none; }
.route.in .route-step::before { border-color: var(--accent); background: var(--accent); }
.route-step b { display: block; font-size: 24px; font-weight: 700; line-height: 1.35; }
.route-step span { display: block; margin-top: 12px; color: var(--fg-2); font-size: 16.5px; word-break: keep-all; overflow-wrap: anywhere; }
.route-get { margin-top: 26px; padding: 16px 18px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); box-shadow: var(--hi); }
.route-get small { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--accent); }
.route-get p { margin: 4px 0 0; font-size: 16px; font-weight: 600; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }

/* ---------- contact ---------- */
.mail-card { position: relative; overflow: hidden; padding: 48px; border-radius: 24px; border: 1px solid var(--line-2); background: var(--bg-2); box-shadow: var(--shadow-lg), var(--hi); display: grid; gap: 28px; }
.mail-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 36px 36px; -webkit-mask-image: linear-gradient(110deg, transparent 35%, #000 100%); mask-image: linear-gradient(110deg, transparent 35%, #000 100%); }
.mail-label { position: relative; font-family: var(--mono); font-size: 13px; color: var(--fg-3); }
.mail-big { position: relative; display: block; margin-top: -16px; font-family: var(--mono); font-size: clamp(26px, 4.6vw, 60px); font-weight: 500; letter-spacing: -.03em; line-height: 1.15; overflow-wrap: anywhere; user-select: all; }
.mail-actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }
.line-row { position: relative; display: grid; justify-items: start; gap: 14px; padding-top: 26px; border-top: 1px solid var(--line-2); }
/* LINE 按鈕：品牌綠底，左邊白色圓形徽章，右邊箭頭；滑過時徽章微轉、箭頭前移 */
.line-btn { display: inline-flex; align-items: center; gap: 14px; height: 58px; padding: 6px 24px 6px 6px; border-radius: 999px; background: linear-gradient(180deg, #19d468, #06c755); color: #04210f; text-decoration: none; box-shadow: 0 14px 32px -14px rgba(6, 199, 85, .65), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.line-btn b { font-size: 16.5px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.line-badge { width: 46px; height: 46px; flex: none; border-radius: 50%; background: #fff; display: grid; place-items: center; color: #06c755; font-size: 24px; box-shadow: 0 2px 6px rgba(4, 33, 15, .18); transition: transform .4s var(--ease); }
.line-go { font-size: 18px; transition: transform .3s var(--ease); }
.line-btn:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -14px rgba(6, 199, 85, .75), inset 0 1px 0 rgba(255, 255, 255, .35); }
.line-btn:hover .line-badge { transform: rotate(-10deg) scale(1.05); }
.line-btn:hover .line-go { transform: translate(2px, -2px); }
.line-btn:active { transform: scale(.98); }
.line-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .line-btn, .line-badge, .line-go { transition: none; } }
.foot-line-k { margin-top: 22px !important; }
.tips { margin-top: 88px; }
.tips h2 { margin: 0; font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; }
.tips ul { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tips li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; align-items: start; padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-2); box-shadow: var(--hi); }
.tips li .ph { width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-3); display: grid; place-items: center; font-size: 21px; color: var(--accent); }
.tips li b { display: block; font-size: 18px; font-weight: 600; line-height: 1.5; }
.tips li span { display: block; margin-top: 4px; color: var(--fg-2); font-size: 16px; word-break: keep-all; overflow-wrap: anywhere; }

.flow { margin-top: 136px; }
.flow .route { margin-top: 64px; }

/* ---------- footer with an outlined wordmark ---------- */
.foot { border-top: 1px solid var(--line); padding-top: 72px; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.foot-brand p { margin: 14px 0 0; max-width: 22em; color: var(--fg-2); font-size: 16px; }
.foot h3 { margin: 0 0 14px; font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--fg-3); }
.foot-links { display: grid; gap: 6px; }
.foot-links a { width: fit-content; color: var(--fg-2); text-decoration: none; transition: color .25s var(--ease); }
.foot-links a:hover { color: var(--fg); }
.foot-mail { font-family: var(--mono); font-size: 16px; color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line-3); padding-bottom: 2px; transition: border-color .25s var(--ease); }
.foot-mail:hover { border-color: var(--accent); }
.foot-word { margin: 80px 0 0; font-size: clamp(52px, 10.6vw, 156px); font-weight: 700; letter-spacing: -.05em; line-height: .78; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px var(--line-3); user-select: none; transform: translateY(14%); }
.foot-word em { font-style: normal; -webkit-text-stroke-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.foot-bottom { position: relative; border-top: 1px solid var(--line); padding: 22px 0 30px; background: var(--bg); }
.foot-bottom p { margin: 0; color: var(--fg-3); font-size: 14px; }

/* ---------- modal ---------- */
.modal { width: min(980px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--line-2); border-radius: 22px; background: var(--bg-2); color: var(--fg); box-shadow: var(--shadow-lg); overflow: auto; opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .35s var(--ease), transform .5s var(--ease), overlay .35s allow-discrete, display .35s allow-discrete; }
.modal[open] { opacity: 1; transform: none; }
@starting-style { .modal[open] { opacity: 0; transform: translateY(18px) scale(.98); } }
.modal::backdrop { background: rgba(4, 7, 9, 0); backdrop-filter: blur(0); transition: background-color .35s var(--ease), backdrop-filter .35s var(--ease), overlay .35s allow-discrete, display .35s allow-discrete; }
.modal[open]::backdrop { background: rgba(4, 7, 9, .66); backdrop-filter: blur(6px); }
@starting-style { .modal[open]::backdrop { background: rgba(4, 7, 9, 0); backdrop-filter: blur(0); } }
.modal-body { position: relative; }
.modal-close { position: absolute; z-index: 3; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--bg-2) 80%, transparent); backdrop-filter: blur(8px); display: grid; place-items: center; cursor: pointer; font-size: 18px; }
.gallery { position: relative; padding: 10px 10px 0; }
.gallery-view { position: relative; aspect-ratio: 16 / 9.4; overflow: hidden; border-radius: 14px; background: var(--bg-3); border: 1px solid var(--line); }
.gallery-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .45s var(--ease); }
.gallery-view img.on { opacity: 1; }
.gallery-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 6px 4px; }
.gallery-arrows { display: flex; gap: 8px; }
.gallery-dots { display: flex; gap: 6px; align-items: center; }
.gallery-dots button { width: 8px; height: 8px; padding: 0; border-radius: 999px; border: 0; background: var(--line-3); cursor: pointer; transition: width .35s var(--ease), background-color .35s var(--ease); }
.gallery-dots button[aria-current="true"] { width: 24px; background: var(--accent); }
.modal-content { padding: 26px 40px 40px; }
.m-phone, .gallery-k { display: none; }
.modal-content h2 { margin: 8px 0 0; font-size: 30px; line-height: 1.35; letter-spacing: -.01em; }
.modal-content > p { color: var(--fg-2); margin: 12px 0 0; }
.modal-content h4 { margin: 32px 0 10px; font-size: 15px; font-weight: 600; color: var(--fg); }
.modal-content ul { margin: 0; padding-left: 20px; color: var(--fg-2); }
.modal-content li { margin: 6px 0; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.modal .note { margin-top: 20px; color: var(--fg-3); font-size: 14px; }
/* 特色功能：規格表式的一列，左邊等寬字標籤，右邊名稱與說明，上下細線 */
.modal-content .hl { margin-top: 28px; padding: 24px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 4px 24px; align-items: baseline; color: inherit; }
.hl-k { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: .02em; }
.hl-v b { display: block; font-size: 23px; line-height: 1.4; font-weight: 700; color: var(--fg); }
.hl-v p { margin: 8px 0 0; color: var(--fg-2); max-width: 46em; }

/* ---------- motion ---------- */
.reveal-load { opacity: 0; transform: translateY(20px); animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.in { opacity: 1; transform: none; }

/* the monitor starts tilted back and settles flat over the first scroll */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .monitor { animation: monitor-flat linear both; animation-timeline: scroll(root); animation-range: 0px 560px; }
  }
}
@keyframes monitor-flat { from { transform: rotateX(17deg) scale(.94); } to { transform: none; } }

/* page to page: header and menu stay still, the old page lifts away, the new one fades in
   while its own content rises (the .reveal-load stagger above). */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition-old(root) { animation: page-out .24s var(--ease-in) both; }
::view-transition-new(root) { animation: page-in .42s var(--ease) .1s both; }
::view-transition-old(bar), ::view-transition-old(nav) { display: none; }
::view-transition-new(bar), ::view-transition-new(nav) { animation: none; }
::view-transition-group(bar), ::view-transition-group(nav) { animation: none; z-index: 2; }
@keyframes page-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes page-in { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .reveal, .reveal-load, .route-step { opacity: 1 !important; transform: none !important; }
  .route::after, .page-head h1::after { transform: none !important; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .wrap { padding-inline: 28px; }
  .scn { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .scn-tabs { position: static; flex-direction: row; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; margin-inline: -28px; padding-inline: 28px; }
  .scn-tab { flex: none; width: auto; scroll-snap-align: start; padding: 10px 18px; border-color: var(--line-2); }
  .scn-tab::before { display: none; }
  .scn-tab small { display: none; }
  .scn-tab b { margin: 0; font-size: 15.5px; white-space: nowrap; }
  .scn-tab[aria-selected="true"] { background: var(--fg); border-color: var(--fg); }
  .scn-tab[aria-selected="true"] b { color: var(--bg); }
  .t-web { grid-column: span 12; grid-row: auto; }
  .t-web .tile-shot { min-height: 0; height: 300px; flex: none; }
  .t-web .tile-shot img.phone { top: 90px; width: 24%; }
  .t-admin, .t-line { grid-column: span 6; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
  .route::before, .route::after { display: none; }
  .route-step::before { border-color: var(--accent); }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  body { font-size: 16.5px; }
  .wrap { padding-inline: 20px; }
  .nav { top: auto; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); padding: 5px; background: color-mix(in srgb, var(--bg-3) 92%, transparent); box-shadow: var(--shadow), var(--hi); }
  .nav a { padding: 8px 17px; }
  .nav-glider { top: 5px; height: calc(100% - 10px); }
  .bar-tools .btn { display: none; }
  .backdrop { height: 760px; }
  .backdrop::after { top: 440px; height: 360px; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: clamp(38px, 11vw, 52px); line-height: 1.12; }
  .hero-row { margin-top: 24px; flex-direction: column; align-items: flex-start; }
  .stage { margin-top: 48px; }
  .monitor { padding: 6px; border-radius: 16px; }
  .monitor-bar { height: 28px; }
  .dots { left: 6px; gap: 5px; }
  .dots i { width: 8px; height: 8px; }
  .monitor-url { font-size: 11px; max-width: 62%; }
  .screen { border-radius: 10px; aspect-ratio: 16 / 10; }
  .stage { position: relative; display: flex; flex-direction: column; align-items: center; }
  .stage::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 4%; height: 70%; background: radial-gradient(closest-side, var(--glow), transparent 80%); pointer-events: none; }
  .stage .monitor { display: none; }
  .hero-phone { display: block; width: min(66vw, 276px); }
  .deck-meta { align-self: stretch; }
  .deck-meta { flex-direction: column; align-items: flex-start; gap: 12px; }
  .deck-steps i { width: 26px; }
  .stats { margin-top: 72px; }
  .stat + .stat { padding-left: 16px; }
  .stat b { font-size: 38px; }
  .stat span { font-size: 14px; margin-top: 10px; }
  .section { padding-block: 96px; }
  .scn-tabs { margin-inline: -20px; padding-inline: 20px; }
  .shot { padding: 6px; border-radius: 16px; }
  .shot img { border-radius: 11px; }
  .shot.has-phone { width: min(64vw, 260px); margin-inline: auto; padding: 0; border: 0; background: none; box-shadow: none; -webkit-mask-image: linear-gradient(#000 74%, transparent); mask-image: linear-gradient(#000 74%, transparent); }
  .shot.has-phone img { aspect-ratio: 390 / 700; border: 7px solid #0b0f12; border-bottom: 0; border-radius: 38px 38px 0 0; outline: 1px solid rgba(255, 255, 255, .08); outline-offset: -1px; }
  .scn-cols { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 26px; }
  .scn-cols p.after { font-size: 18px; }
  .dir-row { grid-template-columns: minmax(0, 1fr) auto; padding: 26px 4px; }
  .dir-row span { grid-column: 1; grid-row: 2; font-size: 15.5px; }
  .dir-row .ph { grid-column: 2; grid-row: 1 / 3; width: 46px; height: 46px; }
  .page-head { padding-top: 56px; }
  .page-body { padding-top: 48px; padding-bottom: 88px; }
  .bento { gap: 16px; }
  .tile, .t-admin, .t-line, .t-excel, .t-auto, .t-n8n { grid-column: span 12; min-height: 0; padding: 24px 24px 0; }
  .tile h2 { font-size: 23px; }
  .tile-shot, .t-web .tile-shot { height: 200px; }
  .bento .tile-shot.has-phone { height: 250px; padding: 26px 0 0; }
  .bento .tile-shot.has-phone img { left: 50%; right: auto; top: 26px; width: min(56vw, 230px); aspect-ratio: 390 / 844; object-position: top center; border: 7px solid #0b0f12; border-bottom: 0; border-radius: 36px 36px 0 0; outline: 1px solid rgba(255, 255, 255, .08); outline-offset: -1px; box-shadow: 0 -24px 60px -26px rgba(0, 0, 0, .5); transform: translateX(-50%) translateY(10px); }
  .bento .tile:hover .tile-shot.has-phone img { transform: translateX(-50%) translateY(10px); }
  .t-web .tile-shot img.phone { display: none; }
  .t-scrapers { padding: 0; grid-template-columns: minmax(0, 1fr); }
  .t-scrapers .tile-text { padding: 24px 24px 0; }
  .t-scrapers .tile-shot { padding: 30px 0 0 24px; height: 220px; }
  .t-scrapers .tile-shot img { top: 30px; left: 24px; width: calc(100% - 24px); }
  /* 作品頁：分類列在捲動時固定在頂部，清單改成一列一件的精簡版（細節在點開的視窗裡） */
  .works-tools { display: contents; }
  .search { order: -1; margin-bottom: 14px; }
  .search input { width: 100%; height: 46px; }
  .filters { position: sticky; top: 68px; z-index: 20; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding: 10px 20px; background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%); border-bottom: 1px solid var(--line); }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; height: 38px; padding: 0 15px; font-size: 14.5px; }
  .page-body:has(.works-tools) { display: flex; flex-direction: column; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; margin-top: 18px; }
  .card { padding: 6px; border-radius: 18px; }
  .card:hover { transform: none; }
  .card:active { transform: scale(.985); }
  .card-thumb { aspect-ratio: 3 / 4; border-radius: 13px; }
  .card-thumb:not(.has-phone) img { object-position: left top; }
  .card-body { padding: 12px 6px 6px; gap: 5px; }
  .card-cat { font-size: 12px; }
  .card h3 { font-size: 15px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card-body > p:not(.card-hl), .card .techs { display: none; }
  .card .card-hl { margin-top: auto; padding-top: 8px; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--fg-2); line-height: 1.45; white-space: nowrap; overflow: hidden; }
  .card .card-hl > span:last-child { overflow: hidden; text-overflow: ellipsis; }
  .card-hl-k { font-size: 12px; }
  .route { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-left: 34px; }
  .route::before, .route::after { display: block; left: 8px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .route::after { transform: scaleY(0); transform-origin: top; }
  .route.in::after { transform: scaleY(1); }
  .route-step { padding-top: 0; }
  .route-step::before { left: -34px; top: 8px; box-shadow: none; }
  .route-step b { font-size: 22px; }
  .mail-card { padding: 28px 22px; border-radius: 20px; gap: 22px; }
  .mail-big { margin-top: -10px; }
  .tips { margin-top: 64px; }
  .flow { margin-top: 96px; }
  .flow .route { margin-top: 44px; }
  .tips ul { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tips li { padding: 20px; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
  .tips li .ph { width: 44px; height: 44px; }
  /* 手機看作品細節：先看這個作品在手機上的樣子，電腦版畫面放到說明後面 */
  #modalBody.has-phone { display: flex; flex-direction: column; }
  #modalBody.has-phone .m-phone { order: 1; }
  #modalBody.has-phone .modal-content { order: 2; padding-bottom: 8px; }
  #modalBody.has-phone .gallery { order: 3; padding: 0 22px 28px; }
  .m-phone { display: flex; justify-content: center; margin: 10px 10px 0; padding: 30px 0 28px; border-radius: 16px; background: radial-gradient(58% 62% at 50% 46%, var(--glow), transparent 72%), var(--bg-3); border: 1px solid var(--line); }
  .m-phone .handset { width: min(48vw, 196px); }
  .gallery-k { display: block; margin: 0 0 10px; font-family: var(--mono); font-size: 12.5px; color: var(--fg-3); }
  .modal-content { padding: 22px 22px 28px; }
  .modal-content h2 { font-size: 25px; }
  .modal-content .hl { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hl-v b { font-size: 21px; }
  .next-page .wrap { padding-top: 38px; padding-bottom: 42px; }
  .next-page .ph { width: 52px; height: 52px; }
  .foot { padding-top: 56px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .foot-word { margin-top: 56px; font-size: 9.6vw; }
  .foot-bottom { padding-bottom: 104px; }
}
