/* 方案二「衡室設計」前台樣式
 * 版面、數值照 Design 畫布 Main.dc.html（桌機 1440）；平板 768–1199、手機 <768 另外排。
 * 換風格＝改下面 :root 變數（--accent 是點綴色，畫布預設黃銅）。
 */
:root {
  --accent: #B08D57;
  --c-bg: #F2EEE7;
  --c-bg-alt: #E9E3D9;
  --c-ink: #1E1D1A;
  --c-ink-2: #3F3B35;
  --c-muted: #575249;
  --c-placeholder: #6E685E;
  --c-line: #CBC2B3;
  --c-line-2: #9C9284;
  --c-field-line: #A79F92;
  --c-paper: #FBF9F5;
  --c-brass-text: #7A5C2E;
  --c-brass-num: #8E6D3C;
  --c-brass-light: #C9A774;
  --c-on-dark: #F2EEE7;
  --c-on-dark-2: #E4DED4;
  --c-on-dark-muted: #B9B2A6;
  --c-on-dark-faint: #9F988C;
  --c-dark-line: #4A463F;
  --c-dark-line-2: #3A3833;
  --c-error: #9A3A2C;
  --c-art-plan: #E0D8CB;          /* 首屏平面圖底色（跟插畫裡切開牆面的顏色一樣） */
  --c-art-default: #CFC5B5;       /* 作品圖還沒載入時的底色 */
  --c-art-soft: #D8D0C3;          /* 消息、團隊插畫底色 */
  --c-glass: rgba(242, 238, 231, .92);
  --c-overlay: rgba(30, 29, 26, .74);
  --shadow-panel: 0 30px 80px rgba(0, 0, 0, .35);
  --shadow-menu: 0 24px 40px rgba(30, 29, 26, .14);

  --f-serif: 'Noto Serif TC', "Microsoft JhengHei", "微軟正黑體", sans-serif;
  --f-sans: 'Noto Sans TC', "Microsoft JhengHei", "微軟正黑體", sans-serif;
  --f-latin: 'Cormorant Garamond', 'Noto Serif TC', "Microsoft JhengHei", "微軟正黑體", sans-serif;

  --max: 1440px;
  --pad-x: clamp(20px, 4.5vw, 64px);
  --sec-y: 104px;
  --sec-y-tall: 112px;
  --header-h: 88px;
}

/* ---------- 基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--c-bg); color: var(--c-ink); font-family: var(--f-sans); font-size: 16px; line-height: 1.7; }
a { color: var(--c-ink); }
a:hover { color: var(--c-brass-text); }
button { font-family: inherit; }
::placeholder { color: var(--c-placeholder); opacity: 1; }
:focus-visible { outline: 2px solid var(--c-brass-text); outline-offset: 3px; }
.section--dark :focus-visible, .site-footer :focus-visible { outline-color: var(--c-brass-light); }
.ac { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--c-ink); color: var(--c-on-dark); text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--c-on-dark); }
.page { min-height: 100vh; display: flex; flex-direction: column; }
main { display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }

/* ---------- 共用元件：按鈕、箭頭連結、小標 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border: 0; border-radius: 0; font-family: inherit; font-size: 15px; letter-spacing: .14em; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn-lg { gap: 12px; min-height: 56px; padding: 0 30px; font-size: 16px; }
.btn-dark { background: var(--c-ink); color: var(--c-on-dark); }
.btn-dark:hover { background: var(--c-dark-line-2); color: var(--c-on-dark); }
.btn-outline { border: 1px solid var(--c-ink); background: transparent; color: var(--c-ink); }
.btn-outline:hover { background: var(--c-ink); color: var(--c-on-dark); }
.btn svg { flex: 0 0 auto; transition: transform .2s; }
.btn:hover svg, .link-arrow:hover svg { transform: translateX(3px); }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--c-ink); text-decoration: none; font-size: 16px; letter-spacing: .1em; background: none; border: 0; padding: 0; cursor: pointer; }
.link-arrow svg { transition: transform .2s; }
.link-arrow-text { border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow--sm { font-size: 15px; }

.eyebrow { margin: 0; display: flex; align-items: center; gap: 14px; font-size: 13px; letter-spacing: .2em; color: var(--c-brass-text); }
.eyebrow-num { font-family: var(--f-latin); font-style: italic; font-size: 18px; letter-spacing: .04em; }
.eyebrow-line { flex: 0 0 36px; height: 1px; background: var(--accent); }
.eyebrow--dark { color: var(--c-brass-light); }

.body-text { margin: 0; font-size: 16px; line-height: 1.9; color: var(--c-muted); }

/* ---------- 頂部資訊列 ---------- */
.topbar { border-bottom: 1px solid var(--c-line); }
.topbar-inner { min-height: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; font-size: 13px; letter-spacing: .08em; color: var(--c-muted); }
.topbar p { margin: 0; }
.topbar-info { display: flex; flex-wrap: wrap; gap: 4px 20px; }

