:root {
  --bg-page: #f7f6f3;
  --bg-header: rgba(250, 249, 247, 0.95);
  --bg-white: #ffffff;
  --bg-contact: #eeedea;
  --bar-dark: #4a453c;
  --bar-ink: #f7f5f0;
  --ink: #22201d;
  --ink-soft: #544f47;
  --ink-muted: #7c766c;
  --seal: #9e3b45;
  --accent: #8f7a64;
  --line: #d6d0c5;
  --line-soft: #e6e1d8;

  /* PDF 圓形徽章大地色階 */
  --circle-1: #e4ded3;
  --circle-2: #cec3b0;
  --circle-3: #c3bbb0;
  --circle-4: #e6dfd5;
  --circle-5: #dcd3c5;
  --circle-6: #c6bdae;

  /* 依 PDF 字體設定：高對比經典襯線 + 繁中圓體 */
  --serif-display: "Playfair Display", Georgia, serif;
  --sans: "Chiron GoRound TC", "PingFang TC", "Hiragino Maru Gothic ProN", "Microsoft JhengHei", sans-serif;
  --header-h: 70px;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg-page);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4.5vw, 52px);
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-header);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line-soft);
  box-shadow: 0 4px 20px rgba(34, 32, 29, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
}

.brand-seal {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  border-radius: 4px;
}

.brand-seal picture,
.brand-seal img {
  display: block;
  width: 46px;
  height: 46px;
  border-radius: 4px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.brand-seal:hover img {
  opacity: 0.88;
  transform: scale(1.02);
}

.brand-seal:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 4px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}

.site-nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  padding: 6px 2px;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--seal);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--seal);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav a:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-white);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 3px;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

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

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 22px;
    background: var(--bg-page);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(34, 32, 29, 0.12);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 1rem;
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-nav a::after {
    display: none;
  }
}

/* ==========================================================================
   Section Title Bar (PDF Charcoal-Olive Band)
   ========================================================================== */
.section-band {
  background: var(--bar-dark);
  color: var(--bar-ink);
  padding-block: clamp(20px, 2.8vw, 28px);
}

.section-band-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.section-band h1 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1.32rem, 2.5vw, 1.65rem);
  letter-spacing: 0.12em;
}

.section-band .band-en {
  font-family: var(--sans);
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(247, 245, 240, 0.72);
}

/* ==========================================================================
   Home Page: Hero Stage (5:2 Proportion with Bottom Contact, Faithful to PDF)
   ========================================================================== */
.hero-stage {
  position: relative;
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: clamp(500px, 62vh, 580px);
  padding-block: clamp(28px, 3.6vw, 44px) clamp(34px, 4.5vw, 52px);
  background:
    radial-gradient(640px 380px at 14% 82%, rgba(197, 182, 159, 0.16), transparent 70%),
    radial-gradient(560px 380px at 88% 20%, rgba(155, 151, 141, 0.12), transparent 72%),
    var(--bg-page);
}

.hero-canvas {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto;
  align-items: start;
  column-gap: clamp(14px, 2vw, 24px);
  row-gap: clamp(24px, 3.2vw, 38px);
}

.hero-heading {
  grid-column: 1 / 10;
  grid-row: 1;
  text-align: center;
  padding-top: clamp(10px, 2vw, 24px);
  padding-inline: 8px;
  z-index: 2;
}

.hero-eyebrow {
  margin: 0 0 18px;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
}

.hero-title {
  margin: 0;
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.35rem, 5.1vw, 4.15rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--ink);
}

/* Left lower: Desktop / Dark Preview Frame (WORDS OF LOVE) */
.hero-desktop-wrap {
  grid-column: 1 / 7;
  grid-row: 2;
  max-width: 470px;
  width: 100%;
}

.device-browser {
  display: block;
  text-decoration: none;
  background: #2f2c27;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(34, 32, 29, 0.18);
  box-shadow: 0 24px 54px rgba(34, 32, 29, 0.16);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.device-browser:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 64px rgba(34, 32, 29, 0.22);
}

