/* ==========================================================================
   一點設計 — 全站共用樣式
   ========================================================================== */

/* ---- Design tokens ---- */
:root {
  --ink: #1a1a1a;
  --ink-soft: #2f2c28;
  --white: #ffffff;
  --cream: #f6f1ea;
  --gray-bg: #f3f3f3;
  --sand-1: #ede7de;
  --sand-2: #e9e2d8;
  --sand-3: #e4e1dc;
  --text: #514c45;
  --text-muted: #6c6660;
  --text-faint: #a8a29a;
  --label: #9a948b;
  --label-soft: #b5aea4;
  --link-hover: #8a8378;
  --nav-link: #4a4640;
  --footer-link-hover: #c9c2b6;
  --cream-72: rgba(246, 241, 234, 0.72);
  --cream-66: rgba(246, 241, 234, 0.66);
  --cream-50: rgba(246, 241, 234, 0.5);
  --cream-45: rgba(246, 241, 234, 0.45);
  --line-dark: rgba(26, 26, 26, 0.1);
  --line-light: rgba(255, 255, 255, 0.12);

  --font-serif: "Noto Serif TC", serif;
  --font-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;

  --container: 1360px;
  --gutter: clamp(28px, 6vw, 96px);
  --section-pad: clamp(96px, 14vh, 180px);
  --radius-card: 28px;
  --radius-pill: 100px;
}

/* ---- Base ---- */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
}

::selection {
  background: var(--ink);
  color: var(--cream);
}

input,
textarea,
button {
  font-family: inherit;
}

img {
  max-width: 100%;
}

.page {
  width: 100%;
  overflow-x: hidden;
  background: var(--white);
}

/* ---- Animations ---- */
@keyframes slowzoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.16); }
}

@keyframes om-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}

@keyframes om-mask {
  from { clip-path: inset(0 0 100% 0); transform: scale(1.06); }
  to { clip-path: inset(0 0 0 0); transform: scale(1); }
}

@keyframes om-words {
  from { opacity: 0; clip-path: inset(0 0 110% 0); transform: translateY(0.18em); }
  to { opacity: 1; clip-path: inset(-20% -10% -20% 0); transform: none; }
}

@keyframes om-par {
  from { transform: translate3d(0, -6%, 0); }
  to { transform: translate3d(0, 6%, 0); }
}

/* 進場動畫：main.js 以 IntersectionObserver 加上 .is-visible 觸發。
   只在 html.js（JS 有載入）時先隱藏元素，避免無 JS 時內容看不到。 */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    clip-path 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

html.js [data-reveal="mask"] {
  opacity: 1;
  clip-path: inset(0 0 100% 0);
  transform: scale(1.06);
}

