/* =========================================================
   光構建築事務所｜示範網站樣式
   想創行銷「店家專屬行銷網站」產業示範：台中小型建築與室內設計事務所（品牌虛構）
   方向：灰白極簡、網格、線稿。細、輕、精準：標題 Noto Sans TC 300、編號用等寬字、
   1px 細線分隔與 12 欄參考線（只在部分區塊出現），點綴色黃銅只用在光與風的線條與少數標記。
   直角、不做卡片底色；照片四角加細線對位標記；頁尾是圖紙右下角的「圖框標題欄」。
   ========================================================= */

:root {
  --paper: #F2F1EE;        /* 石灰白底 */
  --paper-2: #E9E7E2;      /* 交替帶（收尾 CTA） */
  --paper-3: #E4E1DA;      /* 示範細條、騎樓淡色帶 */
  --dwg-bg: #F7F6F3;       /* 線稿圖紙底 */
  --ink: #222222;          /* 石墨字（對石灰白 14.1：1） */
  --ink-2: #3B3B38;        /* 內文次要（10.1：1） */
  --muted: #5C5C58;        /* 小字（6.0：1；對交替帶 5.4：1） */
  --grey: #8A8A86;         /* 中灰：只用在線條、圖形與大字號 */
  --line: #D5D3CE;         /* 細線 */
  --line-2: #BDBAB3;
  --guide: rgba(34, 34, 34, .075);   /* 12 欄參考線 */
  --brass: #A88A5A;        /* 黃銅：光與風的線條（裝飾，不用在小字） */
  --brass-ink: #765C33;    /* 黃銅色文字（對石灰白 5.2：1） */

  /* 標題：Noto Sans TC 300（Google Fonts text= 子集）；內文：系統字；編號：系統等寬字 */
  --font-head: "Noto Sans TC", "PingFang TC", "Heiti TC", "Microsoft JhengHei", sans-serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans CJK TC", "Microsoft JhengHei", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1240px;
  --gutter: clamp(16px, 4.4vw, 56px);
  --gap: 24px;
  --cols: 12;
  --demo-h: 32px;          /* 示範細條高度（main.js 依實際高度更新） */
  --top-h: 105px;          /* 固定在頂部的高度（main.js 依實際高度更新） */
  --bar-h: 0px;            /* 手機底部固定列高度 */
  --focus: #222222;
}
@media (max-width: 719px) {
  :root { --gap: 16px; --cols: 4; }
}

/* ---------- 基礎 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 20px); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: .03em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: var(--bar-h);
}
img, svg { display: block; max-width: 100%; }
picture { display: contents; }
img { height: auto; }
figure { margin: 0; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: .04em;
  color: var(--ink);
  text-wrap: balance;
}
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
a { color: var(--ink); text-underline-offset: .32em; text-decoration-thickness: 1px; }
a:hover { color: var(--brass-ink); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
main:focus { outline: none; }

.nb { display: inline-block; text-indent: 0; }
.mono { font-family: var(--font-mono); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip-link {
  position: absolute;
  left: 12px; top: -80px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--paper); }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* 12 欄參考線：只在主視覺、作品索引與收尾 CTA 出現（手機 4 欄） */
.guides { position: relative; }
.guides::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: var(--gutter); right: var(--gutter);
  pointer-events: none;
  background-image: linear-gradient(to right, var(--guide) 0 1px, transparent 1px);
  background-size: calc((100% + var(--gap)) / var(--cols)) 100%;
  border-right: 1px solid var(--guide);
}
.guides > * { position: relative; }

/* 照片：直角、四角細線對位標記 */
.frame { position: relative; background: var(--paper-2); }
.frame::before, .frame::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  pointer-events: none;
}
.frame::before { left: -8px; top: -8px; border-left: 1px solid var(--grey); border-top: 1px solid var(--grey); }
.frame::after { right: -8px; bottom: -8px; border-right: 1px solid var(--grey); border-bottom: 1px solid var(--grey); }
.frame img { width: 100%; }

/* ---------- 按鈕與連結 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7em;
  min-height: 48px;
  padding: .7em 1.5em;
  border: 1px solid var(--ink);
  border-radius: 0;
  font: 500 .9375rem/1.2 var(--font-sans);
  letter-spacing: .12em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn .icon { width: 1.15em; height: 1.15em; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; border-color: #000; color: #fff; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-sm { min-height: 44px; padding: .55em 1.15em; font-size: .875rem; letter-spacing: .1em; }
.btn-lg { min-height: 54px; padding: .8em 1.8em; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  min-height: 44px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--ink);
  text-decoration: none;
}
.link-arrow span { padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.link-arrow .icon { transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--brass-ink); }
.link-arrow:hover .icon { transform: translateX(5px); }

.tag {
  display: inline-block;
  margin-left: .9em;
  padding: .28em .7em .3em;
  border: 1px solid var(--line-2);
  font: 400 .6875rem/1.2 var(--font-sans);
  letter-spacing: .14em;
  color: var(--muted);
  vertical-align: .55em;
  white-space: nowrap;
}
.note { font-size: .8125rem; line-height: 1.8; color: var(--muted); }

/* ---------- 頂部：示範細條＋導覽（桌機兩條一起固定；≤719px 細條捲走，只固定導覽列） ---------- */
.site-top { position: sticky; top: 0; z-index: 50; }
.demo-bar {
  background: var(--paper-3);
  border-bottom: 1px solid var(--line-2);
  color: var(--ink);
  font-size: .8125rem;
  line-height: 1.5;
  letter-spacing: .04em;
}
.demo-bar .wrap { padding-block: 6px; }
.demo-bar p { margin: 0; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; column-gap: .2em; text-wrap: balance; }
.demo-tag {
  display: inline-block;
  margin-right: .8em;
  padding: 2px 6px 1px;
  background: var(--ink);
  color: var(--paper);
  font-size: .625rem;
  line-height: 1.4;
  letter-spacing: .16em;
}
.demo-bar strong { font-weight: 600; }
.demo-short { display: none; }
.demo-bar a {
  position: relative;
  margin-left: 1em;
  font-weight: 600;
  white-space: nowrap;
}
.demo-bar a::after { content: ""; position: absolute; inset: -13px -8px; }