/* ---------- 頁首 ---------- */
.site-header { border-bottom: 1px solid var(--c-line); background: var(--c-bg); }
.header-inner { padding-top: 8px; padding-bottom: 8px; min-height: var(--header-h); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.brand { display: flex; align-items: center; gap: 14px; min-height: 48px; color: var(--c-ink); text-decoration: none; }
.brand:hover { color: var(--c-ink); }
.brand svg { flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
.brand-name { font-family: var(--f-serif); font-size: 22px; font-weight: 600; letter-spacing: .16em; }
.brand-en { font-family: var(--f-latin); font-size: 13px; font-weight: 500; letter-spacing: .34em; color: var(--c-muted); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--c-ink); text-decoration: none; font-size: 15px; letter-spacing: .08em; }
.site-nav a:hover { color: var(--c-brass-text); }
.site-nav .site-nav-cta { display: none; }
.nav-toggle { display: none; }

/* ---------- 01 首屏 ---------- */
.hero-inner { padding-top: 56px; padding-bottom: 96px; display: flex; flex-wrap: wrap; align-items: stretch; gap: 48px 64px; }
.hero-text { flex: 5 1 400px; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding-top: 20px; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero-title { margin: 0; font-family: var(--f-serif); font-weight: 600; font-size: clamp(40px, 4.8vw, 68px); line-height: 1.28; letter-spacing: .04em; }
.hero-lead { margin: 0; max-width: 29em; font-size: 17px; line-height: 1.9; color: var(--c-muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-top: 8px; }
.hero-specs { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(104px, 100%), 1fr)); border-top: 1px solid var(--c-ink); }
.hero-specs > div { display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 0; border-left: 1px solid var(--c-line); }
.hero-specs > div:first-child { padding-left: 0; border-left: 0; }
.hero-specs dt { font-size: 12px; letter-spacing: .18em; color: var(--c-muted); }
.hero-specs dd { margin: 0; font-family: var(--f-serif); font-size: 19px; font-weight: 600; letter-spacing: .06em; }
.hero-figure { flex: 7 1 540px; min-width: 0; margin: 0; position: relative; height: clamp(380px, 46vw, 620px); }
.hero-block { position: absolute; top: 56px; right: 0; bottom: 0; width: 42%; background: var(--c-ink); }
.hero-vtext { position: absolute; top: 96px; right: 16px; margin: 0; writing-mode: vertical-rl; font-family: var(--f-latin); font-style: italic; font-size: 15px; letter-spacing: .3em; color: var(--c-brass-light); }
.hero-art { position: absolute; top: 0; left: 0; right: 56px; bottom: 56px; background: var(--c-art-plan); }
.hero-art .art { display: block; width: 100%; height: 100%; }

/* ---------- 區塊共用 ---------- */
.section-inner { padding-top: var(--sec-y); padding-bottom: var(--sec-y); }
.section-inner--tall { padding-bottom: var(--sec-y-tall); }
.section--line { border-top: 1px solid var(--c-line); }
.section--alt { background: var(--c-bg-alt); }
.section--dark { background: var(--c-ink); color: var(--c-on-dark); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 64px; margin-bottom: 56px; }
.sec-head--works { gap: 28px 48px; }
.sec-head--process { margin-bottom: 64px; }
.sec-head--news { gap: 24px 48px; margin-bottom: 48px; }
.sec-head-main { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.sec-title { margin: 0; font-family: var(--f-serif); font-weight: 600; font-size: clamp(30px, 3.1vw, 44px); line-height: 1.35; letter-spacing: .04em; }
.sec-lead { margin: 0; flex: 0 1 440px; font-size: 16px; line-height: 1.9; color: var(--c-muted); }
.section--dark .sec-title { color: var(--c-on-dark); }
.section--dark .sec-lead { color: var(--c-on-dark-muted); }

/* ---------- 02 服務項目 ---------- */
.svc-list { border-top: 1px solid var(--c-ink); }
.svc { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px 40px; padding: 36px 0; border-bottom: 1px solid var(--c-line); }
.svc-num { margin: 0; flex: 0 0 88px; font-family: var(--f-latin); font-size: 60px; font-weight: 500; line-height: .9; color: var(--c-brass-num); }
.svc-head { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.svc-title { margin: 0; font-family: var(--f-serif); font-size: 28px; font-weight: 600; line-height: 1.3; letter-spacing: .08em; }
.svc-sub { margin: 0; font-size: 14px; letter-spacing: .12em; color: var(--c-muted); }
.svc-desc { margin: 0; flex: 2 1 320px; min-width: 0; font-size: 16px; line-height: 1.9; color: var(--c-ink-2); }
.svc-points { margin: 0; padding: 0; list-style: none; flex: 1 1 190px; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.svc-points li { display: flex; align-items: center; gap: 10px; }
.svc-points li::before { content: ""; flex: 0 0 14px; height: 1px; background: var(--accent); }
.svc-art { flex: 0 0 180px; }

/* ---------- 03 作品案例（業主可更新） ---------- */
.works-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 22px; border: 1px solid var(--c-line-2); border-radius: 0; background: transparent; color: var(--c-ink); font-family: inherit; font-size: 15px; letter-spacing: .1em; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--c-ink); }
.chip[aria-pressed="true"] { border-color: var(--c-ink); background: var(--c-ink); color: var(--c-on-dark); }

.works-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 56px 48px; }
.works-row + .works-row { margin-top: 88px; }
.works-row--solo { flex-direction: row-reverse; }
.work-card { min-width: 0; }
.slot-p0, .slot-s0 { flex: 7 1 500px; }
.slot-p1, .work-spacer { flex: 5 1 340px; }
.slot-p1 { margin-top: 112px; }
.slot-t0, .slot-t1, .slot-t2 { flex: 1 1 260px; }
.slot-t1 { margin-top: 80px; }
.slot-p0 .work-media { height: clamp(300px, 40vw, 520px); }
.slot-p1 .work-media { height: clamp(260px, 30vw, 380px); }
.slot-t0 .work-media { height: clamp(260px, 26vw, 320px); }
.slot-t1 .work-media { height: clamp(280px, 32vw, 400px); }
.slot-t2 .work-media { height: clamp(240px, 24vw, 300px); }
.slot-s0 .work-media { height: clamp(280px, 30vw, 420px); }

.work-link { display: flex; flex-direction: column; gap: 20px; color: var(--c-ink); text-decoration: none; }
.work-link:hover { color: var(--c-ink); }
.work-media { position: relative; overflow: hidden; background: var(--c-art-default); }
.work-media .art, .work-media .art-img { display: block; width: 100%; height: 100%; transition: transform .6s ease; }
.work-media .art-img { object-fit: cover; }
.work-link:hover .art, .work-link:hover .art-img { transform: scale(1.025); }
.work-badge { position: absolute; top: 20px; left: 20px; padding: 6px 12px; background: var(--c-ink); color: var(--c-on-dark); font-size: 12px; line-height: 1.7; letter-spacing: .16em; }
.work-cap { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.work-cap-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.work-eyebrow { margin: 0; font-size: 12px; letter-spacing: .18em; color: var(--c-brass-text); }
.work-title { margin: 0; font-family: var(--f-serif); font-size: 26px; font-weight: 600; line-height: 1.35; letter-spacing: .06em; transition: color .2s; overflow-wrap: anywhere; }
.work-link:hover .work-title { color: var(--c-brass-text); }
.work-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 16px; font-size: 14px; color: var(--c-muted); }
.work-num { font-family: var(--f-latin); font-size: 44px; font-weight: 500; line-height: 1; color: var(--c-brass-num); }

.works-more { flex: 5 1 340px; min-width: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; gap: 22px; padding-bottom: 111px; }
.works-more-title { margin: 0; font-family: var(--f-serif); font-size: 28px; font-weight: 600; line-height: 1.55; letter-spacing: .06em; }
.works-more-text { margin: 0; max-width: 24em; font-size: 16px; line-height: 1.9; color: var(--c-muted); }
.works-more .btn { align-self: flex-start; padding: 0 28px; letter-spacing: .12em; }
.works-empty { grid-column: 1 / -1; margin: 0; padding: 56px 0; border-top: 1px solid var(--c-ink); font-size: 16px; color: var(--c-muted); }

/* ---------- 04 設計流程 ---------- */
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 40px 32px; border-top: 1px solid var(--c-dark-line); }
.step { position: relative; display: flex; flex-direction: column; gap: 14px; padding-top: 32px; }
.step-dot { position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.step-top { display: flex; justify-content: space-between; align-items: flex-start; }
.step-num { font-family: var(--f-latin); font-size: 60px; font-weight: 500; line-height: .9; color: var(--accent); }
.step-title { margin: 0; font-family: var(--f-serif); font-size: 22px; font-weight: 600; letter-spacing: .1em; color: var(--c-on-dark); }
.step-text { margin: 0; font-size: 15px; line-height: 1.85; color: var(--c-on-dark-muted); }

/* ---------- 05 最新消息（業主可更新） ---------- */
.news-grid { display: flex; flex-wrap: wrap; align-items: stretch; gap: 48px 64px; padding-top: 40px; border-top: 1px solid var(--c-ink); }
.news-feature { flex: 6 1 480px; min-width: 0; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px 32px; }
.news-media { flex: 1 1 260px; min-width: 0; height: 300px; background: var(--c-art-soft); overflow: hidden; }
.news-media .art, .news-media .art-img { display: block; width: 100%; height: 100%; }
.news-media .art-img { object-fit: cover; }
.news-tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 28px 30px; }
.news-tile::after { content: ""; position: absolute; left: 30px; right: 30px; top: 50%; height: 1px; background: var(--accent); }
.news-tile-en { font-family: var(--f-latin); font-size: 13px; font-weight: 500; letter-spacing: .34em; color: var(--c-muted); }
.news-tile-date { font-family: var(--f-latin); font-size: 84px; font-weight: 500; line-height: .9; letter-spacing: .02em; color: var(--c-ink); }
.news-tile-year { font-family: var(--f-latin); font-style: italic; font-size: 18px; color: var(--c-brass-text); }
.news-body { flex: 1 1 240px; min-width: 0; align-self: stretch; display: flex; flex-direction: column; gap: 14px; }
.news-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.news-date { font-family: var(--f-latin); font-size: 22px; font-weight: 500; letter-spacing: .06em; }
.news-tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border: 1px solid var(--c-brass-text); color: var(--c-brass-text); font-size: 12px; letter-spacing: .14em; }
.news-title { margin: 0; font-family: var(--f-serif); font-size: 24px; font-weight: 600; line-height: 1.55; letter-spacing: .04em; overflow-wrap: anywhere; }
.news-summary { margin: 0; font-size: 15px; line-height: 1.9; color: var(--c-muted); }
.news-body .link-arrow { margin-top: auto; align-self: flex-start; }
.news-side { flex: 5 1 360px; min-width: 0; display: flex; flex-direction: column; }
.news-item { display: flex; flex-direction: column; gap: 12px; }
.news-item:not(:last-child) { padding-bottom: 28px; border-bottom: 1px solid var(--c-line); }
.news-item + .news-item { padding-top: 28px; }
.news-item .news-title { font-size: 22px; }
.news-item .link-arrow { align-self: flex-start; }
.news-empty { margin: 0; font-size: 16px; color: var(--c-muted); }