html.js [data-reveal="words"] {
  clip-path: inset(0 0 110% 0);
  transform: translateY(0.18em);
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

html.js [data-reveal="mask"].is-visible,
html.js [data-reveal="words"].is-visible {
  clip-path: inset(-10% -10% -10% -10%);
}

/* 視差滾動（支援 scroll-driven animations 的瀏覽器才有，屬加分效果) */
@supports (animation-timeline: view()) {
  [data-parallax] {
    animation: om-par linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
  [data-parallax],
  .hero-media-zoom {
    animation: none !important;
  }
}

/* ---- Layout helpers ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
}

.section {
  padding: var(--section-pad) var(--gutter);
}

.section--white { background: var(--white); }
.section--cream { background: var(--cream); }
.section--gray { background: var(--gray-bg); }
.section--ink { background: var(--ink); color: var(--white); }

.eyebrow {
  font-size: 12.5px;
  letter-spacing: 0.26em;
  color: var(--label);
  margin-bottom: 32px;
}

.section--ink .eyebrow {
  color: var(--cream-50);
}

.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.4;
  letter-spacing: 0.03em;
}

/* ---- Buttons / pills ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn--dark {
  background: var(--ink);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--ink-soft);
  color: var(--white);
}

.btn--light {
  background: var(--white);
  color: var(--ink);
  border: none;
  padding: 20px 34px;
  font-size: 14px;
  letter-spacing: 0.14em;
}

.btn--light:hover {
  background: var(--cream);
  color: var(--ink);
}

.btn--outline {
  padding: 18px 32px;
  border: 1px solid rgba(26, 26, 26, 0.16);
  font-size: 14px;
  letter-spacing: 0.12em;
}

.btn--outline:hover {
  background: var(--white);
  color: var(--ink);
}

/* ---- Navigation ---- */
@keyframes nav-drop {
  from { opacity: 0; transform: translate(-50%, -16px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* 頁面頂端：100% 全寬橫幅 */
.site-nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-sizing: border-box;
  padding: 18px clamp(24px, 4vw, 48px);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border: 1px solid transparent;
  border-bottom: 1px solid rgba(26, 26, 26, 0.06);
  box-shadow: none;
  animation: nav-drop 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.15s both;
  transition:
    top 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
    width 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-radius 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
    padding 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
    background 0.45s ease,
    border-color 0.45s ease,
    box-shadow 0.45s ease;
}

/* 往下滾動後：收成置中的深色島型 */
.site-nav.is-scrolled {
  top: 14px;
  width: min(var(--container), calc(100% - 48px));
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  background: rgba(26, 26, 26, 0.82);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(26, 26, 26, 0.28);
}

.site-nav.is-scrolled .nav-brand,
.site-nav.is-scrolled .nav-brand-name {
  color: var(--cream);
}

.site-nav.is-scrolled .nav-tag {
  color: var(--cream-50);
}

.site-nav.is-scrolled .nav-links a {
  color: var(--cream-72);
}

.site-nav.is-scrolled .nav-links a:hover {
  color: var(--white);
}

.site-nav.is-scrolled .nav-links a.is-active {
  color: var(--white);
  border-color: var(--white);
}

.site-nav.is-scrolled .nav-links a.nav-cta {
  background: var(--white);
  color: var(--ink);
}

.site-nav.is-scrolled .nav-links a.nav-cta:hover {
  background: var(--cream);
}

.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
  flex-shrink: 0;
}

/* 品牌圓徽：頂部白底時為黑色線稿；捲動成深色島型後用 invert 反白 */
.nav-logo {
  align-self: center;
  height: 34px;
  width: auto;
  display: block;
  flex-shrink: 0;
  transition: height 0.55s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.35s ease;
}

.site-nav.is-scrolled .nav-logo {
  height: 28px;
  filter: invert(1);
}

.nav-brand,
.nav-brand-name,
.nav-tag,
.nav-links a {
  transition: color 0.35s ease;
}

.nav-brand-name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 21px;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.nav-tag {
  font-size: 9.5px;
  letter-spacing: 0.26em;
  color: var(--label);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
  flex-shrink: 1;
}

.nav-links a {
  font-size: 13.5px;
  letter-spacing: 0.06em;
  color: var(--nav-link);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--link-hover);
}

.nav-links a.is-active {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  font-size: 13px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links a.nav-cta {
  color: var(--white);
}

.nav-links a.nav-cta:hover {
  background: var(--ink-soft);
  color: var(--white);
}

/* 漢堡按鈕：桌機隱藏，≤980px 才顯示 */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bar {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.25s ease;
}

.nav-toggle-bar:nth-child(1) { transform: translateY(-4px); }
.nav-toggle-bar:nth-child(2) { transform: translateY(4px); }

/* 捲動深色島型時漢堡轉淺色 */
.site-nav.is-scrolled .nav-toggle { color: var(--cream); }

/* 選單開啟：兩條線交叉成 X、顏色固定為淺色（overlay 為暗底） */
.site-nav.is-menu-open .nav-toggle { color: var(--cream); }
.site-nav.is-menu-open .nav-toggle-bar:nth-child(1) { transform: rotate(45deg); }
.site-nav.is-menu-open .nav-toggle-bar:nth-child(2) { transform: rotate(-45deg); }

@media (max-width: 1240px) {
  .nav-tag { display: none; }
}

@media (max-width: 1100px) {
  .nav-links { gap: 20px; }
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }

  /* 品牌與漢堡浮在 overlay 之上 */
  .nav-brand { position: relative; z-index: 2; }

  /* 選單開啟時，頂列還原成透明全寬，避免深色島型蓋在淺底選單上。
     並清除 translateX 置中的 transform——否則被 transform 的祖先會成為
     fixed 子元素的定位基準，導致全螢幕 overlay 只縮在 nav 範圍內。 */
  .site-nav.is-menu-open {
    top: 0;
    left: 0;
    width: 100%;
    /* 動畫的 both 填充會殘留 translateX(-50%) 且優先序高於一般宣告，
       須連同 animation 一起清除，transform: none 才能生效 */
    animation: none;
    transform: none;
    /* backdrop-filter 亦會為 fixed 子元素建立 containing block，
       不清除的話全螢幕 overlay 會被限縮在 nav 盒內 */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    padding: 18px clamp(24px, 4vw, 48px);
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }
  /* 選單為暗底：品牌與 logo 轉為淺色/反白 */
  .site-nav.is-menu-open .nav-brand,
  .site-nav.is-menu-open .nav-brand-name { color: var(--cream); }
  .site-nav.is-menu-open .nav-logo { filter: invert(1); }

  /* nav-links 變成全螢幕選單（暗底） */
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 96px 24px 56px;
    box-sizing: border-box;
    background: var(--ink);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 1;
  }

  .site-nav.is-menu-open .nav-links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links a {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(26px, 7vw, 34px);
    font-weight: 300;
    letter-spacing: 0.1em;
    padding: 14px 0;
  }

  /* 連結顏色掛在 is-menu-open 下提高權重，蓋過捲動島型的淺色連結配色 */
  .site-nav.is-menu-open .nav-links a { color: var(--cream); }
  .site-nav.is-menu-open .nav-links a.is-active {
    color: var(--cream);
    border-bottom: none;
    padding-bottom: 14px;
    opacity: 0.5;
  }

  /* CTA 在選單底部做成淺色膠囊鈕，在暗底上凸顯 */
  .nav-links a.nav-cta {
    margin-top: 28px;
    padding: 16px 44px;
    font-family: var(--font-sans);
    font-size: 15px;
    letter-spacing: 0.1em;
    border-radius: var(--radius-pill);
  }
  .site-nav.is-menu-open .nav-links a.nav-cta {
    background: var(--cream);
    color: var(--ink);
  }
}

.btn span[aria-hidden] {
  transition: transform 0.35s ease;
}

.btn:hover span[aria-hidden] {
  transform: translateX(5px);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  width: 100%;
  overflow: hidden;
  background: var(--ink);
}

.hero--short {
  height: 82vh;
  min-height: 620px;
}

.hero-media {
  position: absolute;
  left: 0;
  right: 0;
  top: -18%;
  height: 136%;
  will-change: transform;
}

.hero-media-zoom {
  position: absolute;
  inset: 0;
  animation: slowzoom 24s ease-out forwards;
  background: #211f1c;
}

.hero-img,
.cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 首頁主視覺輪播的兩層圖片（由 js/main.js 控制透明度交替） */
.hero-img--fade {
  transition: opacity 1.2s ease;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.5) 0%, rgba(26, 26, 26, 0.18) 32%, rgba(26, 26, 26, 0.62) 62%, rgba(26, 26, 26, 0.88) 100%);
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  box-sizing: border-box;
  padding: 0 var(--gutter) clamp(48px, 7vh, 88px);
}

