/* ==========================================================
   知序商務管理 — 線條感設計系統
   ========================================================== */

:root {
  --paper: #f6f3ec;
  --paper-2: #ebe7dc;
  --ink: #1e3043;          /* Logo 深藍 */
  --ink-soft: #4b5a6b;
  --line: #c8c6b8;
  --accent: #a8823f;       /* Logo 金（加深，用於文字與重點） */
  --accent-2: #4a766d;     /* 輔助：墨綠（確認、通過） */
  --jade: #3b8a6e;         /* 輔助：玉綠（LINE 按鈕） */
  --jade-deep: #2e6f58;
  --sage: #dfe8e2;         /* 輔助：淺鼠尾草綠 */
  --sun: #cca96e;          /* Logo 金（強調、螢光筆） */
  --serif: "Noto Serif TC", "Songti TC", serif;
  --sans: "Noto Sans TC", "PingFang TC", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --stroke: 1.5px;
  --radius: 4px;
  --max: 1200px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main { overflow-x: clip; }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.3; margin: 0; letter-spacing: .03em; }
p { margin: 0 0 1em; }
p, li, h3, figcaption, summary, .lead { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
.nw { white-space: nowrap; }
.mono { font-family: var(--mono); letter-spacing: .08em; }

/* 背景格線 */
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(27,43,64,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27,43,64,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 85%);
}