/* ---------- 06 關於我們 ---------- */
.about-inner { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 56px 80px; }
.about-text { flex: 5 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.about-title { margin: 0; font-family: var(--f-serif); font-weight: 600; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.6; letter-spacing: .02em; }
.team { flex: 6 1 480px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 40px 32px; }
.member { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.member-art { height: 300px; background: var(--c-art-soft); overflow: hidden; }
.member-art svg { display: block; width: 100%; height: 100%; }
.member-cap { display: flex; flex-direction: column; gap: 4px; }
.member-role { margin: 0; font-size: 12px; letter-spacing: .18em; color: var(--c-brass-text); }
.member-name { margin: 0; font-family: var(--f-serif); font-size: 24px; font-weight: 600; letter-spacing: .12em; }
.member-bio { margin: 8px 0 0; font-size: 15px; line-height: 1.85; color: var(--c-muted); }

/* ---------- 07 預約諮詢 ---------- */
.contact-inner { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 56px 80px; }
.contact-text { flex: 5 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.contact-list { margin: 0; display: flex; flex-direction: column; border-top: 1px solid var(--c-line); }
.contact-list > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.contact-list dt { flex: 0 0 72px; font-size: 13px; letter-spacing: .16em; color: var(--c-muted); }
.contact-list dd { margin: 0; font-size: 16px; letter-spacing: .04em; }
.contact-card { flex: 7 1 520px; min-width: 0; padding: clamp(24px, 3.4vw, 48px); background: var(--c-paper); border: 1px solid var(--c-line); }
.contact-form { display: flex; flex-direction: column; gap: 26px; }
.field-row { display: flex; flex-wrap: wrap; gap: 26px 24px; }
.field-row > .field { flex: 1 1 240px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-size: 14px; letter-spacing: .1em; color: var(--c-ink-2); }
.req { color: var(--c-brass-text); }
.input { width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--c-field-line); border-radius: 0; background: var(--c-bg); font-family: inherit; font-size: 16px; color: var(--c-ink); }
.textarea { height: 128px; padding: 14px 16px; line-height: 1.7; resize: vertical; }
.input-suffix { display: flex; align-items: center; height: 52px; border: 1px solid var(--c-field-line); background: var(--c-bg); }
.input-suffix:focus-within { outline: 2px solid var(--c-brass-text); outline-offset: 3px; }
.input-suffix input { flex: 1 1 auto; min-width: 0; height: 100%; padding: 0 16px; border: 0; background: transparent; font-family: inherit; font-size: 16px; color: var(--c-ink); }
.input-suffix input:focus-visible { outline: none; }
.input-suffix span { padding: 0 16px; font-size: 15px; color: var(--c-muted); }
.select-wrap { position: relative; }
.select-wrap select { padding-right: 48px; -webkit-appearance: none; appearance: none; }
.select-wrap svg { position: absolute; right: 16px; top: 17px; pointer-events: none; }
.field-set { margin: 0; padding: 0; border: 0; min-width: 0; }
.field-set legend { padding: 0; margin-bottom: 10px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 1px solid var(--c-field-line); background: var(--c-bg); font-size: 15px; letter-spacing: .08em; cursor: pointer; }
.radio-chip:has(input:checked) { border-color: var(--c-ink); }
.radio-chip input { width: 18px; height: 18px; margin: 0; accent-color: var(--c-ink); }
.form-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.btn-submit { padding: 0 32px; letter-spacing: .16em; }
.form-note { margin: 0; flex: 1 1 240px; font-size: 13px; line-height: 1.7; color: var(--c-muted); }
.field-error { margin: 0; font-size: 13px; line-height: 1.6; color: var(--c-error); }
.input[aria-invalid="true"], .input-suffix:has([aria-invalid="true"]) { border-color: var(--c-error); }
.form-success { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px 0; }
.form-success:focus { outline: none; }
.form-success-title { margin: 8px 0 0; font-family: var(--f-serif); font-size: 28px; font-weight: 600; letter-spacing: .06em; }
.form-success .form-note { flex: none; }

/* ---------- 頁尾 ---------- */
.site-footer { flex-grow: 1; background: var(--c-ink); color: var(--c-on-dark-2); }
.footer-inner { padding-top: 80px; padding-bottom: 32px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px 56px; padding-bottom: 56px; border-bottom: 1px solid var(--c-dark-line-2); }
.footer-brand { flex: 2 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.footer-logo { display: flex; align-items: center; gap: 14px; }
.footer-logo svg { flex: 0 0 auto; }
.footer-logo-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
.footer-name { margin: 0; font-family: var(--f-serif); font-size: 22px; font-weight: 600; letter-spacing: .16em; color: var(--c-on-dark); }
.footer-en { margin: 0; font-family: var(--f-latin); font-size: 13px; font-weight: 500; letter-spacing: .34em; color: var(--c-on-dark-muted); }
.footer-desc { margin: 0; max-width: 24em; font-size: 15px; line-height: 1.9; color: var(--c-on-dark-muted); }
.footer-col { flex: 1 1 240px; min-width: 0; }
.footer-col--nav { flex-basis: 200px; }
.footer-col--social { flex-basis: 180px; }
.footer-head { margin: 0 0 16px; font-size: 13px; font-weight: 500; letter-spacing: .22em; color: var(--c-brass-light); }
.footer-head--nav { margin-bottom: 12px; }
.footer-info { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.7; }
.footer-nav { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--c-on-dark-2); text-decoration: none; font-size: 15px; }
.footer-nav a:hover { color: var(--c-brass-light); }
.social { display: flex; gap: 10px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--c-dark-line); color: var(--c-on-dark-2); transition: border-color .2s, color .2s; }
.social a:hover { border-color: var(--c-brass-light); color: var(--c-brass-light); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; font-size: 13px; letter-spacing: .06em; color: var(--c-on-dark-faint); }
.footer-bottom p { margin: 0; }

/* ---------- 詳細視窗（作品、消息） ---------- */
html.is-modal { overflow: hidden; }
.modal { position: fixed; inset: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: transparent; color: var(--c-ink); overflow: hidden; }
.modal[open] { display: flex; align-items: center; justify-content: center; padding: 32px; }
.modal::backdrop { background: var(--c-overlay); }
.modal-panel { position: relative; display: flex; width: min(820px, 100%); max-height: 100%; background: var(--c-bg); box-shadow: var(--shadow-panel); animation: modal-in .28s ease; }
.modal-panel--wide { width: min(1240px, 100%); }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 3; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 1px solid var(--c-ink); background: var(--c-bg); color: var(--c-ink); cursor: pointer; }
.modal-close:hover { background: var(--c-ink); color: var(--c-on-dark); }

