/* ============================================================
   網戰 NETWAR — 淺色極簡質感設計系統
   ============================================================ */

:root {
  --paper: #f7f4ee;
  --paper-soft: #efeae1;
  --ink: #1c1a17;
  --ink-soft: #55504a;
  --ink-faint: #8d867d;
  --line: rgba(28, 26, 23, 0.12);
  --accent: #b34a2a;
  --accent-deep: #8f3a20;
  --white: #fffdf9;
  --serif: "Noto Serif TC", "EB Garamond", serif;
  --sans: "Noto Sans TC", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--white); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- 紙張紋理 ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 自訂游標 ---------- */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), opacity 0.3s;
}
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(179, 74, 42, 0.5);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease), height 0.35s var(--ease), border-color 0.35s;
}
.cursor-ring.is-hover { width: 64px; height: 64px; border-color: rgba(179, 74, 42, 0.9); }
@media (hover: none), (max-width: 900px) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- 進場遮幕 ---------- */
.veil {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 1s var(--ease) 0.7s;
}
.veil span {
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 600;
  color: var(--paper);
  letter-spacing: 0.5em;
  margin-right: -0.5em;
  opacity: 0;
  animation: veilIn 0.9s var(--ease) 0.1s forwards;
}
body.is-loaded .veil { transform: translateY(-100%); }
@keyframes veilIn {
  from { opacity: 0; letter-spacing: 1em; }
  to   { opacity: 1; letter-spacing: 0.5em; }
}

/* ---------- 導覽列 ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem clamp(1.2rem, 4vw, 3.5rem);
  transition: background 0.5s, box-shadow 0.5s, padding 0.5s;
}
.site-header.is-scrolled {
  background: rgba(247, 244, 238, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  font-family: var(--serif);
}
.brand .zh {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.35em;
}
.brand .en {
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.brand .zh em {
  font-style: normal;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  align-items: center;
}
.nav-links a {
  position: relative;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  padding: 0.3rem 0;
  transition: color 0.3s;
}
.nav-links a .num {
  font-family: var(--serif);
  font-size: 0.6rem;
  color: var(--accent);
  margin-right: 0.35em;
  vertical-align: super;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-cta {
  border: 1px solid var(--ink);
  padding: 0.55rem 1.4rem !important;
  border-radius: 999px;
  font-size: 0.8rem !important;
  transition: background 0.4s, color 0.4s !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--ink); color: var(--paper) !important; }

/* 漢堡 */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  z-index: 1001;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.4s var(--ease), opacity 0.3s, top 0.4s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle.is-open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    background: var(--paper);
    clip-path: circle(0% at calc(100% - 32px) 32px);
    transition: clip-path 0.7s var(--ease);
  }
  .nav-links.is-open { clip-path: circle(150% at calc(100% - 32px) 32px); }
  .nav-links a { font-size: 1.3rem; letter-spacing: 0.3em; }
}

/* ---------- 版面容器 ---------- */
.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

section { position: relative; z-index: 2; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem clamp(1.2rem, 4vw, 3.5rem) 4rem;
  position: relative;
  overflow: hidden;
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.45em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 2.2rem;
}
.hero-kicker::before {
  content: "";
  width: 48px; height: 1px;
  background: var(--accent);
}
.hero-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 6.5rem);
  line-height: 1.25;
  letter-spacing: 0.08em;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease);
}
body.is-loaded .hero-title .line > span { transform: translateY(0); }
body.is-loaded .hero-title .line:nth-child(2) > span { transition-delay: 0.12s; }
body.is-loaded .hero-title .line:nth-child(3) > span { transition-delay: 0.24s; }
.hero-title .accent { color: var(--accent); }
.hero-sub {
  margin-top: 2.4rem;
  max-width: 34em;
  color: var(--ink-soft);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s var(--ease) 0.6s, transform 1s var(--ease) 0.6s;
}
body.is-loaded .hero-sub { opacity: 1; transform: none; }
.hero-actions {
  margin-top: 3rem;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s var(--ease) 0.8s, transform 1s var(--ease) 0.8s;
}
body.is-loaded .hero-actions { opacity: 1; transform: none; }