.site-header {
  position: relative;
  background: rgba(242, 241, 238, .96);
  border-bottom: 1px solid var(--line);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header { background: rgba(242, 241, 238, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand-name {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 1.3125rem;
  line-height: 1.2;
  letter-spacing: .2em;
}
.brand-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 16px;
  border-left: 1px solid var(--line-2);
  line-height: 1.3;
}
.brand-roman { font-size: .625rem; letter-spacing: .26em; color: var(--ink-2); }
.brand-sub { font-size: .75rem; letter-spacing: .14em; color: var(--muted); }

.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav ul { display: flex; gap: 30px; }
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .9375rem;
  letter-spacing: .14em;
  text-decoration: none;
  min-width: 44px;
  justify-content: center;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle { display: none; }

@media (max-width: 899px) {
  .header-inner { min-height: 60px; }
  .nav-toggle {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    min-width: 44px;
    padding: 0 14px;
    background: transparent;
    border: 1px solid var(--line-2);
    font-size: .875rem;
    letter-spacing: .12em;
    cursor: pointer;
  }
  .nav-toggle-bars { position: relative; width: 16px; height: 9px; }
  .nav-toggle-bars::before, .nav-toggle-bars::after, .nav-toggle-bars span {
    content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .25s var(--ease), opacity .2s;
  }
  .nav-toggle-bars::before { top: 0; }
  .nav-toggle-bars span { top: 4px; }
  .nav-toggle-bars::after { bottom: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars span { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-4px) rotate(-45deg); }
  .site-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-ready .site-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    padding: 4px var(--gutter) 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
    display: none;
  }
  .nav-ready .site-nav.is-open { display: flex; }
  .nav-ready .site-nav.is-open::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 100vh; background: rgba(34, 34, 34, .24); }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a { display: flex; justify-content: flex-start; min-height: 56px; font-size: 1rem; }
  .site-nav a::after { display: none; }
  .site-nav a[aria-current="page"] { font-weight: 600; }
  .site-nav a[aria-current="page"]::before { content: ""; width: 14px; height: 1px; margin-right: 12px; background: var(--brass); }
  .site-nav .btn { margin-top: 20px; }
  html:not(.nav-ready) .header-inner { flex-wrap: wrap; }
  html:not(.nav-ready) .site-nav { width: 100%; padding-bottom: 16px; }
  html:not(.nav-ready) .nav-toggle { display: none; }
}
@media (max-width: 719px) {
  .site-top { top: calc(var(--demo-h) * -1); }
  .demo-bar { font-size: .75rem; }
  .demo-bar .wrap { padding-block: 5px; }
  .demo-bar p { flex-wrap: nowrap; white-space: nowrap; }
  .demo-long { display: none; }
  .demo-short { display: inline; }
  .demo-tag { margin-right: .6em; }
  .demo-bar a { margin-left: .8em; }
  .brand { flex-direction: column; align-items: flex-start; gap: 3px; }
  .brand-name { font-size: 1.125rem; letter-spacing: .18em; }
  .brand-meta { padding-left: 0; border-left: 0; }
  .brand-roman { font-size: .5625rem; letter-spacing: .24em; }
  .brand-sub { display: none; }
}

/* ---------- 區塊共用 ---------- */
.sec { padding-block: clamp(64px, 8.4vw, 116px); }
.sec-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding-top: 18px;
  border-top: 1px solid var(--ink);
  margin-bottom: clamp(40px, 5.5vw, 76px);
}
.sec-no {
  grid-column: 1 / 4;
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0;
  padding-top: .5em;
  font-size: .8125rem;
  letter-spacing: .16em;
  color: var(--muted);
}
.sec-no .mono { font-size: .75rem; color: var(--ink); letter-spacing: .1em; }
.sec-title { grid-column: 4 / -1; max-width: 46em; }
.h2 { font-size: clamp(1.875rem, 3.5vw, 3rem); line-height: 1.3; }
.lead { margin: 20px 0 0; font-size: 1rem; line-height: 1.95; color: var(--ink-2); max-width: 40em; }
.sec-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.sec-foot .note { margin: 0; }
.sec-note { margin-top: 28px; }
@media (max-width: 899px) {
  .sec-no { grid-column: 1 / -1; margin-bottom: 18px; padding-top: 0; }
  .sec-title { grid-column: 1 / -1; }
}

/* ---------- 首頁：主視覺 ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding-top: 0;
  padding-bottom: clamp(40px, 6vw, 88px);
}
.axes {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  height: 30px;
  align-items: center;
}
.axis {
  grid-column: var(--c);
  grid-row: 1;
  justify-self: start;
  width: 22px; height: 22px;
  margin-left: -11px;
  border: 1px solid var(--grey);
  border-radius: 50%;
  background: var(--paper);
  font: 400 .625rem/20px var(--font-mono);
  text-align: center;
  color: var(--muted);
}
.axis[style*="13"] { grid-column: 12; justify-self: end; margin-left: 0; margin-right: -11px; }
.hero-h1 {
  grid-column: 1 / 9;
  margin-top: 10px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: .9375rem;
  line-height: 1.6;
  letter-spacing: .16em;
  color: var(--ink-2);
}
.hero-code {
  grid-column: 9 / -1;
  align-self: end;
  margin: 0;
  text-align: right;
  font-size: .6875rem;
  color: var(--muted);
}
.hero-tag {
  grid-column: 1 / 9;
  margin: 10px 0 0;
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(2.25rem, 5.3vw, 4.75rem);
  line-height: 1.22;
  letter-spacing: .03em;
  text-wrap: nowrap;
}
.hero-tag .nb { display: block; }
.hero-side {
  grid-column: 9 / -1;
  align-self: end;
  padding-bottom: .4em;
}
.hero-sub { font-size: .9375rem; line-height: 1.95; color: var(--ink-2); margin-bottom: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.hero-fig { grid-column: 1 / -1; margin-top: clamp(20px, 2.4vw, 32px); }
.hero-img img { aspect-ratio: 2 / 1; object-fit: cover; object-position: 50% 64%; width: 100%; background: var(--paper-2); }
.hero-fig figcaption, .work-dwg figcaption {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-top: 12px;
  font-size: .8125rem;
  line-height: 1.7;
  color: var(--muted);
}
.fig-no { flex: none; font-size: .6875rem; color: var(--ink); }
@media (min-width: 1024px) and (max-width: 1199px) {
  .hero-code { display: none; }
  .hero-tag { grid-column: 1 / 8; }
  .hero-side { grid-column: 8 / -1; }
}
@media (max-width: 1023px) {
  .hero-h1 { grid-column: 1 / -1; }
  .hero-code { display: none; }
  .hero-tag { grid-column: 1 / -1; }
  .hero-side { grid-column: 1 / 10; margin-top: 24px; }
  .hero-img img { aspect-ratio: 3 / 2; }
}
@media (max-width: 719px) {
  .axes { display: none; }
  .hero-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 4px; }
  .hero-h1 { order: 1; font-size: .8125rem; letter-spacing: .1em; margin-top: 20px; }
  .hero-tag { order: 2; font-size: clamp(2rem, 9.3vw, 2.6rem); line-height: 1.28; margin-top: 10px; }
  .hero-fig { order: 3; margin-top: 24px; }
  .hero-side { order: 4; grid-column: 1 / -1; margin-top: 22px; }
  .hero-img img { aspect-ratio: 4 / 5; object-position: 50% 50%; }
  .hero-fig figcaption { gap: 10px; font-size: .75rem; }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* ---------- 首頁：事務所概要 ---------- */