/* 作品詳細 */
.modal-panel--work { width: min(1240px, 100%); height: min(780px, 100%); }
.wd { display: grid; grid-template-columns: minmax(0, 1fr) 400px; width: 100%; height: 100%; }
.wd-media { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--c-bg-alt); }
.wd-stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; touch-action: pan-y; }
.wd-stage .art, .wd-stage .art-img { display: block; width: 100%; height: 100%; }
.wd-stage .art-img { object-fit: contain; }
.wd-arrow { position: absolute; top: 50%; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-top: -26px; padding: 0; border: 1px solid var(--c-ink); background: var(--c-glass); color: var(--c-ink); cursor: pointer; }
.wd-arrow:hover { background: var(--c-ink); color: var(--c-on-dark); }
.wd-arrow:disabled { opacity: .35; cursor: default; background: var(--c-glass); color: var(--c-ink); }
.wd-prev { left: 16px; }
.wd-next { right: 16px; }
.wd-count { position: absolute; left: 16px; bottom: 14px; z-index: 2; margin: 0; padding: 2px 12px; background: var(--c-glass); font-family: var(--f-latin); font-size: 18px; letter-spacing: .12em; }
.wd-thumbs { display: flex; gap: 8px; margin: 0; padding: 12px 16px; list-style: none; overflow-x: auto; border-top: 1px solid var(--c-line); }
.wd-thumb { display: block; width: 88px; height: 62px; padding: 0; border: 0; overflow: hidden; cursor: pointer; opacity: .7; transition: opacity .2s; }
.wd-thumb:hover { opacity: 1; }
.wd-thumb[aria-current="true"] { opacity: 1; outline: 2px solid var(--c-ink); outline-offset: -2px; }
.wd-thumb .art, .wd-thumb .art-img { display: block; width: 100%; height: 100%; }
.wd-thumb .art-img { object-fit: cover; }
.wd-info { min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; padding: 72px 36px 28px; border-left: 1px solid var(--c-line); }
.wd-back { align-self: flex-start; margin: -40px 0 4px; }
.wd-title { margin: 0; font-family: var(--f-serif); font-size: 32px; font-weight: 600; line-height: 1.35; letter-spacing: .06em; overflow-wrap: anywhere; }
.wd-specs { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--c-ink); }
.wd-specs > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 12px 0; border-left: 1px solid var(--c-line); }
.wd-specs > div:first-child { padding-left: 0; border-left: 0; }
.wd-specs dt { font-size: 12px; letter-spacing: .18em; color: var(--c-muted); }
.wd-specs dd { margin: 0; font-family: var(--f-serif); font-size: 17px; font-weight: 600; letter-spacing: .04em; }
.wd-tags { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.wd-tags li { padding: 2px 12px; border: 1px solid var(--c-line-2); font-size: 13px; letter-spacing: .1em; color: var(--c-ink-2); }
.wd-desc p { margin: 0 0 .9em; font-size: 16px; line-height: 1.9; color: var(--c-ink-2); }
.wd-desc p:last-child { margin-bottom: 0; }
.wd-cta { align-self: flex-start; }
.wd-nav { margin-top: auto; display: flex; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--c-line); }
.wd-nav-btn { display: inline-flex; flex-direction: column; gap: 2px; min-height: 48px; max-width: 48%; padding: 4px 0; border: 0; background: none; color: var(--c-ink); text-align: left; cursor: pointer; }
.wd-nav-btn--next { margin-left: auto; text-align: right; align-items: flex-end; }
.wd-nav-btn span { font-size: 12px; letter-spacing: .18em; color: var(--c-brass-text); }
.wd-nav-btn strong { font-family: var(--f-serif); font-size: 16px; font-weight: 600; letter-spacing: .04em; }
.wd-nav-btn:hover strong { color: var(--c-brass-text); }