/* 直排文字裝飾 */
.hero-vertical {
  position: absolute;
  right: clamp(1rem, 4vw, 3.5rem);
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 0.8rem;
  letter-spacing: 0.6em;
  color: var(--ink-faint);
  display: flex;
  gap: 1.6rem;
}
.hero-vertical::after {
  content: "";
  width: 1px;
  height: 90px;
  background: var(--line);
  align-self: center;
}
@media (max-width: 900px) { .hero-vertical { display: none; } }

/* 大字浮水印 */
.hero-watermark {
  position: absolute;
  bottom: -0.12em;
  left: -0.03em;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(6rem, 22vw, 18rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(28, 26, 23, 0.07);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* 捲動提示 */
.scroll-hint {
  position: absolute;
  bottom: 2.4rem;
  left: clamp(1.2rem, 4vw, 3.5rem);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.scroll-hint .bar {
  width: 60px; height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.scroll-hint .bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  animation: scrollBar 2.2s var(--ease) infinite;
}
@keyframes scrollBar {
  0% { transform: translateX(-100%); }
  55% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 2.2rem;
  border-radius: 999px;
  font-size: 0.88rem;
  letter-spacing: 0.22em;
  border: 1px solid var(--ink);
  position: relative;
  overflow: hidden;
  transition: color 0.45s var(--ease), border-color 0.45s;
  isolation: isolate;
  cursor: pointer;
  background: none;
  font-family: var(--sans);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
  z-index: -1;
}
.btn:hover { color: var(--paper); }
.btn:hover::before { transform: translateY(0); }
.btn.btn-solid { background: var(--ink); color: var(--paper); }
.btn.btn-solid::before { background: var(--accent); transform: translateY(101%); }
.btn.btn-solid:hover { border-color: var(--accent); }
.btn.btn-solid:hover::before { transform: translateY(0); }
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(6px); }

/* ---------- 跑馬燈 ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 1.3rem 0;
  background: var(--white);
}
.marquee-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.3em;
  color: var(--ink-soft);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3.5rem;
}
.marquee-track span::after {
  content: "◆";
  font-size: 0.5rem;
  color: var(--accent);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Section 標頭 ---------- */
.section { padding: clamp(5rem, 10vw, 8.5rem) 0; }
.section-head { margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.section-label {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
}
.section-label::before {
  content: "";
  width: 36px; height: 1px;
  background: var(--accent);
}
.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  line-height: 1.4;
  letter-spacing: 0.08em;
}
.section-desc {
  margin-top: 1.4rem;
  color: var(--ink-soft);
  max-width: 40em;
}
.section-head.is-split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}

/* ---------- 服務卡片 ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service-card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.6rem 2.2rem;
  position: relative;
  overflow: hidden;
  transition: background 0.5s var(--ease);
  background: transparent;
}
.service-card::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 2px; height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease);
}
.service-card:hover { background: var(--white); }
.service-card:hover::after { transform: scaleY(1); }
.service-num {
  font-family: var(--serif);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.2em;
}
.service-card h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin: 1.1rem 0 0.3rem;
}
.service-card .en {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 1.1rem;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.9;
}
.service-card .more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--ink);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.service-card:hover .more { opacity: 1; transform: none; }

/* ---------- 理念區 ---------- */
.philosophy {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.philosophy .section-title { color: var(--paper); }
.philosophy-quote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.6vw, 2.6rem);
  line-height: 1.9;
  letter-spacing: 0.14em;
  font-weight: 600;
  max-width: 24em;
}
.philosophy-quote em {
  font-style: normal;
  color: var(--accent);
  border-bottom: 1px solid rgba(179, 74, 42, 0.5);
}
.philosophy-note {
  margin-top: 2.6rem;
  color: rgba(247, 244, 238, 0.6);
  max-width: 36em;
  font-size: 0.95rem;
}
.philosophy .big-bg {
  position: absolute;
  right: -2%;
  bottom: -14%;
  font-family: var(--serif);
  font-size: clamp(8rem, 26vw, 22rem);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(247, 244, 238, 0.08);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* ---------- 數據 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 4.5rem;
  border-top: 1px solid rgba(247, 244, 238, 0.15);
  padding-top: 3rem;
}
.stat .num {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1;
  color: var(--paper);
}
.stat .num i {
  font-style: normal;
  color: var(--accent);
  font-size: 0.6em;
  margin-left: 0.15em;
}
.stat .label {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: rgba(247, 244, 238, 0.55);
}