.facts { padding-bottom: clamp(24px, 4vw, 48px); }
.facts-title {
  margin: 0 0 14px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: .8125rem;
  letter-spacing: .2em;
  color: var(--muted);
}
.facts-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.facts-list li { padding: 22px 24px 26px; border-left: 1px solid var(--line); }
.facts-list li:first-child { border-left: 0; padding-left: 0; }
.fact-num { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; }
.fact-n { font-family: var(--font-head); font-weight: 300; font-size: clamp(2.75rem, 5vw, 4.25rem); line-height: 1; letter-spacing: 0; }
.fact-u { font-size: .875rem; letter-spacing: .12em; color: var(--ink-2); }
.fact-d { margin: 0; font-size: .875rem; line-height: 1.75; color: var(--muted); }
@media (max-width: 719px) {
  .facts-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-list li { padding: 18px 0 20px 16px; }
  .facts-list li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facts-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .fact-d { font-size: .8125rem; }
}

/* ---------- 首頁：事務所簡介 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: center;
}
.about-fig { grid-column: 1 / 6; }
.about-text { grid-column: 7 / -1; max-width: 34em; }
.body-lg { font-size: 1.0625rem; line-height: 2.05; color: var(--ink); }
.about-text .note { margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--line); }
@media (max-width: 899px) {
  .about-fig { grid-column: 1 / -1; max-width: 520px; }
  .about-text { grid-column: 1 / -1; margin-top: 36px; }
}

/* ---------- 首頁：作品精選（不對稱網格） ---------- */
.feat-list { display: grid; row-gap: clamp(64px, 9vw, 128px); }
.feat-link {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: end;
  color: var(--ink);
  text-decoration: none;
}
.feat-img { position: relative; display: block; overflow: hidden; background: var(--paper-2); grid-row: 1; }
.feat-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .8s var(--ease); }
.feat-text { grid-row: 1; display: flex; flex-direction: column; padding-top: 16px; border-top: 1px solid var(--ink); }
.feat--1 .feat-img { grid-column: 1 / 9; }
.feat--1 .feat-text { grid-column: 9 / -1; }
.feat--2 .feat-img { grid-column: 6 / -1; }
.feat--2 .feat-text { grid-column: 2 / 6; }
.feat--3 .feat-img { grid-column: 2 / 9; }
.feat--3 .feat-text { grid-column: 9 / -1; }
.feat-no { font-size: .75rem; color: var(--brass-ink); letter-spacing: .12em; }
.feat-name { display: block; margin-top: 10px; font-family: var(--font-head); font-weight: 300; font-size: clamp(1.625rem, 2.5vw, 2.125rem); line-height: 1.3; letter-spacing: .06em; }
.feat-data { display: block; margin-top: 10px; font-size: .8125rem; letter-spacing: .08em; color: var(--muted); }
.feat-one { display: block; margin-top: 16px; font-size: .9375rem; line-height: 1.9; color: var(--ink-2); }
.feat-more { display: block; margin-top: 18px; width: 22px; }
.feat-more .icon { width: 22px; height: 22px; transition: transform .3s var(--ease); }
.feat-link:hover .feat-img img { transform: scale(1.025); }
.feat-link:hover .feat-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .28em; }
.feat-link:hover .feat-more .icon { transform: translateX(6px); }
.feat-link:focus-visible { outline-offset: 8px; }
@media (max-width: 899px) {
  .feat-link { grid-template-columns: 1fr; }
  .feat-img, .feat-text { grid-column: 1 / -1 !important; grid-row: auto; }
  .feat-text { margin-top: 18px; border-top: 0; padding-top: 0; }
  .feat--2 .feat-img { margin-left: 12%; }
  .feat--3 .feat-img { margin-right: 8%; }
}

/* ---------- 首頁：設計原則 ---------- */
.prin-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--gap);
}
.prin-media { overflow: visible; }
.prin-media img { aspect-ratio: 4 / 5; object-fit: cover; }
.prin:first-child .prin-media img { object-position: 50% 22%; }
.frame--dwg { background: var(--dwg-bg); border: 1px solid var(--line); }
.frame--dwg .dwg { aspect-ratio: 4 / 5; width: 100%; }
.prin-body { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--ink); }
.prin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.prin-head .ico { width: 48px; height: 48px; color: var(--ink); order: 2; }
.prin-title { display: flex; align-items: baseline; gap: 14px; font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.2; letter-spacing: .08em; }
.prin-no { font-size: .6875rem; color: var(--brass-ink); letter-spacing: .1em; }
.prin p { font-size: .9375rem; line-height: 1.95; color: var(--ink-2); }
@media (max-width: 899px) {
  .prin-list { grid-template-columns: 1fr; row-gap: 56px; }
  .prin { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--gap); align-items: start; }
  .prin-body { margin-top: 0; }
  .prin-media img, .frame--dwg .dwg { aspect-ratio: 4 / 5; }
}
@media (max-width: 559px) {
  .prin { grid-template-columns: 1fr; }
  .prin-media img { aspect-ratio: 3 / 2; }
  .frame--dwg .dwg { aspect-ratio: 1; }
  .prin:first-child .prin-media img { object-position: 50% 6%; }
  .prin-body { margin-top: 22px; }
  .frame--dwg { padding: 0; }
}