.hero-kicker {
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--cream-72);
  margin-bottom: 26px;
}

.hero-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(46px, 7vw, 120px);
  line-height: 1.14;
  letter-spacing: 0.04em;
  color: var(--white);
  max-width: 14em;
}

.hero-title .accent {
  color: var(--cream);
}

/* 只在手機生效的斷行：桌機不換行，手機讓每個短句各佔一行 */
.br-sm {
  display: none;
}

@media (max-width: 720px) {
  .br-sm {
    display: inline;
  }
}

/* 桌機版標題縮為原本的 1/3（手機／平板維持原尺寸，太小會看不清） */
@media (min-width: 1025px) {
  .hero-title {
    font-size: clamp(24px, 2.33vw, 40px);
  }
}

.hero-actions {
  margin-top: 44px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-note {
  margin: 0;
  max-width: 22em;
  font-size: 15px;
  line-height: 2;
  color: var(--cream-72);
}

.hero-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: rgba(246, 241, 234, 0.7);
  margin-bottom: 24px;
}

.hero-back:hover {
  color: var(--white);
}

.hero-tags {
  margin-top: 26px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-tag {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--white);
}

/* ---- 首頁：設計理念 ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(48px, 7vw, 120px);
  align-items: center;
}

.about-grid .eyebrow {
  margin-bottom: 40px;
}

.about-title {
  margin: 0 0 40px;
  max-width: 14em;
}

.about-text {
  margin: 0 0 26px;
  font-size: 16px;
  line-height: 2.1;
  color: var(--text);
  max-width: 30em;
}

.about-quote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.9;
  letter-spacing: 0.06em;
  color: var(--ink);
  max-width: 30em;
}

.about-figure {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--sand-2);
}

/* ---- 首頁：服務項目 ---- */
.services-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: clamp(48px, 7vh, 88px);
}