/* ---------- 按鈕 ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.6em;
  font: 500 .95rem var(--sans);
  letter-spacing: .08em;
  color: var(--paper);
  background: var(--ink);
  border: var(--stroke) solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
  box-shadow: 0 0 0 0 var(--ink);
}
.btn:hover { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 0 var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--sage); }
.btn-small { padding: .55em 1.2em; font-size: .85rem; }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { box-shadow: 3px 3px 0 0 var(--sun); }

/* ---------- 導覽列 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 1rem clamp(1.2rem, 4vw, 3rem);
  background: rgba(246,243,236,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.brand-logo { height: 46px; width: auto; display: block; }
.footer .brand-logo-full { height: 130px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.brand-mark .dot { fill: var(--accent); stroke: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 900; letter-spacing: .15em; }
.brand-text small { font-size: .7rem; letter-spacing: .35em; color: var(--ink-soft); }

.nav-links { display: flex; gap: 1.8rem; margin-left: auto; }
.nav-links a {
  position: relative; font-size: .9rem; text-decoration: none; color: var(--ink-soft);
  padding: .2em 0; transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 1.5px; background: var(--ink); margin: 6px 0; transition: transform .3s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- 共用區塊 ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 8rem) clamp(1.2rem, 4vw, 3rem);
  position: relative;
}
.section + .section::before {
  content: ""; position: absolute; top: 0; left: clamp(1.2rem, 4vw, 3rem); right: clamp(1.2rem, 4vw, 3rem);
  height: 1px; background: repeating-linear-gradient(to right, var(--line) 0 6px, transparent 6px 12px);
}
.section-head { margin-bottom: 3.5rem; max-width: 720px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; }
.section-sub { margin-top: 1rem; color: var(--ink-soft); font-size: .95rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .8em;
  font-size: .85rem; letter-spacing: .2em; color: var(--ink-soft); margin-bottom: 1.2rem;
}
.eyebrow .mono {
  display: inline-grid; place-items: center;
  width: 2.4em; height: 2.4em; border: var(--stroke) solid var(--ink); border-radius: 50%;
  font-size: .75rem; color: var(--ink);
}
.eyebrow::after { content: ""; width: 48px; height: 1px; background: var(--ink); }
.eyebrow.light, .eyebrow.light .mono { color: var(--paper); border-color: var(--paper); }
.eyebrow.light::after { background: var(--paper); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  min-height: calc(100vh - 72px);
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 2rem;
  padding: 3rem clamp(1.2rem, 4vw, 3rem) 5rem;
  position: relative;
}
.hero h1 {
  font-size: clamp(3rem, 8vw, 6.2rem);
  font-weight: 900; line-height: 1.15; margin-bottom: 1.8rem;
}
.title-head { display: inline-block; height: 1em; width: auto; vertical-align: -0.12em; }
.title-img {
  display: inline-block; height: 1.08em; width: auto; vertical-align: -0.18em; margin: 0 .06em 0 .02em;
  transform: rotate(-3deg); transform-origin: 50% 60%;
  animation: stampIn .7s 1.2s cubic-bezier(.3,1.6,.5,1) both;
}
@keyframes stampIn { 0% { opacity: 0; transform: rotate(-3deg) scale(1.6); } 60% { opacity: 1; } 100% { opacity: 1; transform: rotate(-3deg) scale(1); } }

/* 動態法務小圖示 */
.legal-icon {
  position: absolute; z-index: 2; width: 74px; height: 74px; display: grid; place-items: center;
  background: var(--paper); border: var(--stroke) solid var(--ink); border-radius: 50%;
  box-shadow: 4px 4px 0 var(--ink);
  animation: bobIcon 5s ease-in-out infinite;
}
.legal-icon svg { width: 46px; height: 46px; overflow: visible; }
.legal-icon .st { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.legal-icon .thick { stroke-width: 4.5; }
.legal-icon .acc { stroke: var(--accent); }
.legal-icon .fillp { fill: #fffdf6; }
.legal-icon .fill-acc { fill: var(--accent); }
.legal-icon .dot { fill: var(--sun); stroke: var(--ink); stroke-width: 2; }
.legal-icon .mark { fill: var(--accent); opacity: 0; }
.li-scale { top: 4%; left: 6%; }
.li-gavel { top: 2%; right: 4%; animation-delay: -1.2s; }
.li-stamp { bottom: 6%; left: 2%; animation-delay: -2.4s; }
.li-pen { bottom: 2%; right: 8%; animation-delay: -3.6s; }
@keyframes bobIcon { 50% { transform: translateY(-8px); } }

.li-scale .beam { transform-origin: 32px 20px; animation: tilt 3.2s ease-in-out infinite; }
@keyframes tilt { 0%,100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }

.li-gavel .hammer { transform-origin: 16px 44px; animation: knock 1.8s ease-in infinite; }
@keyframes knock { 0%, 55%, 100% { transform: rotate(0); } 30% { transform: rotate(-28deg); } 50% { transform: rotate(4deg); } }

.li-stamp .stamp { animation: press 2.4s ease-in-out infinite; }
.li-stamp .mark { animation: markShow 2.4s ease-in-out infinite; }
@keyframes press { 0%, 100% { transform: translateY(-4px); } 40% { transform: translateY(-4px); } 55% { transform: translateY(8px); } 70% { transform: translateY(-4px); } }
@keyframes markShow { 0%, 50% { opacity: 0; } 58%, 90% { opacity: .9; } 100% { opacity: 0; } }

.li-pen .sign { stroke: var(--accent-2); stroke-dasharray: 60; stroke-dashoffset: 60; animation: sign 3s ease-in-out infinite; }
.li-pen .pen { animation: write 3s ease-in-out infinite; }
@keyframes sign { 0% { stroke-dashoffset: 60; } 60%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 60; opacity: 0; } }
@keyframes write { 0% { transform: translate(-16px, 8px); } 60% { transform: translate(0, 0); } 85% { transform: translate(0,0); } 100% { transform: translate(-16px, 8px); } }
.underline-draw { position: relative; display: inline-block; color: var(--accent); }
.lead { font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--ink-soft); max-width: 34em; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.hero-tags li {
  font-size: .8rem; padding: .3em 1em; border: 1px dashed var(--ink-soft); border-radius: 999px; color: var(--ink-soft);
}

.hero-art { position: relative; }
.line-art { width: 100%; height: auto; overflow: visible; }
.line-art .draw {
  fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1200; stroke-dashoffset: 1200;
  animation: draw 2.4s var(--ease) forwards;
}
.line-art .thin { stroke-width: 1.2; stroke: var(--ink-soft); animation-delay: .5s; }
.line-art .fill-paper { fill: var(--paper); }
.line-art .accent { stroke: var(--accent); stroke-width: 2.5; animation-delay: 1.4s; animation-duration: 1.6s; }
.line-art .accent-2 { stroke: var(--accent-2); stroke-width: 3; animation-delay: 2s; animation-duration: 1s; }
.line-art .dash { stroke-dasharray: 4 8; stroke-dashoffset: 0; animation: dashmove 20s linear infinite; stroke: var(--ink-soft); }
.line-art .orbit { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 10; transform-origin: center; animation: spin 80s linear infinite; }
.line-art .orbit-2 { animation-direction: reverse; animation-duration: 120s; }
.line-art .node { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.line-art .node-accent { fill: var(--sun); }
.line-art .label { font: 500 13px var(--sans); fill: var(--ink-soft); letter-spacing: .1em; }
.line-art .doc-back { transform-origin: 265px 195px; animation: float 7s ease-in-out infinite; }
.line-art .pen { transform-origin: 370px 270px; animation: float 6s ease-in-out infinite reverse; }

.scroll-hint {
  position: absolute; left: clamp(1.2rem, 4vw, 3rem); bottom: 1.5rem;
  display: flex; align-items: center; gap: .6rem; text-decoration: none; font-size: .7rem; color: var(--ink-soft);
}
.scroll-hint svg { width: 12px; height: 40px; fill: none; stroke: var(--ink-soft); stroke-width: 1.5; animation: bob 2s ease-in-out infinite; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes dashmove { to { stroke-dashoffset: -240; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-10px) rotate(-1deg); } }
@keyframes bob { 50% { transform: translateY(6px); } }

/* ---------- 跑馬燈 ---------- */
.ticker {
  border-top: var(--stroke) solid var(--ink); border-bottom: var(--stroke) solid var(--ink);
  background: var(--ink); color: var(--paper);
  overflow: hidden; white-space: nowrap; padding: .9rem 0;
  transform: rotate(-1.2deg); margin: 0 -2rem;
}
.ticker-track { display: inline-flex; gap: 1.6rem; animation: ticker 40s linear infinite; font-family: var(--serif); font-size: 1.15rem; letter-spacing: .15em; }
.ticker-track i { font-style: normal; color: var(--sun); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- 理念 ---------- */
.why { isolation: isolate; }
.why-bg {
  position: absolute; z-index: -1; pointer-events: none;
  top: 0; right: -2rem; width: min(500px, 44%); height: auto;
  opacity: .16;
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent 75%);
  mask-image: linear-gradient(to bottom, #000 35%, transparent 75%);
}
.why-bg rect, .why-bg path, .why-bg circle {
  fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.why-bg rect { fill: rgba(255,255,255,.35); }
.why-bg .b { stroke-width: 3; }
.why-bg .sig { stroke: var(--accent); stroke-width: 2.2; }
.why-bg .seal { stroke: var(--accent); }
.why-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.why-text p { font-size: 1.05rem; color: var(--ink-soft); }
mark {
  background: linear-gradient(transparent 55%, rgba(204,169,110,.55) 55%);
  color: var(--ink); padding: 0 .1em;
}
.signature { margin-top: 2rem; font-family: var(--serif); font-style: italic; font-weight: 700; color: var(--accent); font-size: 1.1rem; letter-spacing: .04em; line-height: 1.6; }
.signature span { font-style: normal; font-size: .95rem; color: var(--ink-soft); letter-spacing: .15em; }
.pain-list { list-style: none; padding: 0; margin: 0; border-left: var(--stroke) solid var(--ink); }
.pain-list li {
  position: relative; display: flex; gap: 1.2rem; padding: 1.4rem 0 1.4rem 1.8rem;
  border-bottom: 1px dashed var(--line);
}
.pain-list li:last-child { border-bottom: 0; }
.pain-list li::before {
  content: ""; position: absolute; left: -6px; top: 2rem; width: 10px; height: 10px;
  background: var(--paper); border: var(--stroke) solid var(--ink); border-radius: 50%;
  transition: background .3s;
}
.pain-list li:hover::before { background: var(--accent); }
.pain-num { font-size: .8rem; color: var(--accent); padding-top: .25rem; }
.pain-list h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.pain-list p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ---------- 適合誰 ---------- */
mark.hl {
  background: linear-gradient(transparent 58%, rgba(204,169,110,.75) 58%, rgba(204,169,110,.75) 92%, transparent 92%);
  padding: 0 .08em;
}
.who-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: var(--stroke) solid var(--ink); }
.who-card {
  padding: 2.2rem 1.6rem; position: relative;
  border-right: var(--stroke) solid var(--ink);
  transition: background .35s;
}
.who-card:last-child { border-right: 0; }
.who-card { --c: var(--ink); --tint: rgba(27,43,64,.05); }
.who-card.c1 { --c: #1b2b40; --tint: rgba(27,43,64,.06); }
.who-card.c2 { --c: #4a766d; --tint: rgba(74,118,109,.09); }
.who-card.c3 { --c: #a8823c; --tint: rgba(204,169,110,.16); }
.who-card.c4 { --c: #3b6e8a; --tint: rgba(59,110,138,.09); }
.who-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--c); }
.who-card:hover { background: var(--tint); }
.who-card .icon {
  width: 56px; height: 56px; margin-bottom: 1.6rem;
  fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .3s, transform .4s var(--ease);
}
.who-card .icon { stroke: var(--c); }
.who-card:hover .icon { transform: translateY(-4px); }
.who-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.who-card .tag { display: inline-block; font-size: .72rem; letter-spacing: .15em; color: var(--c); border-bottom: 1px solid currentColor; margin-bottom: 1rem; }
.who-card p:last-child { color: var(--ink-soft); font-size: .92rem; margin: 0; }

/* ---------- 服務 ---------- */
.service-list { border-top: var(--stroke) solid var(--ink); }
.service {
  display: grid; grid-template-columns: 90px 1.4fr 1fr 130px; gap: 2rem; align-items: center;
  padding: 2.4rem 0; border-bottom: var(--stroke) solid var(--ink);
  position: relative; isolation: isolate; transition: padding .4s var(--ease);
}
.service::before {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); z-index: -1;
}
.service:hover { padding-left: 1.5rem; padding-right: 1.5rem; color: var(--paper); }
.service:hover::before { transform: scaleY(1); }
.service:hover .service-body p, .service:hover .deliverables li { color: rgba(246,243,236,.8); }
.service:hover .service-icon svg { transform: translateY(-4px) rotate(-2deg); }
.service:hover .service-icon figcaption { color: var(--sun); }
.service-index { font-size: .85rem; color: var(--accent); }
.service-body h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: .6rem; display: flex; align-items: center; gap: .6rem; }
.service-body p { margin: 0; color: var(--ink-soft); transition: color .3s; }
.badge { font: 500 .72rem var(--sans); letter-spacing: .1em; padding: .2em .8em; border: 1px solid var(--accent); color: var(--accent); border-radius: 999px; }
.deliverables { list-style: none; padding: 0; margin: 0; }
.deliverables li { position: relative; padding-left: 1.4rem; font-size: .92rem; color: var(--ink-soft); transition: color .3s; }
.deliverables li::before { content: ""; position: absolute; left: 0; top: .85em; width: .8rem; height: 1px; background: var(--accent); }
.service-icon { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.service-icon svg { width: 96px; height: 96px; overflow: visible; transition: transform .45s var(--ease); }
.service-icon figcaption { font-size: .75rem; letter-spacing: .2em; color: var(--ink-soft); transition: color .3s; }
.service.featured .service-index::after { content: " ★"; color: var(--sun); }

/* ---------- 方案 ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 2.4rem 2rem; border: var(--stroke) solid var(--ink); border-radius: var(--radius);
  background: var(--paper);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.plan:hover { transform: translate(-6px, -6px); box-shadow: 6px 6px 0 var(--ink); }
.plan-type { font-size: .75rem; color: var(--accent); margin-bottom: .6rem; }
.plan h3 { font-size: 1.3rem; margin-bottom: 1.4rem; }
.price { white-space: nowrap; font-family: var(--serif); font-size: 2.3rem; font-weight: 700; line-height: 1; padding-bottom: 1.4rem; margin-bottom: 1.4rem; border-bottom: 1px dashed var(--line); }
.price small { font-size: .9rem; margin-right: .2em; font-family: var(--mono); }
.price span { color: var(--ink-soft); margin: 0 .1em; }
.price em { white-space: nowrap; font-style: normal; font-size: .9rem; color: var(--ink-soft); font-family: var(--sans); margin-left: .3em; }
.price-text { font-size: 1.9rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 2rem; flex: 1; }
.plan li { position: relative; padding: .45rem 0 .45rem 1.6rem; font-size: .95rem; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: .95rem; width: 10px; height: 5px;
  border-left: 1.5px solid var(--accent-2); border-bottom: 1.5px solid var(--accent-2); transform: rotate(-45deg);
}
.plan .btn { align-self: flex-start; }
.plan-featured { background: var(--ink); color: var(--paper); }
.plan-featured:hover { box-shadow: 6px 6px 0 var(--accent); }
.plan-featured .price { border-color: rgba(246,243,236,.25); }
.plan-featured .price span, .plan-featured .price em { color: rgba(246,243,236,.7); }
.plan-featured .plan-type { color: var(--sun); }
.plan-featured li::before { border-color: var(--sun); }
.plan-featured .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.plan-corner { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; }
.plan-corner path { fill: none; stroke: var(--sun); stroke-width: 2; }

/* ---------- 流程 ---------- */
.timeline-wrap { position: relative; isolation: isolate; }
.timeline-flow {
  position: absolute; z-index: -1; top: 38px; left: 38px;
  right: calc((100% - 5.6rem) / 5 - 38px); height: 2px;
}
.flow-track {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 16px);
  background-size: 16px 2px;
  animation: flowDash .8s linear infinite;
}
@keyframes flowDash { to { background-position: 16px 0; } }
@keyframes flowDashV { to { background-position: 0 16px; } }
@keyframes runnerV {
  0% { top: 0; opacity: 0; } 3% { opacity: 1; }
  80% { top: 100%; opacity: 1; } 88%, 100% { top: 100%; opacity: 0; }
}
.flow-runner {
  position: absolute; top: 50%; left: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 6px rgba(168,130,63,.2);
  animation: runner 10s linear infinite;
}
.flow-runner svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@keyframes runner {
  0% { left: 0; opacity: 0; } 3% { opacity: 1; }
  80% { left: 100%; opacity: 1; } 88%, 100% { left: 100%; opacity: 0; }
}
.timeline .step { animation: stepOn 10s linear infinite; }
.timeline li:nth-child(1) .step { animation-delay: 0s; }
.timeline li:nth-child(2) .step { animation-delay: 2s; }
.timeline li:nth-child(3) .step { animation-delay: 4s; }
.timeline li:nth-child(4) .step { animation-delay: 6s; }
.timeline li:nth-child(5) .step { animation-delay: 8s; }
@keyframes stepOn {
  0% { background: var(--paper); color: var(--ink); border-color: var(--ink); transform: scale(1); }
  2%, 14% { background: var(--accent); color: var(--paper); border-color: var(--accent); transform: scale(1.08); }
  20%, 100% { background: var(--paper); color: var(--ink); border-color: var(--ink); transform: scale(1); }
}
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.4rem; }
.timeline li { padding-top: 0; }
.step {
  display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: 1.4rem;
  border: var(--stroke) solid var(--ink); border-radius: 50%; background: var(--paper);
  font-size: 1.1rem; position: relative; transition: background .3s, color .3s;
}
.step::after {
  content: ""; position: absolute; inset: -8px; border: 1px dashed var(--line); border-radius: 50%;
  transition: transform .8s var(--ease);
}
.timeline li:hover .step { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.timeline li:hover .step::after { transform: rotate(180deg) scale(1.08); border-color: var(--accent); }
.timeline h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.timeline p { font-size: .9rem; color: var(--ink-soft); margin: 0; }

/* ---------- 團隊 ---------- */
.team-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.team-art .line-art .draw { animation: none; stroke-dashoffset: 1200; transition: stroke-dashoffset 2.2s var(--ease); }
.team-art.in .line-art .draw { stroke-dashoffset: 0; }
.team-art .line-art .accent { transition-delay: 1.2s; }
.team-copy h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 1.6rem; }
.team-copy p { color: var(--ink-soft); }
.values { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2.2rem; }
.values .v { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .7rem; width: 96px; }
.values .v svg {
  width: 84px; height: 84px; padding: 12px; color: var(--sc); background: var(--paper);
  border: 1.5px solid var(--sc); border-radius: 22px; overflow: visible;
  box-shadow: 4px 4px 0 var(--sc); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.values .v figcaption { font-family: var(--serif); font-weight: 700; letter-spacing: .3em; padding-left: .3em; color: var(--ink); }
.values .v:hover svg { transform: translate(-3px, -3px) rotate(-3deg); box-shadow: 7px 7px 0 var(--sc); }

/* ---------- 服務邊界 ---------- */
.scope-grid { display: grid; grid-template-columns: 1fr 40px 1fr; gap: 2rem; }
.scope-col h3 { font-size: 1.3rem; margin-bottom: 1.2rem; display: flex; align-items: center; gap: .6rem; }
.mark-logo { height: 1.15em; width: auto; display: inline-block; vertical-align: -0.2em; margin-right: .1em; }
.mark-yes { color: var(--accent-2); font-size: 1.4rem; }
.mark-partner { color: var(--accent); font-size: 1.2rem; }
.scope-col ul { list-style: none; padding: 0; margin: 0; }
.scope-col li { padding: .8rem 0; border-bottom: 1px dashed var(--line); }
.scope-col .note { margin-top: 1.4rem; font-size: .88rem; color: var(--ink-soft); padding: 1rem 1.2rem; border-left: 3px solid var(--accent); background: var(--paper-2); }
.scope-divider svg { width: 20px; height: 100%; }
.scope-divider path { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 2 8; stroke-linecap: round; }

/* ---------- FAQ ---------- */
.faq-list { border-top: var(--stroke) solid var(--ink); max-width: 900px; }
.faq-list details { border-bottom: var(--stroke) solid var(--ink); }
.faq-list summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.5rem 3rem 1.5rem 0; font-family: var(--serif); font-size: 1.15rem; font-weight: 700;
}
.faq-list summary::-webkit-details-marker { display: none; }
.plus { position: absolute; right: .4rem; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease); }
.plus::after { transform: rotate(90deg); }
details[open] .plus::after { transform: rotate(0); }
details[open] summary { color: var(--accent); }
.faq-list details p { padding: 0 3rem 1.6rem 0; color: var(--ink-soft); margin: 0; animation: fadeIn .4s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- 聯絡 ---------- */
.contact-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2.2rem, 5vw, 4rem); background: var(--ink); color: var(--paper); border-radius: var(--radius);
}
.contact-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.contact-lines path { fill: none; stroke: rgba(204,169,110,.35); stroke-width: 1.2; }
.contact-copy, .line-box { position: relative; }
.contact-copy h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 1.4rem; }
.contact-copy > p { color: rgba(246,243,236,.75); }
.contact-info { list-style: none; padding: 0; margin: 2rem 0 0; }
.contact-info li { padding: .6rem 0; border-bottom: 1px dashed rgba(246,243,236,.25); display: flex; gap: 1.2rem; align-items: center; }
.contact-info .mono { font-size: .72rem; color: var(--sun); width: 3.5em; }
.contact-info a { text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
.contact-info a:hover { border-color: var(--sun); }

/* LINE 洽詢區 */
.line-box { align-self: center; padding: 2rem; border-radius: var(--radius); }
.contact-card { isolation: isolate; }
.contact-copy { z-index: 1; }
.glass-wrap { position: relative; align-self: center; min-width: 0; }
.glass-wrap .line-box { width: 100%; }
.glass-orb { position: absolute; z-index: 0; border-radius: 50%; filter: blur(8px); pointer-events: none; }
.glass-orb.o1 { opacity: .75; width: 220px; height: 220px; left: 10%; top: -8%; background: radial-gradient(circle at 35% 35%, #7fb3a6, #4a766d 60%, transparent 72%); animation: orb 14s ease-in-out infinite; }
.glass-orb.o2 { opacity: .5; width: 150px; height: 150px; right: -4%; bottom: -6%; background: radial-gradient(circle at 40% 40%, #f0d595, #d4b06a 55%, transparent 72%); animation: orb 11s ease-in-out infinite reverse; }
@keyframes orb { 50% { transform: translate(-30px, 24px) scale(1.08); } }
.line-box.glass {
  z-index: 1; border-radius: 28px; padding: 2.2rem;
  background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.05) 45%, rgba(255,255,255,.09));
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(255,255,255,.12),
              inset 0 0 24px rgba(255,255,255,.06), 0 24px 50px -20px rgba(0,0,0,.55);
  overflow: hidden;
}
.line-box.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 60% at 20% -10%, rgba(255,255,255,.35), transparent 55%),
              radial-gradient(80% 40% at 100% 110%, rgba(255,255,255,.12), transparent 60%);
}
.line-box.glass::after {
  content: ""; position: absolute; top: -40%; left: -60%; width: 40%; height: 180%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  transform: rotate(20deg); animation: sheen 7s ease-in-out infinite;
}
@keyframes sheen { 0%, 60% { left: -60%; } 100% { left: 140%; } }
.line-box.glass > * { position: relative; }
.line-box.glass .line-steps li { border-bottom-color: rgba(255,255,255,.18); }
.line-steps { list-style: none; padding: 0; margin: 0 0 2rem; counter-reset: none; }
.line-steps li { display: flex; gap: 1rem; align-items: baseline; padding: .8rem 0; border-bottom: 1px dashed rgba(246,243,236,.2); color: rgba(246,243,236,.85); }
.line-steps .mono { color: var(--sun); font-size: .8rem; white-space: nowrap; flex-shrink: 0; }
.btn-big { width: 100%; padding: 1.1em 1em; font-size: 1.05rem; white-space: nowrap; }
.line-box { min-width: 0; }
.line-note { margin: 1rem 0 0; font-size: .85rem; color: rgba(246,243,236,.6); text-align: center; }

/* LINE 按鈕 */
.btn-line { background: var(--jade); border-color: var(--jade); color: #fff; }
.btn-line:hover { background: var(--jade-deep); border-color: var(--jade-deep); }
.btn-line svg { width: 1.3em; height: 1.3em; fill: currentColor; }
.btn-line:hover { box-shadow: 3px 3px 0 0 var(--ink); }
.contact .btn-line:hover { box-shadow: 3px 3px 0 0 var(--sun); }
.line-float {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 60;
  display: flex; align-items: center; gap: .5rem; padding: .8rem 1.2rem;
  background: var(--jade); color: #fff; text-decoration: none; font-weight: 500; letter-spacing: .08em;
  border: var(--stroke) solid var(--ink); border-radius: 999px; box-shadow: 4px 4px 0 var(--ink);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), opacity .3s;
}
.line-float svg { width: 1.5rem; height: 1.5rem; fill: currentColor; }
.line-float:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.line-float.hide { opacity: 0; pointer-events: none; transform: translateY(20px); }

/* ---------- Footer ---------- */
.footer { max-width: var(--max); margin: 0 auto; padding: 4rem clamp(1.2rem, 4vw, 3rem) 2rem; border-top: var(--stroke) solid var(--ink); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.footer-slogan { font-family: var(--serif); font-size: 1.2rem; text-align: right; margin: 0; }
.disclaimer { font-size: .78rem; color: var(--ink-soft); max-width: 60em; line-height: 1.9; }
.copyright { font-size: .72rem; color: var(--ink-soft); margin: 1.5rem 0 0; }

/* ---------- 捲動進場 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- RWD ---------- */
@media (max-width: 1024px) {
  .who-grid { grid-template-columns: repeat(2, 1fr); }
  .who-card:nth-child(2) { border-right: 0; }
  .who-card:nth-child(-n+2) { border-bottom: var(--stroke) solid var(--ink); }
  .service { grid-template-columns: 70px 1fr 1fr 100px; }
  .service-icon svg { width: 80px; height: 80px; }
  .timeline { grid-template-columns: 1fr; row-gap: 2.2rem; }
  .timeline li { display: grid; grid-template-columns: 76px 1fr; column-gap: 1.2rem; }
  .timeline li .step { grid-row: span 2; margin: 0; }
  .timeline-flow.vertical { right: auto; }
  .timeline-flow.vertical .flow-track { background: repeating-linear-gradient(180deg, var(--ink) 0 8px, transparent 8px 16px); background-size: 2px 16px; animation-name: flowDashV; }
  .timeline-flow.vertical .flow-runner { left: 50%; top: 0; animation-name: runnerV; }
  .timeline-flow.vertical .flow-runner svg { transform: rotate(90deg); }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: var(--stroke) solid var(--ink);
    padding: .5rem 1.5rem 1.5rem; transform: translateY(-120%); visibility: hidden; transition: transform .4s var(--ease), visibility .4s;
  }
  .nav-links.open { transform: none; visibility: visible; }
  .nav-links a { padding: .9rem 0; border-bottom: 1px dashed var(--line); font-size: 1rem; }
  .nav-toggle { display: block; }
  .brand-logo { height: 38px; }
  .nav > .btn-small { display: none; }

  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 2rem; }
  .hero-art { max-width: 420px; margin: 0 auto; order: -1; }
  .scroll-hint { display: none; }
  .why-grid, .team-wrap, .contact-card { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .scope-grid { grid-template-columns: 1fr; }
  .scope-divider { display: none; }
  .team-art { max-width: 320px; margin: 0 auto; }
  .legal-icon { width: 54px; height: 54px; box-shadow: 3px 3px 0 var(--ink); }
  .legal-icon svg { width: 34px; height: 34px; }
  .why-bg { width: 80%; right: -25%; top: 4rem; opacity: .1; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: calc((100vw - 2.6rem) / 7.2); white-space: nowrap; }
  .br-desk { display: none; }
  .title-img { translate: -0.22em -0.06em; vertical-align: -0.14em; }
  .who-grid { grid-template-columns: 1fr; }
  .who-card { border-right: 0; border-bottom: var(--stroke) solid var(--ink); }
  .who-card:last-child { border-bottom: 0; }
  .service { grid-template-columns: 1fr; gap: 1rem; }
  .service-icon { flex-direction: row; justify-content: flex-start; }
  .service:hover { padding-left: 1rem; padding-right: 1rem; }
  .timeline { grid-template-columns: 1fr; }
  .timeline li { display: grid; grid-template-columns: 76px 1fr; column-gap: 1.2rem; }
  .timeline li .step { grid-row: span 2; margin: 0; }
  .footer-slogan { text-align: left; }
  .line-box { padding: 1.4rem 1.2rem; }
  .btn-big { font-size: .95rem; }
  .values { gap: .8rem; justify-content: space-between; } .values .v { width: 70px; } .values .v svg { width: 66px; height: 66px; padding: 9px; border-radius: 18px; } .values .v figcaption { font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* LINE 尚未開通提示 */
.toast {
  position: fixed; left: 50%; bottom: 6.5rem; z-index: 80; transform: translate(-50%, 20px);
  padding: .8rem 1.4rem; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-size: .9rem; letter-spacing: .06em; box-shadow: 0 10px 30px -10px rgba(0,0,0,.45);
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.line-id { color: rgba(246,243,236,.7); }

/* ---------- 服務案例 ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; align-items: stretch; }
.case-card {
  background: var(--paper); border: var(--stroke) solid var(--ink); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.case-card:hover { transform: translate(-4px, -4px); box-shadow: 5px 5px 0 var(--ink); }
.case-card.case-more { display: none; }
.cases.show-all .case-card.case-more { display: flex; }
.case-photo { position: relative; aspect-ratio: 4 / 3; background: var(--paper-2); border-bottom: var(--stroke) solid var(--ink); overflow: hidden; }
.case-photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.9) contrast(1.02); transition: transform .8s var(--ease); }
.case-card:hover .case-photo img { transform: scale(1.04); }
.case-no { position: absolute; left: .8rem; top: .8rem; padding: .25em .7em; font-size: .7rem; color: var(--paper); background: rgba(30,48,67,.85); border-radius: 999px; }
.case-body { padding: 1.4rem 1.4rem 1.2rem; flex: 1; display: flex; flex-direction: column; }
.case-body .case-full { margin-top: auto; }
.case-tags { display: flex; gap: .4rem; margin: 0 0 .7rem; }
.case-tags span { font-size: .72rem; letter-spacing: .1em; padding: .2em .7em; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); }
.case-tags span + span { border-color: var(--line); color: var(--ink-soft); }
.case-body h3 { font-size: 1.38rem; line-height: 1.5; margin-bottom: 1.1rem; letter-spacing: .02em; }
.case-key { font-style: normal; color: var(--ink); background: linear-gradient(transparent 60%, rgba(204,169,110,.55) 60%, rgba(204,169,110,.55) 92%, transparent 92%); padding: 0 .06em; }
.case-sum { display: grid; grid-template-columns: auto 1fr; gap: .45rem .8rem; margin: 0 0 1rem; font-size: .9rem; }
.case-sum dt { font-weight: 700; color: var(--ink); white-space: nowrap; }
.case-sum dt:nth-of-type(2) { color: var(--accent); }
.case-sum dd { margin: 0; color: var(--ink-soft); word-break: normal; overflow-wrap: normal; line-break: strict; }
.case-full { border-top: 1px dashed var(--line); padding-top: .8rem; }
.case-full summary { cursor: pointer; font-size: .88rem; font-weight: 500; color: var(--ink); list-style: none; display: inline-flex; align-items: center; gap: .4rem; }
.case-full summary::-webkit-details-marker { display: none; }
.case-full summary::after { content: "→"; transition: transform .3s var(--ease); }
.case-full[open] summary::after { transform: rotate(90deg); }
.case-full p { font-size: .9rem; color: var(--ink-soft); margin: .8rem 0 0; }
.case-actions { margin-top: 2.2rem; text-align: center; }
@media (max-width: 1024px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .case-grid { grid-template-columns: 1fr; } .case-body h3 { font-size: 1.3rem; } }

.footer-contact { font-size: .85rem; color: var(--ink-soft); margin: 1rem 0 0; }
.footer-contact a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--sun); }
.contact-info a { word-break: break-all; }
.contact-info .mono { flex-shrink: 0; white-space: nowrap; width: 3.6em; }
@media (max-width: 400px) { .contact-info li { font-size: .92rem; gap: .9rem; } }
.footer-contact .sep { margin: 0 .6em; color: var(--line); }