/* ---------- 首頁：流程時間軸（水平） ---------- */
.tl-h {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  column-gap: var(--gap);
}
.tl-h::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: var(--ink); }
.tl-h li { position: relative; padding-top: 34px; }
.tl-node { position: absolute; left: 0; top: 0; width: 11px; height: 11px; border: 1px solid var(--ink); border-radius: 50%; background: var(--paper); }
.tl-h li:first-child .tl-node { background: var(--ink); }
.tl-no { display: block; font-size: .75rem; color: var(--brass-ink); letter-spacing: .1em; }
.tl-title { margin: 8px 0 10px; font-size: 1.25rem; line-height: 1.4; letter-spacing: .06em; }
.tl-h p { font-size: .875rem; line-height: 1.85; color: var(--muted); }
@media (max-width: 1023px) {
  .tl-h { grid-template-columns: 1fr; row-gap: 0; }
  .tl-h::before { left: 5px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .tl-h li { padding: 0 0 26px 40px; display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 12px; }
  .tl-h li:last-child { padding-bottom: 0; }
  .tl-no { grid-row: 1 / 3; padding-top: .45em; }
  .tl-title { margin: 0 0 4px; }
}

/* ---------- 首頁：團隊角色 ---------- */
.roles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.roles li { padding: 28px 22px 30px; border-left: 1px solid var(--line); }
.roles li:first-child { border-left: 0; padding-left: 0; }
.role-ico .ico { width: 52px; height: 52px; color: var(--ink); }
.role-no { margin: 22px 0 6px; font-size: .6875rem; color: var(--brass-ink); letter-spacing: .1em; }
.role-name { margin-bottom: 12px; font-size: 1.25rem; line-height: 1.4; letter-spacing: .06em; }
.roles p:last-child { font-size: .875rem; line-height: 1.85; color: var(--ink-2); }
@media (min-width: 1024px) and (max-width: 1199px) {
  .roles li { padding: 24px 14px 26px; }
  .roles li:first-child { padding-left: 0; }
  .role-name { font-size: 1.0625rem; letter-spacing: .04em; white-space: nowrap; }
}
@media (max-width: 1023px) {
  .roles { grid-template-columns: 1fr; }
  .roles li { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 18px; padding: 22px 0; border-left: 0; }
  .roles li + li { border-top: 1px solid var(--line); }
  .role-ico { grid-row: 1 / 4; }
  .role-no { margin-top: 0; }
}

/* ---------- 常見問題 ---------- */
.faq-list { border-top: 1px solid var(--ink); }
@media (min-width: 900px) {
  .faq-list { margin-left: calc((100% + var(--gap)) / 12 * 3); }
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 28px;
  align-items: baseline;
  gap: 12px;
  min-height: 44px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-n { font-size: .6875rem; color: var(--muted); letter-spacing: .1em; }
.faq-q { font-size: 1.0625rem; font-weight: 400; line-height: 1.7; letter-spacing: .04em; color: var(--ink); }
.faq-icon { position: relative; width: 16px; height: 16px; justify-self: end; align-self: center; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--ink); transition: transform .3s var(--ease); }
.faq-icon::before { left: 0; right: 0; top: 50%; height: 1px; }
.faq-icon::after { top: 0; bottom: 0; left: 50%; width: 1px; }
.faq-item[open] .faq-icon::after { transform: scaleY(0); }
.faq-item summary:hover .faq-q { color: var(--brass-ink); }
.faq-a { padding: 0 40px 28px 68px; }
.faq-a p { max-width: 44em; font-size: .9375rem; line-height: 2; color: var(--ink-2); }
@media (max-width: 719px) {
  .faq-item summary { grid-template-columns: 38px minmax(0, 1fr) 20px; gap: 8px; padding: 18px 0; }
  .faq-q { font-size: 1rem; }
  .faq-a { padding: 0 0 22px 46px; }
}

/* ---------- 收尾 CTA ---------- */
.cta { background: var(--paper-2); }
.cta-inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: center;
  padding-block: clamp(72px, 9vw, 128px);
}
.cta-text { grid-column: 1 / 8; }
.cta-title { font-size: clamp(1.75rem, 3.2vw, 2.75rem); line-height: 1.38; }
.cta-small { margin: 18px 0 30px; font-size: .9375rem; color: var(--ink-2); }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.cta-fig { grid-column: 9 / -1; justify-self: end; width: min(100%, 300px); }
.sunpath { width: 100%; height: auto; }
.sp-ln { stroke: var(--grey); stroke-width: 1; fill: none; }
.sp-d { stroke-dasharray: 3 4; }
.sp-acc { stroke: var(--brass); stroke-width: 1.4; fill: none; }
.sp-ink { stroke: var(--ink); stroke-width: 1.2; fill: var(--paper-2); }
.sp-dot { fill: var(--brass); }
.sp-dot-o { stroke: var(--paper-2); stroke-width: 2; }
.sp-fill { fill: var(--ink); }
.sp-t { font: 500 11px var(--font-mono); fill: var(--ink); }
@media (max-width: 899px) {
  .cta-text { grid-column: 1 / -1; }
  .cta-fig { display: none; }
}