/* ---------- 作品卡片 ---------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: clamp(1.5rem, 3vw, 2.8rem);
}
.work-card {
  display: block;
  position: relative;
}
.work-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--paper-soft), #e2dbce);
}
.work-thumb .ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(28, 26, 23, 0.18);
  letter-spacing: 0.2em;
}
.work-thumb img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 1s var(--ease), filter 0.6s;
  filter: saturate(0.92);
}
.work-card:hover .work-thumb img {
  transform: scale(1.05);
  filter: saturate(1.05);
}
.work-thumb::after {
  content: "VISIT ↗";
  position: absolute;
  right: 14px; bottom: 14px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  z-index: 3;
}
.work-card:hover .work-thumb::after { opacity: 1; transform: none; }
.work-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}
.work-meta h3 {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}
.work-card:hover .work-meta h3 { color: var(--accent); }
.work-meta .cat {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
  white-space: nowrap;
  text-transform: uppercase;
}
.work-desc {
  margin-top: 0.9rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.85;
}

/* 首頁精選作品（大圖交錯） */
.featured-works { display: grid; gap: clamp(3rem, 7vw, 5.5rem); }
.featured-work {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: center;
}
.featured-work:nth-child(even) .work-thumb-wrap { order: 2; }
.featured-work .work-thumb { aspect-ratio: 16 / 10; }
.featured-work .idx {
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.25em;
}
.featured-work h3 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin: 1rem 0 0.4rem;
}
.featured-work .cat {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.featured-work p {
  margin-top: 1.3rem;
  color: var(--ink-soft);
  font-size: 0.93rem;
}
.featured-work .link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.8rem;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.3rem;
  transition: color 0.3s, border-color 0.3s, gap 0.3s var(--ease);
}
.featured-work .link:hover { color: var(--accent); border-color: var(--accent); gap: 1rem; }
@media (max-width: 800px) {
  .featured-work { grid-template-columns: 1fr; }
  .featured-work:nth-child(even) .work-thumb-wrap { order: 0; }
}

/* ---------- 流程 ---------- */
.process-list { border-top: 1px solid var(--line); }
.process-item {
  display: grid;
  grid-template-columns: 90px 1fr 2fr;
  gap: clamp(1rem, 3vw, 3rem);
  padding: 2.4rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: background 0.4s, padding-left 0.5s var(--ease);
}
.process-item:hover { background: var(--white); padding-left: 1.2rem; }
.process-item .no {
  font-family: var(--serif);
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 0.15em;
}
.process-item h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.process-item p { color: var(--ink-soft); font-size: 0.9rem; }
@media (max-width: 700px) {
  .process-item { grid-template-columns: 60px 1fr; }
  .process-item p { grid-column: 2; }
}

/* ---------- CTA 帶 ---------- */
.cta-band {
  text-align: center;
  padding: clamp(5rem, 10vw, 8rem) 1.5rem;
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.cta-band h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.6;
}
.cta-band p {
  margin: 1.6rem auto 2.6rem;
  color: var(--ink-soft);
  max-width: 36em;
}