.services-head .section-title {
  max-width: 16em;
}

.services-lede {
  margin: 0;
  max-width: 20em;
  font-size: 15px;
  line-height: 2.1;
  color: var(--text-muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  border-radius: 24px;
  background: var(--gray-bg);
  padding: 40px 32px 44px;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  transition: background 0.5s ease, box-shadow 0.5s ease, transform 0.5s ease;
}

.service-card:hover {
  background: var(--cream);
  box-shadow: 0 20px 50px rgba(26, 26, 26, 0.07);
  transform: translateY(-6px);
}

.service-card-num {
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.2em;
  color: var(--text-faint);
}

.service-card-title {
  margin: 56px 0 16px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 25px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.service-card-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 2;
  color: var(--text-muted);
}

/* 深色卡片樣式：目前四張服務卡片都用淺灰底，此修飾類別保留備用 */
.service-card--dark {
  background: var(--ink);
}

.service-card--dark:hover {
  background: var(--ink);
  box-shadow: 0 20px 50px rgba(26, 26, 26, 0.24);
}

.service-card--dark .service-card-num { color: var(--cream-50); }
.service-card--dark .service-card-title { color: var(--white); }
.service-card--dark .service-card-text { color: var(--cream-66); }

/* ---- 作品卡片（首頁精選） ---- */
.featured-title {
  margin: 0 0 clamp(48px, 7vh, 88px);
  max-width: 16em;
}

.featured-row {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

.featured-row--wide-left { grid-template-columns: 1.35fr 1fr; }
.featured-row--wide-right { grid-template-columns: 1fr 1.35fr; }

.featured-card {
  display: block;
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: var(--sand-3);
}

.featured-card img {
  transition: transform 1.1s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.featured-card:hover img {
  transform: scale(1.05);
}

.featured-card-label {
  position: absolute;
  z-index: 2;
  left: 28px;
  bottom: 26px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  gap: 14px;
  align-items: baseline;
}

.featured-card-name {
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.featured-card-type {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.featured-more {
  margin-top: 56px;
  display: flex;
  justify-content: center;
}

/* ---- 首頁：服務流程 ---- */
.process-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(48px, 7vw, 110px);
}

.process-title {
  margin: 0 0 28px;
  max-width: 10em;
}

.process-lede {
  margin: 0;
  font-size: 15px;
  line-height: 2.1;
  color: var(--text-muted);
  max-width: 20em;
}

.process-steps {
  display: flex;
  flex-direction: column;
}

.process-step {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  padding: 38px 0;
  border-top: 1px solid var(--line-dark);
}

.process-step:last-child {
  border-bottom: 1px solid var(--line-dark);
}

.process-step-num {
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.16em;
  color: var(--label-soft);
  padding-top: 8px;
}

.process-step-title {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0.06em;
}

.process-step-list {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
  font-size: 15px;
  line-height: 2;
  color: var(--text-muted);
  max-width: 34em;
}

/* ---- 首頁：收費標準 ---- */
.fees .container {
  max-width: 1100px;
}

.fees-title {
  margin: 0 0 clamp(40px, 6vh, 64px);
}

.fees-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: clamp(24px, 3vw, 44px);
  box-shadow: 0 20px 60px rgba(26, 26, 26, 0.05);
}

.fees-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  align-items: baseline;
}

.fees-row--head {
  padding: 0 8px 20px;
  border-bottom: 1px solid rgba(26, 26, 26, 0.12);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  color: var(--label);
}

.fees-row--body {
  padding: 30px 8px;
  border-bottom: 1px solid rgba(26, 26, 26, 0.08);
}

.fees-row--body:last-child {
  padding-bottom: 20px;
  border-bottom: none;
}

.fees-type {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 0.06em;
}

.fees-price {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
}

.fees-unit {
  font-size: 14px;
  color: var(--text-muted);
}

.fees-percent {
  font-size: 18px;
}

.fees-note {
  margin: 26px 8px 0;
  font-size: 14px;
  line-height: 2;
  color: var(--link-hover);
}

/* ---- 聯絡區 ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(48px, 7vw, 120px);
  align-items: start;
}

.contact-title {
  margin: 0 0 32px;
  font-size: clamp(32px, 4.4vw, 66px);
  line-height: 1.3;
  max-width: 12em;
}

.contact-lede {
  margin: 0 0 48px;
  font-size: 16px;
  line-height: 2.1;
  color: var(--cream-66);
  max-width: 24em;
}

.contact-list {
  display: grid;
  gap: 22px;
  max-width: 30em;
}

.contact-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 20px;
  align-items: baseline;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-light);
}

.contact-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-item dt {
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: var(--cream-45);
}

.contact-item dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
}

.contact-item dd.serif {
  font-family: var(--font-serif);
  font-size: 19px;
  letter-spacing: 0.08em;
}

.contact-item a {
  color: var(--white);
}

.contact-item a:hover {
  color: var(--footer-link-hover);
}

.contact-form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-card);
  padding: clamp(32px, 3.5vw, 48px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: grid;
  gap: 26px;
}

.contact-form label {
  display: grid;
  gap: 10px;
}

.contact-form .field-label {
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: var(--cream-50);
}

.contact-form input,
.contact-form textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-size: 16px;
  padding: 10px 0;
  outline: none;
  resize: none;
  line-height: 1.9;
}

.contact-form button {
  margin-top: 12px;
  padding: 20px 32px;
  justify-content: center;
}

/* ---- 頁尾 ---- */
.footer-bar {
  margin-top: clamp(72px, 10vh, 120px);
  padding-top: 32px;
  border-top: 1px solid var(--line-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* 頁尾為深色底，黑色線稿 logo 以 invert 反白 */
.footer-logo {
  height: 40px;
  width: auto;
  display: block;
  flex-shrink: 0;
  filter: invert(1);
  opacity: 0.9;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 17px;
  letter-spacing: 0.16em;
}

.footer-links {
  display: flex;
  gap: 26px;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--cream-50);
  align-items: center;
}

.footer-links a {
  color: var(--cream-50);
}

.footer-links a:hover {
  color: var(--white);
}

/* ---- 聯絡區白底版 ----
   首頁聯絡區改為白底，因此把原本為深色底設計的配色逐項改成淺色底對應值。
   全部限定在 .contact--light 之下，作品頁的深色頁尾（共用 .footer-bar /
   .footer-links / .footer-logo）不受影響。 */
.contact--light .contact-lede {
  color: var(--text);
}

.contact--light .contact-item {
  border-bottom-color: var(--line-dark);
}

.contact--light .contact-item dt {
  color: var(--label);
}

.contact--light .contact-item a {
  color: var(--ink);
}

.contact--light .contact-item a:hover {
  color: var(--link-hover);
}

.contact--light .contact-form {
  background: var(--cream);
  border-color: var(--line-dark);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.contact--light .contact-form .field-label {
  color: var(--label);
}

.contact--light .contact-form input,
.contact--light .contact-form textarea {
  color: var(--ink);
  border-bottom-color: rgba(26, 26, 26, 0.18);
}

.contact--light .contact-form input::placeholder,
.contact--light .contact-form textarea::placeholder {
  color: var(--text-faint);
}

/* 白底上的送出鈕改為深色實心（沿用 .btn--light 的內距與字級） */
.contact--light .contact-form button {
  background: var(--ink);
  color: var(--white);
}

.contact--light .contact-form button:hover {
  background: var(--ink-soft);
  color: var(--white);
}

.contact--light .form-note {
  color: var(--text-muted);
}

.contact--light .form-note strong {
  color: var(--ink);
}

.contact--light .footer-bar {
  border-top-color: var(--line-dark);
}

/* 白底不需要把黑色線稿 logo 反白 */
.contact--light .footer-logo {
  filter: none;
  opacity: 1;
}

.contact--light .footer-links,
.contact--light .footer-links a {
  color: var(--label);
}

.contact--light .footer-links a:hover {
  color: var(--ink);
}

/* ---- 頁尾洽詢（作品頁） ---- */
.footer-cta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-cta-title {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 54px);
  line-height: 1.35;
  max-width: 14em;
}

.footer-cta-info {
  display: grid;
  gap: 14px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--cream-72);
}

.footer-cta-info a {
  color: var(--cream-72);
}

.footer-cta-info a:hover {
  color: var(--white);
}

.footer-cta-info .tel {
  font-size: 18px;
  color: var(--white);
  letter-spacing: 0.06em;
}

.footer-cta-info .tel:hover {
  color: var(--footer-link-hover);
}

/* ---- 作品列表頁 ---- */
.works-header {
  background: var(--cream);
  padding: clamp(150px, 20vh, 230px) var(--gutter) clamp(56px, 8vh, 92px);
}

.works-header .eyebrow {
  margin-bottom: 34px;
}

.works-title {
  margin: 0 0 40px;
  font-size: clamp(34px, 5vw, 74px);
  line-height: 1.32;
  max-width: 16em;
}

.works-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}

.works-lede {
  margin: 0;
  font-size: 16px;
  line-height: 2.1;
  color: var(--text);
  max-width: 26em;
}

.works-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(26, 26, 26, 0.16);
  background: transparent;
  color: var(--nav-link);
  font-size: 13.5px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.filter-btn:hover {
  border-color: var(--ink);
}

.filter-btn.is-active {
  background: var(--ink);
  color: var(--white);
}

.works-section {
  background: var(--white);
  padding: clamp(64px, 9vh, 110px) var(--gutter) clamp(96px, 14vh, 170px);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 3vw, 48px) 24px;
}