/* ---------- 頁尾：圖框標題欄 ---------- */
.site-footer { padding-block: clamp(56px, 7vw, 96px) 36px; }
.tb {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  border: 1px solid var(--ink);
  background: var(--paper);
}
.tb-name {
  grid-column: 1 / 6;
  display: flex;
  flex-direction: column;
  padding: 28px 28px 26px;
  border-right: 1px solid var(--ink);
}
.tb-brand { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.tb-brand-name { font-family: var(--font-head); font-weight: 300; font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1.25; letter-spacing: .18em; }
.tb-brand-sub { font-size: .875rem; color: var(--ink-2); letter-spacing: .1em; }
.tb-roman { margin: 14px 0 0; font-size: .6875rem; letter-spacing: .3em; color: var(--muted); }
.tb-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 28px; }
.tb-cells {
  grid-column: 6 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--ink);
}
.tb-cells > div { padding: 14px 18px 16px; background: var(--paper); }
.tb-addr, .tb-hours { grid-column: span 2; }
.tb-area { grid-column: span 4; }
.tb-cells dt { font-size: .6875rem; letter-spacing: .18em; color: var(--muted); }
.tb-cells dd { margin-top: 6px; font-size: .9375rem; line-height: 1.7; }
.tb-no dd { font-family: var(--font-head); font-weight: 300; font-size: 1.75rem; line-height: 1.1; letter-spacing: .06em; }
.tb-sheet dd { font-family: var(--font-head); font-weight: 300; font-size: 1.125rem; }
.tb-note {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  border-top: 1px solid var(--ink);
}
.tb-note-k { margin: 0; padding: 16px 18px 16px 28px; border-right: 1px solid var(--line); font-size: .6875rem; color: var(--brass-ink); }
.tb-note-v { margin: 0; padding: 16px 28px 18px 22px; font-size: .8125rem; line-height: 1.95; color: var(--ink-2); max-width: 72em; }
.tb-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  padding-top: 18px;
  font-size: .8125rem;
}
.tb-nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.tb-nav a, .tb-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; text-decoration: none; letter-spacing: .1em; }
.tb-nav a { padding-inline: 8px; margin-inline: -8px; }
.tb-nav a:hover, .tb-links a:hover { text-decoration: underline; }
.tb-links { display: flex; flex-wrap: wrap; margin: 0; }
.tb-links a + a::before { content: ""; width: 1px; height: 12px; margin: 0 16px; background: var(--line-2); }
.tb-copy { flex-basis: 100%; margin: 4px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); letter-spacing: .06em; }
.tb-copy .sep { margin: 0 .5em; color: var(--line-2); }
.tb-copy a { display: inline-block; padding-block: 14px; margin-block: -14px; color: var(--ink); }
@media (max-width: 1023px) {
  .tb-name { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--ink); }
  .tb-cells { grid-column: 1 / -1; }
}
@media (max-width: 719px) {
  .tb { grid-template-columns: 1fr; }
  .tb-name { padding: 22px 18px; }
  .tb-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-addr, .tb-hours, .tb-area { grid-column: 1 / -1; }
  .tb-cells > div { padding: 12px 16px 14px; }
  .tb-note { grid-template-columns: 1fr; }
  .tb-note-k { padding: 12px 16px 0; border-right: 0; }
  .tb-note-v { padding: 6px 16px 16px; }
  .tb-actions .btn { flex: 1 1 auto; }
}

/* ---------- 手機底部固定列 ---------- */
.mobile-bar { display: none; }
@media (max-width: 899px) {
  html { scroll-padding-bottom: calc(var(--bar-h) + 16px); }
  :root { --bar-h: calc(59px + env(safe-area-inset-bottom, 0px)); }
  .mobile-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--paper);
    border-top: 1px solid var(--ink);
  }
  .mobile-bar button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 58px;
    padding: 6px 4px;
    background: transparent;
    border: 0;
    font-size: .75rem;
    line-height: 1.2;
    letter-spacing: .06em;
    white-space: nowrap;
    cursor: pointer;
  }
  .mobile-bar button + button { border-left: 1px solid var(--line); }
  .mobile-bar button:first-child { background: var(--ink); color: var(--paper); }
  .mobile-bar .icon { width: 20px; height: 20px; }
  .mobile-bar button:focus-visible { outline-offset: -4px; }
  .mobile-bar button:first-child:focus-visible { outline-color: var(--paper); }
}

/* ---------- 示範說明視窗 ---------- */
.demo-dialog {
  width: min(540px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 0;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  overflow: auto;
}
.demo-dialog::backdrop { background: rgba(34, 34, 34, .42); }
.demo-dialog-inner { position: relative; padding: 18px 32px 26px; }
.dialog-tag {
  display: flex;
  justify-content: space-between;
  margin: 0 52px 22px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: .6875rem;
  color: var(--brass-ink);
  letter-spacing: .14em;
}
.dialog-x {
  position: absolute;
  top: 8px; right: 10px;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.dialog-x .icon { width: 20px; height: 20px; }
.demo-dialog h2 { font-size: clamp(1.375rem, 4.4vw, 1.75rem); line-height: 1.4; margin-bottom: 18px; }
.demo-dialog h2:focus { outline: none; }
.demo-dialog h2:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
#demo-dialog-desc p { font-size: .9375rem; line-height: 1.95; color: var(--ink-2); }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.dialog-actions .btn { flex: 1 1 200px; }
.btn-text {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 10px;
  padding: 0;
  background: none;
  border: 0;
  font-size: .875rem;
  letter-spacing: .1em;
  text-decoration: underline;
  text-underline-offset: .3em;
  text-decoration-thickness: 1px;
  cursor: pointer;
}
@media (max-width: 719px) {
  .demo-dialog-inner { padding: 14px 20px 20px; }
}
@media (prefers-reduced-motion: no-preference) {
  .demo-dialog[open] { animation: dlg-in .22s var(--ease); }
  @keyframes dlg-in { from { opacity: 0; transform: translateY(8px); } }
}

/* ---------- 內頁：頁首 ---------- */
.page-head { padding-block: clamp(20px, 3vw, 40px) clamp(40px, 4.4vw, 60px); }
.page-head-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}
.crumbs { grid-column: 1 / 9; display: flex; flex-wrap: wrap; font-size: .8125rem; color: var(--muted); }
.crumbs-nav { grid-column: 1 / 9; }
.crumbs li { display: flex; align-items: center; }
.crumbs li + li::before { content: "›"; margin: 0 .7em 0 0; color: var(--grey); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 9px; margin-inline: -9px 0; color: var(--ink); }
.page-code { grid-column: 9 / -1; align-self: center; margin: 0; text-align: right; font-size: .6875rem; color: var(--muted); }
.page-h1 { grid-column: 1 / 11; margin-top: clamp(20px, 2.8vw, 40px); font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.25; letter-spacing: .08em; }
.page-lead { grid-column: 1 / 7; margin: 28px 0 0; font-size: 1.0625rem; line-height: 2; color: var(--ink-2); }
.callout {
  grid-column: 8 / -1;
  align-self: start;
  margin-top: 34px;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid var(--ink);
  background: none;
}
.callout p { margin: 0; font-size: .9375rem; line-height: 1.85; }
.callout .callout-k { margin-bottom: 6px; font-size: .6875rem; color: var(--brass-ink); letter-spacing: .14em; }
.jump { grid-column: 1 / -1; margin-top: clamp(40px, 5vw, 64px); }
.jump ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.jump li + li { border-left: 1px solid var(--line); }
.jump a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 16px;
  font-size: .9375rem;
  letter-spacing: .08em;
  text-decoration: none;
}
.jump li:first-child a { padding-left: 0; }
.jump a .mono { font-size: .6875rem; color: var(--brass-ink); }
.jump a:hover { background: var(--paper-2); color: var(--ink); }
@media (max-width: 1023px) {
  .page-h1 { grid-column: 1 / -1; }
  .page-lead { grid-column: 1 / -1; max-width: 40em; }
  .callout { grid-column: 1 / -1; max-width: 40em; margin-top: 28px; }
  .jump ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .jump li { border-bottom: 1px solid var(--line); }
  .jump li:nth-child(3n+1) { border-left: 0; }
  .jump li:nth-child(3n+1) a { padding-left: 0; }
}
@media (max-width: 719px) {
  .page-head-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .crumbs-nav { grid-column: 1 / -1; }
  .page-code { display: none; }
  .page-h1 { font-size: clamp(2rem, 9vw, 2.5rem); margin-top: 16px; }
  .page-lead { font-size: 1rem; margin-top: 20px; }
  .jump ul { grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 0; }
  .jump li { border-left: 0 !important; }
  .jump li:nth-child(even) { border-left: 1px solid var(--line) !important; }
  .jump li a { padding-left: 14px !important; }
  .jump li:nth-child(odd) a { padding-left: 0 !important; }
}