/* ---------- 頁尾 ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(247, 244, 238, 0.75);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem;
  position: relative;
  z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(247, 244, 238, 0.12);
}
.footer-brand .zh {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--paper);
}
.footer-brand .zh em { font-style: normal; color: var(--accent); }
.footer-brand p {
  margin-top: 1.2rem;
  font-size: 0.88rem;
  max-width: 30em;
  color: rgba(247, 244, 238, 0.55);
}
.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(247, 244, 238, 0.45);
  margin-bottom: 1.4rem;
  font-weight: 500;
}
.footer-col a, .footer-col li {
  display: block;
  font-size: 0.9rem;
  padding: 0.35rem 0;
  color: rgba(247, 244, 238, 0.75);
  transition: color 0.3s, padding-left 0.3s var(--ease);
}
.footer-col a:hover { color: var(--paper); padding-left: 0.5rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: rgba(247, 244, 238, 0.4);
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
}

/* ---------- 內頁 Hero ---------- */
.page-hero {
  padding: clamp(9rem, 16vw, 13rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.page-hero .crumbs {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}
.page-hero .crumbs em { font-style: normal; color: var(--accent); }
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  letter-spacing: 0.1em;
  line-height: 1.35;
}
.page-hero .lead {
  margin-top: 1.8rem;
  color: var(--ink-soft);
  max-width: 38em;
}
.page-hero .watermark {
  position: absolute;
  right: -0.02em;
  bottom: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(5rem, 16vw, 12rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(28, 26, 23, 0.07);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* ---------- 服務內頁詳細 ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 110px 1fr 1.4fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2.8rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--line);
}
.service-detail:last-of-type { border-bottom: 1px solid var(--line); }
.service-detail .no {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
  font-weight: 700;
  line-height: 1;
}
.service-detail h2 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.6;
}
.service-detail h2 .en {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-top: 0.6rem;
  font-weight: 400;
  font-family: var(--sans);
}
.service-detail .body p { color: var(--ink-soft); font-size: 0.95rem; }
.service-detail .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
}
.service-detail .tags span {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  padding: 0.42rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.service-detail .tags span:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--white);
}
@media (max-width: 800px) {
  .service-detail { grid-template-columns: 1fr; gap: 1.2rem; }
}

/* ---------- 聯絡頁 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info-block { border-top: 1px solid var(--line); }
.contact-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-row .k {
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.contact-row .v {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  transition: color 0.3s;
}
a.contact-row:hover .v { color: var(--accent); }

.line-cta {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.7rem;
  transition: border-color 0.35s, transform 0.35s var(--ease), box-shadow 0.35s;
}
.line-cta:hover {
  border-color: #06c755;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -18px rgba(28, 26, 23, 0.35);
}
.line-cta .badge {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: #06c755;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.line-cta .t { font-weight: 500; letter-spacing: 0.1em; }
.line-cta .s { font-size: 0.78rem; color: var(--ink-faint); }

/* 表單 */
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 3rem);
}
.form-field { position: relative; margin-bottom: 2rem; }
.form-field label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.6rem;
}
.form-field label .req { color: var(--accent); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 0.7rem 0.1rem;
  font-family: var(--sans);
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s;
  border-radius: 0;
}
.form-field textarea { resize: vertical; min-height: 120px; line-height: 1.8; }
.form-field .focus-line {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.form-field input:focus ~ .focus-line,
.form-field select:focus ~ .focus-line,
.form-field textarea:focus ~ .focus-line { transform: scaleX(1); }
.form-note {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-bottom: 1.6rem;
}
.form-status {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--accent-deep);
  min-height: 1.5em;
}

/* ---------- Reveal 動畫 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ============================================================
   互動強化
   ============================================================ */

/* ---------- 捲動進度條 ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  z-index: 1300;
  pointer-events: none;
}

/* ---------- 手機選單修正：backdrop-filter 會困住 fixed 子元素 ---------- */
body.nav-open { overflow: hidden; }
body.nav-open .site-header {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}
@media (max-width: 900px) {
  .nav-links a { opacity: 0; transform: translateY(18px); transition: opacity 0.4s, transform 0.5s var(--ease); }
  .nav-links.is-open a { opacity: 1; transform: none; }
  .nav-links.is-open a:nth-child(1) { transition-delay: 0.15s; }
  .nav-links.is-open a:nth-child(2) { transition-delay: 0.22s; }
  .nav-links.is-open a:nth-child(3) { transition-delay: 0.29s; }
  .nav-links.is-open a:nth-child(4) { transition-delay: 0.36s; }
  .nav-links::before {
    content: "MENU";
    position: absolute;
    bottom: 8vh;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--serif);
    font-size: 4.5rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px rgba(28, 26, 23, 0.08);
    letter-spacing: 0.2em;
    pointer-events: none;
  }
}