/* 消息全文、全部消息 */
.nd { width: 100%; max-height: calc(100vh - 64px); overflow-y: auto; padding: 56px 56px 48px; }
.nd-media { height: 320px; margin: 0 0 28px; background: var(--c-art-soft); overflow: hidden; }
.nd-media .art, .nd-media .art-img { display: block; width: 100%; height: 100%; }
.nd-media .art-img { object-fit: cover; }
.nd-title { margin: 14px 0 22px; font-family: var(--f-serif); font-size: 30px; font-weight: 600; line-height: 1.5; letter-spacing: .04em; overflow-wrap: anywhere; }
.nd-body p { margin: 0 0 1.2em; font-size: 16px; line-height: 2; color: var(--c-ink-2); }
.nd-back { margin-bottom: 18px; }
.nd-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--c-line); }
.nl-head { margin: 0 0 8px; font-family: var(--f-serif); font-size: 30px; font-weight: 600; letter-spacing: .06em; }
.nl-sub { margin: 0 0 28px; font-size: 15px; color: var(--c-muted); }
.nl-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--c-ink); }
.nl-item { display: flex; flex-direction: column; gap: 8px; padding: 24px 0; border-bottom: 1px solid var(--c-line); }
.nl-item .news-title { font-size: 21px; }

/* 全部作品 */
.aw { width: 100%; max-height: calc(100vh - 64px); overflow-y: auto; padding: 56px 56px 48px; }
.aw-filter { margin: 0 0 32px; }
.chip-count { font-family: var(--f-latin); font-size: 15px; letter-spacing: .04em; opacity: .75; }
.aw-grid { margin: 0; padding: 32px 0 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 40px 28px; border-top: 1px solid var(--c-ink); }
.aw-card { display: flex; flex-direction: column; gap: 8px; color: var(--c-ink); text-decoration: none; }
.aw-card:hover { color: var(--c-ink); }
.aw-media { display: block; height: 200px; margin-bottom: 8px; overflow: hidden; background: var(--c-art-default); }
.aw-media .art, .aw-media .art-img { display: block; width: 100%; height: 100%; transition: transform .6s ease; }
.aw-media .art-img { object-fit: cover; }
.aw-card:hover .art, .aw-card:hover .art-img { transform: scale(1.03); }
.aw-title { font-family: var(--f-serif); font-size: 21px; font-weight: 600; line-height: 1.4; letter-spacing: .06em; transition: color .2s; overflow-wrap: anywhere; }
.aw-card:hover .aw-title { color: var(--c-brass-text); }