/* ---------- 作品頁：作品索引 ---------- */
.index { padding-top: 0; }
.index .sec-head { margin-bottom: 24px; }
.index .h2 { font-size: 1.25rem; letter-spacing: .1em; }
.idx { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.idx thead th, .idx thead td {
  padding: 0 16px 12px 0;
  border-bottom: 1px solid var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: .75rem;
  letter-spacing: .14em;
  color: var(--muted);
  text-align: left;
  white-space: nowrap;
}
.idx tbody tr { position: relative; border-bottom: 1px solid var(--line); transition: background-color .2s; }
.idx tbody td, .idx tbody th { padding: 14px 16px 14px 0; text-align: left; vertical-align: middle; font-weight: 400; }
.idx .c-no { width: 72px; font-size: .8125rem; color: var(--brass-ink); }
.idx thead .c-no { color: var(--muted); font-size: .75rem; }
.idx .c-thumb { width: 132px; padding-right: 20px; }
.idx tbody .c-thumb { padding-block: 12px; }
.idx .c-thumb img { width: 112px; aspect-ratio: 3 / 2; object-fit: cover; background: var(--paper-2); }
.idx tbody .c-name { width: 24%; }
.idx .c-name a {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  letter-spacing: .08em;
  text-decoration: none;
}
.idx .c-name a::after { content: ""; position: absolute; inset: 0; }
.idx .c-type { width: 27%; color: var(--ink-2); }
.idx .mono-num { font-variant-numeric: tabular-nums; }
.idx .c-go { width: 40px; padding-right: 0; }
.idx .c-go .icon { width: 18px; height: 18px; margin-left: auto; transition: transform .3s var(--ease); }
.idx .m-meta { display: none; }
.idx tbody tr:hover { background: var(--paper-2); }
.idx tbody tr:hover .c-go .icon { transform: translateY(4px); }
.idx tbody tr:hover .c-name a { color: var(--ink); }
.idx tbody tr:focus-within { background: var(--paper-2); }
@media (max-width: 719px) {
  .idx .c-opt { display: none; }
  .idx tbody td, .idx tbody th { padding: 12px 10px 12px 0; }
  .idx .c-no { width: 30px; }
  .idx .c-thumb { width: 76px; padding-right: 12px; }
  .idx .c-thumb img { width: 64px; }
  .idx tbody .c-name { width: auto; }
  .idx .c-name a { font-size: 1.125rem; letter-spacing: .04em; white-space: nowrap; }
  .idx .c-type { width: auto; font-size: .8125rem; line-height: 1.6; }
  .idx .c-go { display: none; }
  .idx .m-meta { display: block; margin-top: 4px; font-size: .75rem; color: var(--muted); letter-spacing: .06em; }
}

/* ---------- 作品頁：五件作品 ---------- */
.work { padding-block: clamp(64px, 9vw, 128px); }
.work + .work .work-grid { border-top: 0; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: start;
}
.work-a { grid-column: 1 / 6; grid-row: 1; }
.work-b { grid-column: 7 / -1; grid-row: 1; }
.work--r .work-a { grid-column: 8 / -1; }
.work--r .work-b { grid-column: 1 / 7; }
.work-head { padding-top: 18px; border-top: 1px solid var(--ink); }
.work-dwg { margin-top: 48px; }
.work-no { display: flex; align-items: baseline; gap: 4px; margin: 0 0 14px; font-size: .8125rem; color: var(--brass-ink); }
.work-of { color: var(--muted); }
.work-name { font-size: clamp(2rem, 3.4vw, 2.875rem); line-height: 1.25; letter-spacing: .08em; }
.work-one { margin: 18px 0 0; font-size: 1.0625rem; line-height: 1.9; color: var(--ink); }
.work-text { margin-top: 30px; }
.work-photo .frame img { aspect-ratio: 3 / 2; object-fit: cover; }
.work-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); border-top: 1px solid var(--ink); }
.work-data > div { padding: 12px 0 13px; border-bottom: 1px solid var(--line); }
.work-data dt { font-size: .6875rem; letter-spacing: .18em; color: var(--muted); }
.work-data dd { margin-top: 2px; font-size: .9375rem; line-height: 1.7; }
.work-desc { margin: 28px 0 0; font-size: .9375rem; line-height: 2; color: var(--ink-2); }
.work-mat { margin-top: 32px; }
.mat-title { margin-bottom: 10px; font-family: var(--font-sans); font-weight: 400; font-size: .75rem; letter-spacing: .2em; color: var(--muted); }
.mat-list li { padding: 9px 0 10px; border-top: 1px solid var(--line); font-size: .875rem; line-height: 1.7; }
.mat-list li:last-child { border-bottom: 1px solid var(--line); }
.dwg-box { position: relative; padding: clamp(14px, 2vw, 26px); background: var(--dwg-bg); border: 1px solid var(--line); }
.dwg-box::before {
  content: "NTS";
  position: absolute;
  right: 10px; bottom: 8px;
  font: 400 .625rem/1 var(--font-mono);
  letter-spacing: .14em;
  color: var(--grey);
}
.dwg--m { display: none; }
@media (max-width: 1279px) {
  .work-grid { display: flex; flex-direction: column; align-items: stretch; }
  .work-a, .work-b { display: contents; }
  .work-head { order: 1; } .work-photo { order: 2; } .work-dwg { order: 3; } .work-text { order: 4; }
  .work-photo { margin-top: 28px; margin-bottom: 32px; }
  .work-dwg { margin-top: 0; margin-bottom: 36px; max-width: 760px; }
  .work-text { max-width: 44em; margin-top: 0; }
}
@media (max-width: 639px) {
  .dwg--d { display: none; }
  .dwg--m { display: block; }
  .dwg-box { padding: 10px; }
}