/* ---------- Hero 幾何色塊 ---------- */
.hero-deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.hero > .hero-kicker, .hero > .hero-title, .hero > .hero-sub, .hero > .hero-actions { position: relative; z-index: 2; }
.hero-deco > * { position: absolute; will-change: transform; }
.hero-deco .blk-a {
  top: 10%; right: -8%;
  width: 36vw; height: 36vw;
  max-width: 540px; max-height: 540px;
  background: var(--paper-soft);
  transform: rotate(8deg);
}
.hero-deco .blk-b {
  top: 24%; right: 16%;
  width: clamp(70px, 9vw, 130px);
  height: clamp(70px, 9vw, 130px);
  background: var(--accent);
  opacity: 0.85;
  mix-blend-mode: multiply;
  animation: blkFloat 7s ease-in-out infinite;
}
.hero-deco .blk-c {
  bottom: 20%; right: 30%;
  width: clamp(50px, 5vw, 70px);
  height: clamp(50px, 5vw, 70px);
  border: 1.5px solid var(--ink);
  opacity: 0.25;
  transform: rotate(24deg);
  animation: blkSpin 22s linear infinite;
}
.hero-deco .ring {
  bottom: 12%; right: 8%;
  width: clamp(160px, 20vw, 260px);
  height: clamp(160px, 20vw, 260px);
  border: 1px solid rgba(28, 26, 23, 0.15);
  border-radius: 50%;
}
.hero-deco .ring::after {
  content: "";
  position: absolute;
  top: 8%; left: 12%;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
@keyframes blkFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -22px; }
}
@keyframes blkSpin { to { rotate: 360deg; } }
@media (max-width: 900px) {
  .hero-deco .blk-a { right: -30%; opacity: 0.7; }
  .hero-deco .ring { display: none; }
}

/* ---------- 旋轉徽章 ---------- */
.orbit-badge {
  position: absolute;
  right: clamp(1.5rem, 6vw, 5rem);
  bottom: 2rem;
  width: 122px; height: 122px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}
.orbit-badge svg {
  position: absolute;
  inset: 0;
  animation: orbitSpin 16s linear infinite;
}
.orbit-badge svg text {
  font-size: 10.5px;
  letter-spacing: 0.32em;
  fill: var(--ink-soft);
  font-family: var(--sans);
}
.orbit-badge .c {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 0.4s, transform 0.4s var(--ease);
}
.orbit-badge:hover .c { background: var(--accent); transform: scale(1.12) rotate(45deg); }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .orbit-badge { display: none; } }

/* ---------- 圖片揭幕 ---------- */
.reveal .work-thumb { clip-path: inset(0 100% 0 0); transition: clip-path 1.15s var(--ease) 0.15s, transform 0.6s var(--ease); }
.reveal.is-visible .work-thumb { clip-path: inset(0 0 0 0); }
.work-thumb { will-change: transform; transition: transform 0.6s var(--ease); }

/* ---------- 磁吸按鈕 ---------- */
.btn, .orbit-badge { will-change: transform; }

/* ---------- 內頁 Hero 色塊 ---------- */
.page-hero::before {
  content: "";
  position: absolute;
  top: 18%; left: -5%;
  width: clamp(180px, 24vw, 320px);
  height: clamp(180px, 24vw, 320px);
  background: var(--paper-soft);
  transform: rotate(-8deg);
  z-index: -1;
}
.page-hero::after {
  content: "";
  position: absolute;
  top: 32%; right: 14%;
  width: clamp(56px, 7vw, 96px);
  height: clamp(56px, 7vw, 96px);
  background: var(--accent);
  opacity: 0.14;
  transform: rotate(18deg);
  animation: blkFloat 8s ease-in-out infinite;
}