.device-browser:focus-visible,
.device-phone:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 4px;
}

.device-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: #25231f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.device-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(247, 245, 240, 0.24);
}

.device-url {
  margin-left: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: rgba(247, 245, 240, 0.45);
}

.words-stage {
  position: relative;
  padding: 26px 22px 24px;
  min-height: 224px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(280px 160px at 50% 25%, rgba(197, 182, 159, 0.14), transparent 72%),
    linear-gradient(180deg, #33302a 0%, #27241f 100%);
  color: #f4efe6;
}

.words-header {
  text-align: center;
}

.words-en {
  font-family: var(--serif-display);
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  color: rgba(244, 239, 230, 0.84);
}

.words-zh {
  margin-top: 3px;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: rgba(214, 200, 178, 0.68);
}

.words-pills {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.words-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: nowrap;
  will-change: transform;
}

/* 2026-11-24：搖擺動畫只在使用者沒有要求減少動態時才套用。
   減少動態時列保持靜止（不套動畫）；否則下方全域的 animation-duration: 0.01ms 會讓 infinite alternate 每一格都在兩端來回跳 */
@media (prefers-reduced-motion: no-preference) {
  .words-row:nth-child(1) {
    animation: wish-sway-a 14s ease-in-out infinite alternate;
  }

  .words-row:nth-child(2) {
    animation: wish-sway-b 16s ease-in-out infinite alternate;
  }

  .words-row:nth-child(3) {
    animation: wish-sway-a 18s ease-in-out infinite alternate;
  }
}

@keyframes wish-sway-a {
  0% { transform: translateX(-12px); }
  100% { transform: translateX(12px); }
}

@keyframes wish-sway-b {
  0% { transform: translateX(12px); }
  100% { transform: translateX(-12px); }
}

.wish-pill {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.72rem;
  color: rgba(247, 245, 240, 0.88);
  white-space: nowrap;
}

.device-browser-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  background: #eceae5;
  color: var(--ink-soft);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}

/* Right upper: Mobile Frame (Getting there + Illustrated Map) */
.hero-mobile-wrap {
  grid-column: 10 / 13;
  grid-row: 1 / 3;
  justify-self: end;
  width: 100%;
  max-width: 248px;
  z-index: 3;
}

.device-phone {
  display: block;
  text-decoration: none;
  background: #f5f2ea;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(34, 32, 29, 0.14);
  box-shadow: 0 24px 54px rgba(34, 32, 29, 0.14);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.device-phone:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 64px rgba(34, 32, 29, 0.2);
}

.phone-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #2f2c27;
  color: rgba(247, 245, 240, 0.78);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
}

.phone-screen {
  padding: 14px 12px 14px;
  text-align: center;
}

.phone-en {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 1.06rem;
  color: #4a453c;
  line-height: 1.2;
}

.phone-zh {
  margin-top: 2px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}

.phone-map {
  margin-top: 10px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: #f7f4ec;
}

.phone-map img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3.1;
  object-fit: cover;
}

.phone-footer-strip {
  margin-top: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #e9e3d7;
  color: var(--ink-soft);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

@media (max-width: 960px) {
  .hero-stage {
    min-height: auto;
  }

  .hero-canvas {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .hero-heading {
    grid-column: 1 / 3;
    grid-row: 1;
    padding-bottom: 8px;
  }

  .hero-desktop-wrap {
    grid-column: 1 / 2;
    grid-row: 2;
    align-self: center;
  }

  .hero-mobile-wrap {
    grid-column: 2 / 3;
    grid-row: 2;
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .hero-canvas {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .hero-heading,
  .hero-desktop-wrap,
  .hero-mobile-wrap {
    grid-column: 1;
    grid-row: auto;
  }

  .hero-mobile-wrap {
    max-width: 260px;
  }
}

/* ==========================================================================
   Cases Page (精選案例)
   ========================================================================== */
.cases-section {
  flex: 1 0 auto;
  padding-block: clamp(36px, 5vw, 60px) clamp(52px, 7vw, 84px);
}

.cases-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(26px, 3.6vw, 40px);
}

.cases-lead {
  margin: 0;
  max-width: 38em;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.cases-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-white);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

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

.filter-btn:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 2px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 36px);
}

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

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.card[hidden] {
  display: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 18px 40px rgba(45, 43, 37, 0.1);
}

.card:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 4px;
}