.work-card {
  display: block;
}

.work-card[hidden] {
  display: none;
}

.work-card-media {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--sand-1);
}

.work-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.work-card:hover .work-card-media img {
  transform: scale(1.05);
}

.work-card-type {
  position: absolute;
  z-index: 2;
  left: 22px;
  top: 22px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--nav-link);
}

.work-card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding-top: 24px;
}

.work-card-name {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(21px, 1.8vw, 27px);
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.work-card-meta {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--label);
  white-space: nowrap;
}

.work-card-note {
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 2;
  color: var(--text-muted);
  max-width: 30em;
}

.works-disclaimer {
  margin: clamp(56px, 8vh, 88px) 0 0;
  font-size: 13.5px;
  line-height: 2;
  color: var(--text-faint);
  text-align: center;
}

/* ---- 作品內頁 ---- */
.project-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(48px, 7vw, 110px);
  align-items: start;
}

.project-title {
  margin: 0 0 36px;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.45;
  max-width: 15em;
}

.project-text {
  margin: 0 0 26px;
  font-size: 16px;
  line-height: 2.1;
  color: var(--text);
  max-width: 30em;
}

.project-text:last-of-type {
  margin-bottom: 0;
}

.project-card {
  background: var(--white);
  border-radius: 26px;
  padding: clamp(28px, 3vw, 44px);
  box-shadow: 0 20px 60px rgba(26, 26, 26, 0.05);
}