/* ---------- CTA 帶色塊 ---------- */
.cta-band::before {
  content: "";
  position: absolute;
  left: -110px; top: -110px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.08;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -70px; bottom: -90px;
  width: 240px; height: 240px;
  background: var(--paper-soft);
  transform: rotate(14deg);
  z-index: -1;
}
.cta-band .corner {
  position: absolute;
  right: 8%; top: 18%;
  width: 46px; height: 46px;
  border: 1.5px solid var(--accent);
  opacity: 0.4;
  animation: blkSpin 18s linear infinite;
}

/* ---------- 服務卡片進階 hover ---------- */
.service-card { transition: background 0.5s var(--ease), transform 0.5s var(--ease); }
.service-card:hover { transform: translateY(-4px); }
.service-card .service-num { transition: color 0.3s, letter-spacing 0.4s var(--ease); }
.service-card:hover .service-num { letter-spacing: 0.5em; }

/* ---------- 點擊漣漪 ---------- */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.22;
  transform: scale(0);
  animation: rippleOut 0.75s var(--ease) forwards;
  pointer-events: none;
  z-index: 1;
}
@keyframes rippleOut {
  to { transform: scale(1); opacity: 0; }
}

/* ---------- 服務卡片：觸控點擊狀態（等同 hover） ---------- */
.service-card.is-tapped { background: var(--white); transform: translateY(-4px); }
.service-card.is-tapped::after { transform: scaleY(1); }
.service-card.is-tapped .more { opacity: 1; transform: none; }
.service-card.is-tapped .service-num { letter-spacing: 0.5em; }

/* ---------- 服務頁項目：hover 與點擊特效 ---------- */
.service-detail {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.5s var(--ease), padding-left 0.5s var(--ease);
}
.service-detail:hover { background: var(--white); padding-left: 1rem; }
.service-detail .no { transition: -webkit-text-stroke-color 0.3s, transform 0.5s var(--ease); }
.service-detail:hover .no { transform: translateY(-4px); }
.service-detail.is-hit .no {
  animation: numPulse 0.65s var(--ease);
  -webkit-text-stroke-color: var(--accent-deep);
}
.service-detail.is-hit h2 { color: var(--accent-deep); transition: color 0.3s; }
.service-detail h2 { transition: color 0.5s; }
@keyframes numPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.22) rotate(-4deg); }
  100% { transform: scale(1); }
}
@media (max-width: 800px) {
  .service-detail:hover { padding-left: 0.5rem; }
}

/* ---------- 直接洽談懸浮按鈕 ---------- */
.float-cta {
  position: fixed;
  right: 1.6rem;
  bottom: 1.6rem;
  z-index: 960;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1.1rem 0.6rem 0.95rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  box-shadow: 0 12px 32px -12px rgba(28, 26, 23, 0.5);
  border: 1px solid rgba(247, 244, 238, 0.14);
  opacity: 0;
  animation: floatCtaIn 0.9s var(--ease) 1.1s forwards;
  transition: background 0.4s, transform 0.45s var(--ease), box-shadow 0.4s, letter-spacing 0.4s var(--ease);
}
.float-cta:hover {
  background: var(--accent);
  transform: translateY(-4px);
  letter-spacing: 0.26em;
  box-shadow: 0 18px 38px -14px rgba(179, 74, 42, 0.55);
}
.float-cta .pulse-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #06c755;
  position: relative;
  flex-shrink: 0;
}
.float-cta .pulse-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid #06c755;
  animation: ctaPulse 1.9s ease-out infinite;
}
.float-cta .arr {
  display: inline-block;
  transition: transform 0.35s var(--ease);
}
.float-cta:hover .arr { transform: translateX(5px); }
@keyframes floatCtaIn {
  from { opacity: 0; translate: 0 24px; }
  to   { opacity: 1; translate: 0 0; }
}
@keyframes ctaPulse {
  0% { transform: scale(0.55); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}
@media (max-width: 900px) {
  .float-cta {
    right: 1rem;
    bottom: 1rem;
    padding: 0.55rem 1rem 0.55rem 0.85rem;
    font-size: 0.75rem;
  }
  .orbit-badge { display: none; }
}
/* 避免與首頁旋轉徽章重疊 */
.hero .orbit-badge { bottom: 8.5rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