.thumb {
  position: relative;
  aspect-ratio: 1200 / 630;
  background: #eae4d8;
  overflow: hidden;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.card:not(.is-private):hover .thumb img {
  transform: scale(1.03);
}

.card-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-tag {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.card h2 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.42rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.chips {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chips li {
  font-size: 0.78rem;
  padding: 3px 11px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--bg-page);
  color: var(--ink-soft);
}

.card-go {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.96rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  transition: color 0.2s ease;
}

.card:not(.is-private):hover .card-go {
  color: var(--seal);
}

/* Private / unpublished case */
.card.is-private {
  cursor: default;
}

.card.is-private:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--line);
}

.thumb.locked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(45, 43, 37, 0.22);
}

.thumb.locked .badge {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: auto;
  width: fit-content;
  height: fit-content;
  padding: 8px 20px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(45, 43, 37, 0.42);
  color: #fff;
  font-size: 0.88rem;
  letter-spacing: 0.2em;
}

.card-go.muted {
  color: var(--ink-muted);
}

/* ==========================================================================
   Process Page (服務流程 — PDF 2-Column 01–06 Layout + Lining Serif Numerals)
   ========================================================================== */
.process-section {
  flex: 1 0 auto;
  padding-block: clamp(36px, 5vw, 56px) clamp(52px, 7vw, 84px);
}

.process-lead {
  margin: 0 0 clamp(34px, 4.8vw, 52px);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  column-gap: clamp(36px, 6vw, 84px);
  row-gap: clamp(28px, 4vw, 42px);
}

.process-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
  padding-bottom: clamp(22px, 3vw, 32px);
  border-bottom: 1.5px solid var(--ink-soft);
}

.process-item:nth-child(3),
.process-item:nth-child(6) {
  border-bottom: 0;
  padding-bottom: 0;
}

.process-num {
  font-family: var(--serif-display);
  font-variant-numeric: lining-nums tabular-nums;
  font-size: clamp(2.15rem, 3.2vw, 2.75rem);
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.process-title {
  margin: 2px 0 8px;
  font-family: var(--sans);
  font-size: clamp(1.1rem, 1.65vw, 1.28rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: 0.03em;
}

.process-title .en {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.process-desc {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.72;
}

@media (max-width: 820px) {
  .process-list {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
    row-gap: 24px;
  }

  .process-item {
    grid-template-columns: 60px minmax(0, 1fr);
    border-bottom: 1.5px solid var(--line);
    padding-bottom: 24px;
  }

  .process-item:nth-child(3) {
    border-bottom: 1.5px solid var(--line);
    padding-bottom: 24px;
  }

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

/* ==========================================================================
   About Page (關於良辰帖 — PDF Left Seal + Right 6 Circular Badges)
   ========================================================================== */
.about-section {
  flex: 1 0 auto;
  padding-block: clamp(40px, 5.5vw, 68px) clamp(52px, 7vw, 84px);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(180px, 236px) minmax(0, 1fr);
  column-gap: clamp(32px, 6vw, 72px);
  row-gap: 36px;
  align-items: start;
}

.about-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(44px, 6.5vw, 84px);
}

.about-seal-large {
  width: clamp(148px, 18vw, 192px);
  height: clamp(148px, 18vw, 192px);
  display: block;
  filter: drop-shadow(0 12px 24px rgba(158, 59, 69, 0.16));
}

.what-we-do {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1.3rem, 2.1vw, 1.65rem);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.04em;
  text-align: center;
}

.about-lead {
  margin: 0 0 clamp(28px, 4vw, 40px);
  font-size: clamp(1.02rem, 1.55vw, 1.16rem);
  font-weight: 600;
  line-height: 1.88;
  color: var(--ink);
  letter-spacing: 0.03em;
}

.circle-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 690px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.8vw, 32px);
}