.project-specs {
  margin: 0;
  display: grid;
}

.project-spec {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(26, 26, 26, 0.08);
  align-items: baseline;
}

.project-spec:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.project-spec dt {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--label);
}

.project-spec dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
}

.project-card .btn {
  display: flex;
  justify-content: center;
  margin-top: 32px;
  padding: 18px 28px;
  font-size: 14px;
  letter-spacing: 0.12em;
}

.gallery {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
}

.gallery figure {
  margin: 0;
}

.gallery-media {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--sand-1);
}

.gallery-media--wide { aspect-ratio: 16 / 9; }
.gallery-media--tall { aspect-ratio: 4 / 5; }
.gallery-media--panorama { aspect-ratio: 21 / 9; }

.gallery-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.4vw, 32px);
}

.gallery figcaption {
  padding-top: 18px;
  font-size: 14px;
  line-height: 2;
  color: var(--text-muted);
}

.next-project {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.next-project .eyebrow {
  margin-bottom: 18px;
}

.next-project-link {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(26px, 3vw, 44px);
  letter-spacing: 0.04em;
  line-height: 1.4;
}

/* ---- 響應式（原版未處理的行動版排版） ---- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid,
  .process-grid,
  .contact-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .services-grid,
  .works-grid,
  .featured-row--wide-left,
  .featured-row--wide-right,
  .gallery-pair {
    grid-template-columns: 1fr;
  }
  .fees-row {
    gap: 12px;
  }
  .process-step {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ---- 右下角快速聯絡按鈕 ---- */
@keyframes qc-pop {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}

.quick-contact {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: grid;
  gap: 12px;
  justify-items: end;
}

.quick-contact-menu {
  display: grid;
  gap: 10px;
  justify-items: end;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.quick-contact.is-open .quick-contact-menu {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.quick-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink);
  font-size: 13.5px;
  letter-spacing: 0.06em;
  box-shadow: 0 12px 36px rgba(26, 26, 26, 0.16);
  border: 1px solid rgba(26, 26, 26, 0.06);
  transition: transform 0.3s ease, background 0.3s ease;
}

.quick-contact-item:hover {
  background: var(--cream);
  color: var(--ink);
  transform: translateX(-4px);
}

.quick-contact-toggle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: var(--ink);
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 14px 40px rgba(26, 26, 26, 0.3);
  animation: qc-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1s both;
  transition: transform 0.3s ease, background 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.quick-contact-toggle:hover {
  transform: scale(1.08);
  background: var(--ink-soft);
}

.quick-contact-toggle .icon-open {
  font-size: 40px;
  line-height: 1;
  display: block;
  /* ✆ 字符墨跡偏低，下移補償讓它在圓鈕內視覺置中 */
  transform: translateY(-5px);
}
.quick-contact-toggle .icon-close { display: none; }
.quick-contact.is-open .icon-open { display: none; }
.quick-contact.is-open .icon-close { display: inline; }

/* ---- 表單送出後的提示 ---- */
.form-note {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--cream-66);
}