/* 線稿（SVG）：線寬以 --sw 控制，桌機版 viewBox 600 寬約 1:1 顯示，手機版縮小所以線寬放大 */
.dwg { width: 100%; height: auto; overflow: visible; --sw: 1.1px; }
.dwg--m { --sw: 1.8px; }
.dwg-qilou.dwg--m { --sw: 1.2px; }
.dwg--wind { --sw: 1.5px; }
.dwg .ln, .dwg .ln-w, .dwg .ln-x, .dwg .ln-s, .dwg .ln-d, .dwg .dim, .dwg .dim-t, .dwg .leader, .dwg .acc, .dwg .acc-d, .dwg .acc-h, .dwg .hatch { fill: none; stroke-linecap: butt; stroke-linejoin: miter; }
.dwg .ln { stroke: var(--ink); stroke-width: var(--sw); }
.dwg .ln-w { stroke: var(--ink); stroke-width: calc(var(--sw) * 2); }
.dwg .ln-x { stroke: var(--ink); stroke-width: calc(var(--sw) * 3.4); }
.dwg .ln-s { stroke: #66665F; stroke-width: calc(var(--sw) * .8); }
.dwg .ln-d { stroke: var(--grey); stroke-width: calc(var(--sw) * .85); stroke-dasharray: 5 4; }
.dwg .dim, .dwg .leader { stroke: var(--grey); stroke-width: calc(var(--sw) * .75); }
.dwg .dim-t { stroke: var(--ink-2); stroke-width: var(--sw); }
.dwg .acc { stroke: var(--brass); stroke-width: calc(var(--sw) * 1.5); }
.dwg .acc-h { stroke: var(--brass); stroke-width: calc(var(--sw) * 1.5); }
.dwg .acc-d { stroke: var(--brass); stroke-width: calc(var(--sw) * 1.3); stroke-dasharray: 6 5; }
.dwg .fill-t { fill: var(--paper-3); }
.dwg .fill-p { fill: var(--dwg-bg); }
.dwg .fill-dot { fill: var(--grey); }
.dwg .fill-ink { fill: var(--ink); }
.dwg .hatch { stroke: var(--grey); stroke-width: .8; }
.dwg text { font-family: var(--font-sans); letter-spacing: .04em; paint-order: stroke; stroke: var(--dwg-bg); stroke-linejoin: round; }
.dwg .lbl { font-size: 12.5px; font-weight: 400; fill: var(--ink); stroke-width: 4px; }
.dwg .lbl-s { font-size: 11px; fill: var(--ink-2); }
.dwg .lbl-m { font-family: var(--font-mono); font-size: 10.5px; fill: var(--muted); stroke-width: 3px; }
.dwg .lbl-dim { fill: var(--ink-2); }
.dwg .lbl-acc { fill: var(--brass-ink); }
.dwg .lbl-n { font-family: var(--font-mono); font-size: 12px; font-weight: 500; fill: var(--ink); stroke-width: 3px; }
.dwg--d .lbl { font-size: 14.5px; }
.dwg--d .lbl-s { font-size: 13.5px; }
.dwg--d .lbl-m { font-size: 13px; }
.dwg--d .lbl-n { font-size: 13px; }
.dwg .lbl-v { writing-mode: vertical-rl; text-orientation: upright; letter-spacing: .12em; }
.dwg--m .lbl { font-size: 22px; stroke-width: 6px; }
.dwg--m .lbl-s { font-size: 20px; }
.dwg--m .lbl-n { font-size: 20px; }
.dwg-qilou.dwg--m .lbl { font-size: 15px; stroke-width: 4px; }
.dwg-qilou.dwg--m .lbl-s { font-size: 14px; }

/* ---------- 服務頁：四項服務 ---------- */
.sv-list { border-top: 1px solid var(--ink); }
.sv {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: baseline;
  padding-block: 34px 38px;
  border-bottom: 1px solid var(--line);
}
.sv-no { grid-column: 1 / 3; margin: 0; font-size: .875rem; color: var(--brass-ink); letter-spacing: .1em; }
.sv-name { grid-column: 3 / 6; font-size: clamp(1.625rem, 2.6vw, 2.25rem); line-height: 1.3; letter-spacing: .08em; }
.sv-body { grid-column: 6 / -1; max-width: 42em; }
.sv-body p { font-size: .9375rem; line-height: 2; color: var(--ink-2); }
.sv-fit { display: flex; gap: 14px; align-items: baseline; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-2); font-size: .875rem !important; color: var(--ink) !important; }
.sv-fit .k { flex: none; font-size: .6875rem; letter-spacing: .18em; color: var(--muted); }
@media (max-width: 899px) {
  .sv-no { grid-column: 1 / 3; }
  .sv-name { grid-column: 3 / -1; }
  .sv-body { grid-column: 1 / -1; margin-top: 16px; }
}
@media (max-width: 719px) {
  .sv { grid-template-columns: 48px minmax(0, 1fr); padding-block: 26px 30px; }
  .sv-no { grid-column: 1; }
  .sv-name { grid-column: 2; }
}