.circle-badge {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(16px, 2vw, 22px);
  transition: transform 0.28s ease;
}

.circle-badge:hover {
  transform: translateY(-4px);
}

.blob-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transition: filter 0.28s ease;
}

.circle-badge:hover .blob-shape {
  filter: drop-shadow(0 12px 22px rgba(74, 69, 60, 0.16));
}

.circle-badge.c1 .blob-shape path { fill: var(--circle-1); }
.circle-badge.c2 .blob-shape path { fill: var(--circle-2); }
.circle-badge.c3 .blob-shape path { fill: var(--circle-3); }
.circle-badge.c4 .blob-shape path { fill: var(--circle-4); }
.circle-badge.c5 .blob-shape path { fill: var(--circle-5); }
.circle-badge.c6 .blob-shape path { fill: var(--circle-6); }

.circle-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.circle-badge h2 {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: clamp(1.18rem, 1.8vw, 1.38rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.circle-badge p {
  margin: 0;
  font-size: clamp(0.84rem, 1.15vw, 0.96rem);
  font-weight: 500;
  line-height: 1.5;
  color: #34302b;
}

@media (max-width: 820px) {
  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-aside {
    flex-direction: row;
    justify-content: flex-start;
    gap: 24px;
  }

  .about-seal-large {
    width: 112px;
    height: 112px;
  }

  .circle-grid {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .circle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .circle-badge {
    padding: 14px;
  }

  .circle-badge h2 {
    font-size: 1.06rem;
    margin-bottom: 5px;
  }

  .circle-badge p {
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   Pinned Bottom Section: 預約諮詢 (Compact ~2/7 Proportion to Match 5:2)
   ========================================================================== */
.contact-section {
  background: var(--bg-contact);
  border-top: 1px solid var(--line-soft);
  padding-block: clamp(24px, 2.8vw, 32px) clamp(16px, 2vw, 22px);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
}

.contact-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.contact-title {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1.15rem, 1.7vw, 1.32rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.contact-en {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}

.contact-copy {
  margin: 10px 0 0;
  font-size: 0.84rem;
  line-height: 1.68;
  color: var(--ink);
}

.contact-copy strong {
  font-weight: 700;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 13px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-item:hover {
  background: var(--bg-white);
  border-color: var(--accent);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  text-decoration: none;
  font-size: clamp(0.78rem, 3.4vw, 0.88rem);
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.contact-icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  color: var(--bar-dark);
}

.copy-btn {
  flex-shrink: 0;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-page);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.copy-btn:hover {
  background: var(--bar-dark);
  border-color: var(--bar-dark);
  color: var(--bar-ink);
}

.copy-btn.is-copied {
  background: var(--seal);
  border-color: var(--seal);
  color: #fff;
}

.copy-btn:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 2px;
}

.site-footer {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
  font-size: 0.74rem;
  color: var(--ink-muted);
}

.site-footer p {
  margin: 0;
}

.site-footer .copyright {
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}

.footer-right {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.back-to-top:hover {
  background: var(--bar-dark);
  border-color: var(--bar-dark);
  color: var(--bar-ink);
  transform: translateY(-1px);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 2px;
}

.back-to-top svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 780px) {
  .contact-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-right {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .contact-item {
    padding: 9px 11px;
    gap: 8px;
  }

  .copy-btn {
    padding: 4px 9px;
  }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