.form-note strong {
  color: var(--white);
  letter-spacing: 0.04em;
}

/* ---- 照片牆：自然比例、兩欄網格（第一張滿版） ---- */
.gallery--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.4vw, 32px);
  align-items: start;
}

.gallery--grid > figure:first-child {
  grid-column: 1 / -1;
}

.gallery-media--natural {
  aspect-ratio: auto;
  min-height: 220px;
  background: var(--sand-1);
}

.gallery-media--natural img {
  position: static;
  display: block;
  width: 100%;
  height: auto;
}

.gallery-media--natural {
  cursor: zoom-in;
  transition: opacity 0.3s ease;
}

.gallery-media--natural:hover {
  opacity: 0.92;
}

@media (max-width: 720px) {
  .gallery--grid {
    grid-template-columns: 1fr;
  }
}


/* ---- 圖片燈箱（gallery mode） ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-rows: 1fr auto auto;
  background: rgba(20, 19, 18, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: clamp(56px, 8vh, 80px) clamp(72px, 9vw, 130px) 16px;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  opacity: 1;
  transform: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.lightbox-stage img.is-switching {
  opacity: 0;
  transform: scale(0.985);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.06);
}

.lightbox-close {
  top: 20px;
  right: 22px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  transform: translateY(-50%) scale(1.06);
}

.lightbox-info {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 16px;
  padding: 10px clamp(24px, 6vw, 96px) 6px;
  text-align: center;
}

.lightbox-caption {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--cream);
  letter-spacing: 0.04em;
}

.lightbox-count {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: rgba(246, 241, 234, 0.5);
  white-space: nowrap;
}

.lightbox-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px clamp(20px, 4vw, 48px) 18px;
  overflow-x: auto;
  justify-content: safe center;
  scrollbar-width: thin;
}

.lightbox-thumb {
  flex: 0 0 auto;
  width: 86px;
  height: 58px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.25s ease, border-color 0.25s ease;
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox-thumb.is-active,
.lightbox-thumb:hover {
  opacity: 1;
}

.lightbox-thumb.is-active {
  border-color: var(--cream);
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .lightbox-stage {
    padding: 60px 12px 10px;
  }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-prev, .lightbox-next { width: 42px; height: 42px; }
  .lightbox-thumb { width: 64px; height: 44px; }
}