/* ---------- 服務頁：設計流程（直向時間軸） ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: start;
}
.process-fig { grid-column: 1 / 5; position: sticky; top: calc(var(--top-h) + 32px); }
.process-fig img { aspect-ratio: 1; object-fit: cover; }
.steps { grid-column: 6 / -1; }
.step { position: relative; padding: 0 0 44px 76px; }
.step::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 1px; background: var(--line-2); }
.step:last-child { padding-bottom: 0; }
.step:last-child::before { display: none; }
.step-no {
  position: absolute;
  left: 0; top: 0;
  display: grid;
  place-items: center;
  width: 43px; height: 43px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  font-size: .8125rem;
}
.step-title { padding-top: 4px; margin-bottom: 14px; font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.35; letter-spacing: .08em; }
.step-dl > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 10px 0 11px; border-top: 1px solid var(--line); }
.step-dl > div:last-child { border-bottom: 1px solid var(--line); }
.step-dl dt { font-size: .75rem; letter-spacing: .16em; color: var(--muted); padding-top: .25em; }
.step-dl dd { font-size: .9375rem; line-height: 1.85; color: var(--ink-2); }
.step-dl > div:last-child dd { color: var(--ink); }
@media (max-width: 1023px) {
  .process-fig { position: relative; top: auto; grid-column: 1 / -1; max-width: 420px; margin-bottom: 48px; }
  .steps { grid-column: 1 / -1; }
}
@media (max-width: 719px) {
  .step { padding-left: 56px; }
  .step::before { left: 17px; top: 36px; }
  .step-no { width: 35px; height: 35px; font-size: .75rem; }
  .step-dl > div { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- 服務頁：費用 ---------- */
.fees-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: start;
}
.rules { grid-column: 1 / 8; counter-reset: r; border-top: 1px solid var(--ink); }
.rules li { counter-increment: r; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; padding: 15px 0 16px; border-bottom: 1px solid var(--line); font-size: .9375rem; line-height: 1.9; color: var(--ink-2); }
.rules li::before { content: counter(r, decimal-leading-zero); font: 400 .75rem/2.4 var(--font-mono); color: var(--brass-ink); letter-spacing: .1em; }
.fees-fig { grid-column: 9 / -1; }
.fees-fig img { aspect-ratio: 1; object-fit: cover; }
.table-wrap { margin-top: clamp(48px, 6vw, 80px); }
.compact { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.compact thead th {
  padding: 0 20px 12px 0;
  border-bottom: 1px solid var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: .75rem;
  letter-spacing: .16em;
  color: var(--muted);
  text-align: left;
}
.compact tbody th, .compact tbody td { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: baseline; line-height: 1.85; }
.compact tbody th { width: 20%; font-family: var(--font-head); font-weight: 300; font-size: 1.25rem; letter-spacing: .08em; white-space: nowrap; }
/* 服務編號 S1–S4（對應四項服務）：用 data-no 產生，不進表格文字與報讀 */
.compact tbody th[data-no]::before { content: attr(data-no); content: attr(data-no) / ""; display: inline-block; min-width: 2.4em; font: 400 .75rem/1 var(--font-mono); color: var(--brass-ink); letter-spacing: .1em; vertical-align: .2em; }
.compact tbody td { color: var(--ink-2); }
.compact .fee-range { width: 36%; color: var(--ink); font-weight: 500; }
.fee-note { margin-top: 18px; max-width: 60em; }
@media (max-width: 1023px) {
  .rules { grid-column: 1 / -1; }
  .fees-fig { grid-column: 1 / -1; max-width: 360px; margin-top: 40px; }
}
@media (max-width: 719px) {
  .compact thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compact, .compact tbody { display: block; }
  .compact tbody tr { display: grid; padding: 18px 0 16px; border-bottom: 1px solid var(--line); }
  .compact tbody tr:first-child { border-top: 1px solid var(--ink); }
  .compact tbody th, .compact tbody td { display: block; width: auto !important; padding: 0; border: 0; }
  .compact tbody th { margin-bottom: 8px; }
  .compact tbody td { font-size: .875rem; }
  .compact tbody td::before { content: attr(data-k); display: block; margin-top: 8px; font-size: .6875rem; font-weight: 400; letter-spacing: .16em; color: var(--muted); }
}

/* ---------- 服務頁：準備清單 ---------- */
.prep-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); border-top: 1px solid var(--ink); }
.prep-list li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; padding: 22px 24px 24px 0; border-bottom: 1px solid var(--line); }
.prep-no { font-size: .75rem; color: var(--brass-ink); line-height: 2; letter-spacing: .1em; }
.prep-k { margin-bottom: 6px; font-family: var(--font-sans); font-weight: 600; font-size: 1rem; line-height: 1.7; letter-spacing: .06em; }
.prep-list p { font-size: .9375rem; line-height: 1.9; color: var(--ink-2); }
@media (max-width: 719px) {
  .prep-list { grid-template-columns: 1fr; }
  .prep-list li { grid-template-columns: 36px minmax(0, 1fr); padding: 18px 0 20px; }
}

/* ---------- 進場淡入（html.motion 才隱藏；無 JS、減少動態時全部直接可見） ---------- */
html.motion [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
html.motion [data-reveal].is-in { opacity: 1; transform: none; }
/* 描線：用 class 選取（Chrome 對 SVG 的 pathLength 屬性選擇器在祖先換 class 時不會重算樣式） */
html.motion [data-reveal] .g-base :is(.ln, .ln-w, .ln-x, .ln-s) { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease) .15s; }
html.motion [data-reveal].is-in .g-base :is(.ln, .ln-w, .ln-x, .ln-s) { stroke-dashoffset: 0; }
html.motion [data-reveal] .g-acc, html.motion [data-reveal] .g-lbl, html.motion [data-reveal] .g-fill { opacity: 0; transition: opacity .5s var(--ease) 1s; }
html.motion [data-reveal] .g-fill { transition-delay: .4s; }
html.motion [data-reveal].is-in .g-acc, html.motion [data-reveal].is-in .g-lbl, html.motion [data-reveal].is-in .g-fill { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- 列印 ---------- */
@media print {
  .site-top, .mobile-bar, .demo-dialog, .cta-fig { display: none !important; }
  body { padding: 0; background: #fff; }
  html.motion [data-reveal] { opacity: 1 !important; transform: none !important; }
}