/* 標題斷行：避免小螢幕剩一個字掉到下一行；.nw＝一個詞組不拆開 */
.hero-title, .sec-title, .about-title, .works-more-title, .work-title, .news-title, .wd-title, .nd-title, .aw-title, .form-success-title { text-wrap: balance; }
.nw { display: inline-block; }

/* ---------- 平板＋小桌機：漢堡選單 ---------- */
@media (max-width: 1199px) {
  :root { --header-h: 72px; }
  .site-header { position: sticky; top: 0; z-index: 40; }
  .header-inner { flex-wrap: nowrap; gap: 16px; }
  .brand { margin-right: auto; }
  .nav-toggle { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; flex: 0 0 auto; width: 48px; height: 48px; padding: 0; border: 1px solid var(--c-ink); border-radius: 0; background: transparent; cursor: pointer; }
  .nav-toggle-bar { display: block; width: 20px; height: 1.5px; background: var(--c-ink); transition: transform .2s, opacity .2s; }
  .site-header.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .site-header.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .site-header.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; max-height: calc(100vh - var(--header-h)); overflow-y: auto; padding: 4px var(--pad-x) 28px; background: var(--c-bg); border-bottom: 1px solid var(--c-line); box-shadow: var(--shadow-menu); }
  .site-header.is-open .site-nav { display: flex; }
  .site-nav a { min-height: 56px; padding: 0; border-bottom: 1px solid var(--c-line); font-family: var(--f-serif); font-size: 18px; font-weight: 600; letter-spacing: .12em; }
  main section[id] { scroll-margin-top: var(--header-h); }
}

/* ---------- 平板（作品改兩欄連續排，手機一欄） ---------- */
@media (max-width: 1023px) {
  .works-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 32px; align-items: start; }
  .works-row { display: contents; }
  .work-card[class*="slot-"] { margin-top: 0; }
  .work-spacer { display: none; }
  .works-more { grid-column: 1 / -1; padding-bottom: 0; }
  .works-grid--odd .works-more { grid-column: auto; align-self: center; }
  .steps { border-top: 0; }
  .step { border-top: 1px solid var(--c-dark-line); }
  .modal[open] { padding: 0; align-items: stretch; }
  .modal-panel, .modal-panel--work, .modal-panel--wide { width: 100%; height: 100%; max-height: none; display: block; overflow-y: auto; box-shadow: none; }
  /* 關閉鈕跟著捲動停在右上角，內容再長也按得到 */
  .modal-close { position: sticky; top: 12px; display: flex; margin: 12px 12px -60px auto; }
  .wd { display: block; height: auto; }
  .wd-stage { height: min(62vw, 520px); min-height: 240px; }
  .wd-info { overflow: visible; border-left: 0; padding: 32px var(--pad-x) 40px; }
  .wd-back { margin: 0; }
  .nd, .aw { max-height: none; overflow: visible; padding: 76px var(--pad-x) 48px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .works-grid .work-card .work-media { height: 36vw; }
}
/* 1024 以上設計流程固定一排五步，不會剩一步落單 */
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ---------- 手機 ---------- */
@media (max-width: 767px) {
  :root { --sec-y: 72px; --sec-y-tall: 80px; }
  .topbar-inner { font-size: 12px; letter-spacing: .04em; }
  .topbar-hours { display: none; }
  .header-cta { display: none; }
  .site-nav .site-nav-cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; margin-top: 20px; border-bottom: 0; background: var(--c-ink); color: var(--c-on-dark); font-family: var(--f-sans); font-size: 16px; font-weight: 400; letter-spacing: .14em; }
  .site-nav .site-nav-cta:hover { color: var(--c-on-dark); }
  .brand { gap: 12px; }
  .brand svg { width: 38px; height: 38px; }
  .brand-name { font-size: 20px; }
  .brand-en { font-size: 11px; letter-spacing: .28em; }

  .hero-inner { padding-top: 32px; padding-bottom: 64px; gap: 40px; }
  .hero-text { padding-top: 0; gap: 36px; }
  .hero-copy { gap: 22px; }
  .hero-lead { font-size: 16px; }
  .hero-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-specs > div { padding: 14px 12px 14px 16px; }
  .hero-specs > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .hero-specs > div:nth-child(n+3) { border-top: 1px solid var(--c-line); }
  .hero-figure { height: 340px; }
  .hero-block { top: 40px; width: 40%; }
  .hero-vtext { top: 64px; right: 10px; font-size: 13px; }
  .hero-art { right: 40px; bottom: 40px; }

  .sec-head { margin-bottom: 40px; }
  .sec-head--process { margin-bottom: 48px; }
  .svc { gap: 16px 20px; padding: 28px 0; }
  .svc-num { flex-basis: 60px; font-size: 46px; }
  .svc-title { font-size: 24px; }
  .svc-art { flex-basis: 150px; width: 150px; height: 100px; }

  .chip { padding: 0 14px; font-size: 14px; letter-spacing: .06em; }
  .works-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .works-grid--odd .works-more { grid-column: auto; }
  .works-more { gap: 18px; }
  .works-more-title { font-size: 24px; }
  .work-title { font-size: 22px; }
  .work-num { font-size: 36px; }

  .news-grid { gap: 40px; padding-top: 32px; }
  .news-media { height: 240px; }
  .news-title { font-size: 21px; }
  .news-item .news-title { font-size: 20px; }

  .member-art { height: 260px; }
  .contact-card { padding: 24px 18px; }
  .field-row { gap: 22px; }
  .radio-chip { padding: 0 16px; }

  .footer-inner { padding-top: 56px; }
  .footer-top { gap: 36px; padding-bottom: 40px; }

  .aw-grid { gap: 32px; padding-top: 24px; }
  .aw-media { height: 220px; }
  .wd-arrow { width: 44px; height: 44px; margin-top: -22px; }
  .wd-prev { left: 10px; }
  .wd-next { right: 10px; }
  .wd-title { font-size: 26px; }
  .nd-title { font-size: 24px; }
  .nd-media { height: 220px; }
}

@media (max-width: 374px) {
  .hero-title { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
