/* KERAN 官網樣式：依原 Divi 版面量測重建（字型、間距、顏色），不依賴任何框架 */
:root {
  --text: #666;
  --heading: #333;
  --dark: #2d2d2d;
  --navy: #002175;
  --font: "Noto Sans TC", Helvetica, Arial, Lucida, sans-serif;
  --font-en: Poppins, Helvetica, Arial, Lucida, sans-serif;
  --row: 1080px;
  --ink: #1d1d1f;
  --accent: #c5c8cf;
  --gray: #c5c8cf;
  --paper: #f5f5f2;
  --line: #e3e3de;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 300 14px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--heading); font-weight: 500; line-height: 1em; margin: 0; padding-bottom: 10px; }
p { margin: 0; padding-bottom: 1em; }
p:last-of-type { padding-bottom: 0; }
strong { font-weight: 700; }
figure { margin: 0; }
ul { margin: 0; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: #fff; padding: 8px 12px; color: var(--navy); }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 100; background: #fff; padding-top: 30px; height: 94px; }
.site-header__row {
  width: 90%; max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: 3fr 1fr; align-items: center; min-height: 47px;
}
.site-header__main { display: flex; align-items: center; justify-content: space-between; position: relative; }
.site-logo img { width: 136px; height: auto; }
.site-nav ul { list-style: none; padding: 0; margin: 0; display: flex; }
.site-nav li { margin-left: 22px; }
.site-nav a {
  display: block; padding: 10px 20px 10px 10px;
  font: 300 16px/1.6 var(--font-en); color: var(--dark); transition: opacity .3s;
}
.site-nav li.is-current a { color: #515151; }
.site-nav a:hover { opacity: .7; }
.site-social { display: flex; gap: 13px; justify-content: flex-end; padding-right: 13%; }
.site-social a { display: block; transition: opacity .3s; }
.site-social a:hover { opacity: .7; }
.site-social img { width: 30px; height: 30px; }
.menu-toggle { display: none; }

@media (max-width: 980px) {
  .site-header { padding-top: 18px; height: 78px; }
  .site-header__row { grid-template-columns: 1fr; }
  .site-logo img { width: 108px; }
  .site-social { display: none; }
  .menu-toggle {
    display: block; width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; position: relative;
  }
  .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
    position: absolute; left: 2px; width: 28px; height: 3px; background: var(--navy); border-radius: 2px; content: ""; transition: transform .3s, opacity .3s;
  }
  .menu-toggle span { top: 15px; }
  .menu-toggle span::before { left: 0; top: -9px; }
  .menu-toggle span::after { left: 0; top: 9px; }
  .menu-toggle[aria-expanded="true"] span { background: transparent; }
  .menu-toggle[aria-expanded="true"] span::before { transform: translateY(9px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span::after { transform: translateY(-9px) rotate(-45deg); }
  .site-nav {
    display: none; position: absolute; top: 46px; left: 0; right: 0;
    background: #fff; border-top: 3px solid var(--navy); box-shadow: 0 2px 5px rgba(0, 0, 0, .1); padding: 5%;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { display: block; }
  .site-nav li { margin: 0; }
  .site-nav a { color: var(--navy); padding: 10px 5%; border-bottom: 1px solid rgba(0, 0, 0, .03); }
  .site-nav li.is-current a { color: var(--navy); }
}

/* ---------- Layout ---------- */
.section { padding: 54px 0; }
.row { width: 80%; max-width: var(--row); margin: 0 auto; padding: 27px 0; }
.col { min-width: 0; }
@media (min-width: 981px) {
  .row--intro, .row--project, .row--counters { display: flex; gap: 5.5%; }
  .col--2-5 { flex: 0 0 36.7%; }
  .col--3-5 { flex: 1; }
  .col--1-3 { flex: 0 0 29.6%; }
  .col--2-3 { flex: 1; }
  .row--counters .col--1-3 { flex: 1; }
}
.text p { font-size: 14px; line-height: 1.7; }

/* ---------- Home slider ---------- */
.hero-slider { position: relative; height: min(calc(100vh - 94px), 760px); min-height: 360px; overflow: hidden; background: #f2f2f2; margin-bottom: -1px; }
.hero-slider__track, .hero-slide, .hero-slide__link { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity .8s ease-in-out; }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slider__arrow {
  position: absolute; top: 50%; z-index: 3; width: 48px; height: 48px; margin-top: -24px; border: 0; background: none;
  cursor: pointer; opacity: 0; transition: opacity .3s, transform .3s;
}
.hero-slider__arrow::before {
  content: ""; display: block; width: 18px; height: 18px; margin: auto;
  border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(45deg);
}
.hero-slider__arrow--prev { left: 22px; }
.hero-slider__arrow--next { right: 22px; }
.hero-slider__arrow--next::before { transform: rotate(-135deg); }
.hero-slider:hover .hero-slider__arrow { opacity: 1; }
.hero-slider__dots { position: absolute; left: 0; right: 0; bottom: 20px; z-index: 3; display: flex; justify-content: center; gap: 10px; }
.hero-slider__dots button {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .5); cursor: pointer;
}
.hero-slider__dots button.is-active { background: #fff; }
@media (max-width: 767px) { .hero-slider { height: min(700px, calc(100vh - 78px)); } }

/* ---------- Work / portfolio ---------- */
.work { padding: 11px 0 54px; }
.portfolio { width: 79.5%; max-width: 1133px; margin: 0 auto; }
.portfolio__filters ul { list-style: none; padding: 0; margin: 0 0 31px; display: flex; flex-wrap: wrap; }
.portfolio__filters a {
  display: block; padding: 10px 20px; font: 300 15px/1.9 var(--font-en); color: var(--text); transition: color .3s;
}
.portfolio__filters a.is-active, .portfolio__filters a:hover { color: #323741; }
.portfolio__filters a.is-active { font-weight: 400; }
.portfolio__intro { margin: -16px 20px 24px; }
.portfolio__grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 15px; row-gap: 34px; }
@media (min-width: 981px) { .portfolio__grid { width: 98.5%; margin-left: -3.35%; } }
.portfolio__item[hidden] { display: none; }
.portfolio__image { position: relative; display: block; aspect-ratio: 362 / 250; overflow: hidden; background: #f4f4f4; }
.portfolio__image img { width: 100%; height: 100%; object-fit: cover; }
.portfolio__overlay {
  position: absolute; inset: 0; background: rgba(58, 58, 58, .83); opacity: 0; transition: opacity .3s;
}
.portfolio__item a:hover .portfolio__overlay, .portfolio__item a:focus-visible .portfolio__overlay { opacity: 1; }
.portfolio__title { font: 400 15px/1.2 var(--font); color: #3f3f3f; padding: 10px 0 0; }
.portfolio__meta { font: 300 13px/1 var(--font-en); color: var(--text); padding: 10px 0 0; }
.portfolio__pagination ul { list-style: none; padding: 0; margin: 40px 0 0; display: flex; justify-content: flex-end; gap: 4px; }
.portfolio__pagination button {
  border: 0; background: none; cursor: pointer; padding: 6px 8px; font: 300 14px var(--font-en); color: var(--text);
}
.portfolio__pagination button.is-active { color: #323741; font-weight: 400; }
@media (max-width: 980px) { .portfolio__grid { grid-template-columns: repeat(2, 1fr); } .portfolio { width: 90%; } }
@media (max-width: 767px) { .portfolio__grid { grid-template-columns: 1fr; } .portfolio__filters a { padding: 6px 12px; } }

/* ---------- Project detail ---------- */
.project .row--project { padding-top: 27px; }
.project__title { font-size: 23px; font-weight: 700; line-height: 1em; padding-bottom: 10px; margin-bottom: 30px; }
.project__info .text p { padding-bottom: 1em; }
.project__facts { padding: 30px 0 0 1em; list-style: disc; line-height: 26px; text-align: justify; }
.project__image { margin-bottom: 29.69px; }
.project__image img { width: 100%; }
.project__image figcaption { font-size: 13px; padding-top: 8px; }
@media (min-width: 981px) {
  .project__info { position: sticky; top: 30px; align-self: flex-start; }
}
@media (max-width: 980px) {
  .project__info { margin-bottom: 40px; }
  .row--project { width: 85%; }
}

/* ---------- Contact ---------- */
.contact-channels { padding: 58px 0 57px; }
.row--channels { width: 59%; display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; margin-bottom: 30px; }
.channel { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; padding: 27px 0; }
.channel__icon { width: 30%; max-width: 119px; height: auto; margin-bottom: 0; }
.channel__icon--line { margin-bottom: 21px; }
.channel__label { font-weight: 700; font-size: 16px; color: var(--text); line-height: 1.5; }
.channel__value { font-weight: 700; font-size: 18px; color: #000; line-height: 1.5; }
.contact-form { padding: 46px 0 0; margin-top: -31px; }
.custom-contact-form { max-width: 90%; margin: 0 auto; font: 16px Arial, sans-serif; color: #333; }
.input-row { display: flex; justify-content: space-between; margin-bottom: 20px; }
.input-row .input-group { width: 49%; }
.textarea-row { margin-bottom: 20px; display: flex; }
.input-group {
  display: flex; align-items: flex-end; background: #f2f2f2; border-radius: 4px; padding: 8px 12px; min-height: 68px;
}
.input-group--textarea { width: 100%; min-height: 0; align-items: stretch; }
.form-control {
  width: 100%; border: 0; background: transparent; font: inherit; color: inherit; margin: 0; padding: 0 8px; line-height: 28px;
}
.form-control:focus { outline: none; }
.input-group:focus-within { box-shadow: 0 0 0 2px rgba(0, 33, 117, .25); }
.form-control::placeholder { color: #999; }
textarea.form-control { height: 150px; resize: vertical; padding: 8px; line-height: 1.5; }
.submit-row { text-align: right; }
.submit-button {
  background: #efefef; color: #333; border: 0; padding: 10px 20px; border-radius: 4px; cursor: pointer;
  transition: background-color .3s ease; font: inherit;
}
.submit-button:hover { background: #0056b3; color: #fff; }
.cf-turnstile { margin-bottom: 20px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { max-width: 90%; margin: 0 auto 20px; padding: 14px 18px; border-radius: 4px; font-size: 15px; }
.form-notice--ok { background: #eef6ee; color: #24572a; }
.form-notice--error { background: #fdeeee; color: #8a1c1c; }
@media (max-width: 980px) { .row--channels { width: 80%; } }
@media (max-width: 767px) {
  .row--channels { width: 90%; grid-template-columns: 1fr; }
  .input-row { flex-direction: column; margin-bottom: 0; }
  .input-row .input-group { width: 100%; margin-bottom: 10px; }
}


/* =========================================================
   現代包浩斯幾何系統：圓 / 方 / 三角 + 細格線 + 區塊編號
   主色品牌深藍，點綴色只用在小面積幾何形
   ========================================================= */
.wrap { width: 88%; max-width: var(--wrap); margin: 0 auto; }
.section-title { font-size: clamp(24px, 3vw, 34px); font-weight: 500; color: var(--ink); line-height: 1.3; padding: 0 0 28px; letter-spacing: .02em; }
.kicker { display: flex; align-items: center; gap: 12px; font: 400 13px/1 var(--font-en); letter-spacing: .14em; text-transform: uppercase; color: var(--navy); padding: 0 0 18px; }
.kicker__num { font-weight: 400; }
.kicker__line { width: 36px; height: 1px; background: var(--navy); }

/* 幾何形 */
.shape { display: inline-block; width: 44px; height: 44px; position: relative; }
.shape--circle { border-radius: 50%; background: var(--navy); }
.shape--square { background: var(--navy); }
.shape--triangle { background: var(--navy); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.shape--half { background: var(--navy); border-radius: 44px 44px 0 0; height: 22px; margin-top: 22px; }
.shape--grid { background:
  linear-gradient(var(--navy), var(--navy)) 0 0 / 46% 46% no-repeat,
  linear-gradient(var(--navy), var(--navy)) 100% 0 / 46% 46% no-repeat,
  linear-gradient(var(--navy), var(--navy)) 0 100% / 46% 46% no-repeat,
  linear-gradient(var(--accent), var(--accent)) 100% 100% / 46% 46% no-repeat; }

/* 按鈕 */
.btn-solid, .btn-line { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; font: 400 15px/1 var(--font); letter-spacing: .06em; transition: background .25s, color .25s, border-color .25s; }
.btn-solid { background: var(--navy); color: #fff; border: 1px solid var(--navy); }
.btn-solid:hover { background: var(--ink); border-color: var(--ink); }
.btn-line { border: 1px solid var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-solid--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-solid--light:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn-line--light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-line--light:hover { background: #fff; color: var(--navy); }
.link-arrow { font: 400 15px var(--font); color: var(--navy); border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.link-arrow span { display: inline-block; transition: transform .25s; }
.link-arrow:hover span { transform: translateX(4px); }

/* 導覽：目前頁面下方一個小方塊 */
.site-nav li { position: relative; }
@media (min-width: 981px) {
  .site-nav li.is-current a::after { content: ""; position: absolute; left: 10px; bottom: 2px; width: 6px; height: 6px; background: var(--navy); }
}

/* 頁首 */
.page-head { border-bottom: 1px solid var(--line); background:
  linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 64px,
  linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 64px 100%; background-color: #fff; }
.page-head__inner { width: 88%; max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1fr 280px; gap: 48px; align-items: center; padding: 72px 0 64px; }
.page-head__text { background: rgba(255,255,255,.92); padding: 8px 0; }
.page-head__title { font-size: clamp(30px, 4.4vw, 52px); font-weight: 500; color: var(--ink); line-height: 1.2; padding: 0 0 22px; letter-spacing: .03em; }
.page-head__lead { font-size: 16px; line-height: 1.9; color: #4a4a4a; max-width: 680px; }
.page-head__mark { position: relative; width: 240px; height: 240px; justify-self: end; }
.page-head__mark span { position: absolute; display: block; }
.page-head--square .m1 { inset: 30px 30px 0 0; background: var(--navy); }
.page-head--square .m2 { width: 64px; height: 64px; right: 0; top: 0; background: var(--accent); }
.page-head--square .m3 { width: 90px; height: 90px; left: -30px; bottom: -30px; border: 1px solid var(--ink); }
.page-head--grid .m1 { left: 0; top: 0; width: 112px; height: 112px; background: var(--navy); }
.page-head--grid .m2 { right: 0; top: 0; width: 112px; height: 112px; background: var(--navy); border-radius: 50%; }
.page-head--grid .m3 { left: 0; bottom: 0; width: 112px; height: 112px; background: var(--accent); clip-path: polygon(0 0, 100% 100%, 0 100%); }
.page-head--grid .page-head__mark::after { content: ""; position: absolute; right: 0; bottom: 0; width: 112px; height: 112px; border: 1px solid var(--ink); }
.page-head--triangle .m1 { inset: 0 0 20px 20px; background: var(--navy); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.page-head--triangle .m2 { width: 56px; height: 56px; left: 0; bottom: 0; background: var(--accent); border-radius: 50%; }
.page-head--triangle .m3 { width: 120px; height: 1px; right: -20px; bottom: 20px; background: var(--ink); }
@media (max-width: 980px) {
  .page-head__inner { grid-template-columns: 1fr; padding: 48px 0 40px; gap: 0; }
  .page-head__mark { position: absolute; right: 6%; top: 24px; width: 96px; height: 96px; opacity: .9; }
  .page-head { position: relative; }
  .page-head__text { padding-right: 96px; }
  .page-head--square .m2 { width: 28px; height: 28px; } .page-head--square .m3 { width: 40px; height: 40px; left: -12px; bottom: -12px; }
  .page-head--grid .m1, .page-head--grid .m2, .page-head--grid .m3, .page-head--grid .page-head__mark::after { width: 44px; height: 44px; }
  .page-head--triangle .m2 { width: 24px; height: 24px; } .page-head--triangle .m3 { width: 50px; }
}
@media (max-width: 600px) { .page-head__text { padding-right: 0; } .page-head__mark { position: static; margin: 8px 0 0; justify-self: start; width: 72px; height: 72px; } }

/* 首頁 */
.home-intro { padding: 96px 0 0; }
.home-intro__grid { display: grid; grid-template-columns: 1fr 320px; gap: 64px; align-items: center; }
.home-intro__title { font-size: clamp(30px, 4.6vw, 54px); font-weight: 500; color: var(--ink); line-height: 1.25; padding: 0 0 26px; letter-spacing: .03em; }
.home-intro__brand { display: block; font-size: 15px; font-weight: 400; color: var(--navy); letter-spacing: .1em; padding-bottom: 18px; }
.home-intro__lead { font-size: 16px; line-height: 1.9; color: #4a4a4a; max-width: 640px; padding-bottom: 32px; }
.home-intro__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.home-intro__mark { position: relative; width: 300px; height: 300px; }
.home-intro__mark span { position: absolute; display: block; }
.home-intro__mark .m1 { left: 0; top: 0; width: 200px; height: 200px; border-radius: 50%; background: var(--navy); }
.home-intro__mark .m2 { right: 0; bottom: 0; width: 160px; height: 160px; background: var(--paper); mix-blend-mode: multiply; border: 1px solid var(--ink); }
.home-intro__mark .m3 { right: 30px; top: 20px; width: 56px; height: 56px; background: var(--accent); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.home-intro__mark .m4 { left: 20px; bottom: 30px; width: 120px; height: 1px; background: var(--ink); }
.stats { list-style: none; padding: 0; margin-top: 80px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats li { padding: 34px 24px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.stats li:first-child { border-left: 0; padding-left: 0; }
.stats__num { font: 300 clamp(36px, 4vw, 52px)/1 var(--font-en); color: var(--navy); }
.stats__label { font-size: 14px; color: #555; }
@media (max-width: 980px) {
  .home-intro__grid { grid-template-columns: 1fr; gap: 32px; }
  .home-intro__mark { width: 180px; height: 180px; order: -1; }
  .home-intro__mark .m1 { width: 120px; height: 120px; } .home-intro__mark .m2 { width: 96px; height: 96px; }
  .home-intro__mark .m3 { width: 34px; height: 34px; right: 10px; } .home-intro__mark .m4 { width: 70px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.home-services { padding: 110px 0 40px; }
.services { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--ink); }
.service a { display: flex; flex-direction: column; height: 100%; padding: 32px 22px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .25s; }
.service:first-child a { padding-left: 0; }
.service:last-child a { border-right: 0; }
.service .shape { width: 36px; height: 36px; margin-bottom: 34px; transition: transform .35s; }
.service .shape--half { height: 18px; margin-top: 18px; }
.service a:hover .shape { transform: rotate(90deg); }
.service a:hover .shape--circle, .service a:hover .shape--half { transform: scale(1.12); }
.service__name { font-size: 18px; font-weight: 500; color: var(--ink); line-height: 1.4; padding: 0 0 10px; }
.service__desc { font-size: 14px; color: #555; line-height: 1.7; padding-bottom: 24px; flex: 1; }
.service__count { font: 400 13px var(--font-en); color: var(--navy); }
@media (max-width: 980px) { .services { grid-template-columns: repeat(2, 1fr); } .service a, .service:first-child a { padding-left: 0; } .service a { border-right: 0; } }
@media (max-width: 600px) { .service a { padding: 24px 14px 22px 0; } .service .shape { margin-bottom: 22px; width: 28px; height: 28px; } .service .shape--half { height: 14px; margin-top: 14px; } .service__name { font-size: 16px; } }
.home-work { padding: 80px 0 110px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.work-card__image { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); position: relative; }
.work-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.work-card a:hover img { transform: scale(1.04); }
.work-card__image::after { content: ""; position: absolute; right: 0; bottom: 0; width: 0; height: 0; background: var(--navy); transition: width .3s, height .3s; }
.work-card a:hover .work-card__image::after { width: 22px; height: 22px; }
.work-card__title { font-size: 16px; font-weight: 500; color: var(--ink); line-height: 1.5; padding: 16px 0 6px; }
.work-card__meta { font-size: 13px; color: #777; }
@media (max-width: 980px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .work-grid { grid-template-columns: 1fr; } .section-head { flex-direction: column; align-items: flex-start; margin-bottom: 20px; } }

/* CTA */
.cta { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 84px 0; }
.cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta__kicker { font: 400 13px var(--font-en); letter-spacing: .14em; text-transform: uppercase; opacity: .75; padding-bottom: 14px; }
.cta__title { color: #fff; font-size: clamp(26px, 3.4vw, 40px); font-weight: 500; line-height: 1.3; padding: 0; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta__shapes span { position: absolute; display: block; }
.cta__shapes span:nth-child(1) { right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); }
.cta__shapes span:nth-child(2) { right: 18%; bottom: -30px; width: 60px; height: 60px; background: var(--accent); }
.cta__shapes span:nth-child(3) { left: 46%; top: 24px; width: 28px; height: 28px; background: rgba(255,255,255,.18); clip-path: polygon(50% 0, 100% 100%, 0 100%); }

/* 關於 */
.about-intro { padding: 88px 0 0; }
.about-intro__grid { display: grid; grid-template-columns: 300px 1fr; gap: 72px; align-items: start; }
.about-intro__body p { font-size: 16px; line-height: 1.95; color: #444; }
.about-intro__body strong { color: var(--navy); font-weight: 500; }
.about-logo { width: 100%; }
.about-strengths, .about-process, .about-clients, .about-faq { padding: 100px 0 0; }
.about-faq { padding-bottom: 110px; }
.strengths { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.strength { padding: 30px 26px 34px; border-right: 1px solid var(--line); }
.strength:first-child { padding-left: 0; } .strength:last-child { border-right: 0; }
.strength__num { display: block; font: 300 40px/1 var(--font-en); color: var(--navy); padding-bottom: 26px; }
.strength:nth-child(2) .strength__num { color: var(--ink); }
.strength__title { font-size: 18px; font-weight: 500; color: var(--ink); line-height: 1.45; padding-bottom: 12px; }
.strength p { font-size: 14px; line-height: 1.85; color: #555; }
.process { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.process::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--ink); }
.process li { position: relative; padding: 34px 16px 0 0; display: flex; flex-direction: column; gap: 8px; }
.process__dot { position: absolute; top: 0; left: 0; width: 15px; height: 15px; background: #fff; border: 1px solid var(--ink); border-radius: 50%; }
.process li:first-child .process__dot { background: var(--navy); border-color: var(--navy); }
.process li:last-child .process__dot { background: var(--accent); border-color: var(--accent); border-radius: 0; }
.process__num { font: 400 12px var(--font-en); letter-spacing: .12em; color: var(--navy); }
.process__name { font-size: 16px; font-weight: 500; color: var(--ink); }
.clients-wall { border: 1px solid var(--line); padding: 32px; }
.clients-wall img { margin: 0 auto; }
.bw-to-color img { filter: grayscale(100%); transition: filter .5s ease; }
.bw-to-color:hover img { filter: grayscale(0%); }
.faq-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 72px; }
.faq-list { border-top: 1px solid var(--ink); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; color: var(--ink); font-size: 16px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background:
  linear-gradient(var(--navy), var(--navy)) center / 12px 1.5px no-repeat, linear-gradient(var(--navy), var(--navy)) center / 1.5px 12px no-repeat; transition: transform .25s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq .text { padding: 0 40px 24px 0; }
.faq .text p { font-size: 15px; line-height: 1.9; color: #555; }
@media (max-width: 980px) {
  .about-intro__grid, .faq-wrap { grid-template-columns: 1fr; gap: 28px; }
  .about-intro__logo { max-width: 220px; }
  .strengths { grid-template-columns: 1fr 1fr; }
  .strength, .strength:first-child { padding: 26px 20px 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .process { grid-template-columns: 1fr; gap: 0; }
  .process::before { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .process li { padding: 0 0 26px 36px; }
}
@media (max-width: 600px) { .strengths { grid-template-columns: 1fr; } }

/* 作品列表 */
.work { padding: 40px 0 90px; }
.portfolio { width: 88%; max-width: var(--wrap); }
.portfolio__filters ul { gap: 4px 6px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.portfolio__filters a { padding: 12px 14px; font: 400 14px/1 var(--font-en); letter-spacing: .06em; color: #777; position: relative; }
.portfolio__filters a.is-active { color: var(--ink); font-weight: 400; }
.portfolio__filters a.is-active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--navy); }
@media (min-width: 981px) { .portfolio__grid { width: auto; margin-left: 0; } }
.portfolio__grid { column-gap: 28px; row-gap: 44px; }
.portfolio__image { aspect-ratio: 4 / 3; }
.portfolio__image img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.portfolio__overlay { background: none; opacity: 1; }
.portfolio__overlay::after { content: ""; position: absolute; right: 0; bottom: 0; width: 0; height: 0; background: var(--navy); transition: width .3s, height .3s; }
.portfolio__item a:hover img { transform: scale(1.04); }
.portfolio__item a:hover .portfolio__overlay::after, .portfolio__item a:focus-visible .portfolio__overlay::after { width: 22px; height: 22px; }
.portfolio__title { font-size: 16px; font-weight: 500; color: var(--ink); line-height: 1.5; padding: 16px 0 0; }
.portfolio__meta { font-size: 12px; letter-spacing: .06em; color: #888; padding-top: 8px; }
.portfolio__pagination button.is-active { color: #fff; background: var(--navy); }

/* 專案頁 */
.project { padding: 64px 0 40px; }
.project .row--project { width: 88%; max-width: var(--wrap); }
.project__title { font-size: clamp(24px, 2.6vw, 32px); font-weight: 500; color: var(--ink); line-height: 1.35; margin-bottom: 26px; }
.project__info .text p { font-size: 15px; line-height: 1.9; color: #4a4a4a; }
.project__facts { margin: 34px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.project__facts div { display: grid; grid-template-columns: 104px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.project__facts dt { font: 400 12px/1.8 var(--font-en); letter-spacing: .06em; color: var(--navy); }
.project__facts dd { margin: 0; font-size: 14px; color: var(--ink); }
.project__facts a { border-bottom: 1px solid var(--line); }
.project__facts a:hover { border-color: var(--navy); }
.project-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; border-top: 1px solid var(--line); margin-top: 60px; padding: 32px 0 0; }
.project-nav a { font-size: 15px; color: var(--ink); line-height: 1.5; }
.project-nav a span { display: block; font: 400 12px var(--font-en); letter-spacing: .1em; color: var(--navy); padding-bottom: 6px; }
.project-nav__next { text-align: right; }
.project-nav__all .shape { width: 28px; height: 28px; }
@media (max-width: 600px) { .project-nav { grid-template-columns: 1fr 1fr; } .project-nav__all { display: none; } }

/* 聯絡 */
.contact-channels { padding: 72px 0 24px; }
.row--channels { width: 88%; max-width: var(--wrap); gap: 0; border-top: 1px solid var(--ink); }
.channel { flex-direction: row; justify-content: flex-start; gap: 24px; text-align: left; padding: 30px 0; border-bottom: 1px solid var(--line); }
.channel:first-child { border-right: 1px solid var(--line); }
.channel + .channel { padding-left: 32px; }
.channel__icon { width: 56px; }
.channel__icon--line { margin: 0; }
.channel__label { display: block; font: 400 13px var(--font-en); letter-spacing: .1em; color: var(--navy); }
.channel__value { display: block; font-weight: 500; font-size: 20px; color: var(--ink); }
.contact-form { margin-top: 0; padding: 24px 0 0; }
.contact-form .row { width: 88%; max-width: var(--wrap); }
.custom-contact-form { max-width: none; font-family: var(--font); }
.input-group { background: #fff; border: 1px solid var(--line); border-radius: 0; }
.input-group:focus-within { border-color: var(--navy); box-shadow: none; }
.submit-button { background: var(--navy); color: #fff; border-radius: 0; padding: 14px 40px; letter-spacing: .1em; }
.submit-button:hover { background: var(--ink); }
.about-process--contact { padding: 80px 0 110px; }
@media (max-width: 767px) { .channel:first-child { border-right: 0; } .channel + .channel { padding-left: 0; } }

/* 頁尾 */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 0 0 36px; position: relative; }
.site-footer__shapes { display: flex; height: 10px; }
.site-footer__shapes span { flex: 1; }
.site-footer__shapes .f1 { background: var(--navy); flex: 5; } .site-footer__shapes .f2 { background: var(--accent); flex: 1; }
.site-footer__shapes .f3 { background: #fff; flex: .4; } .site-footer__shapes .f4 { background: var(--navy); flex: 2; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 48px; padding: 72px 0 56px; }
.site-footer__logo { width: 136px; filter: brightness(0) invert(1); margin-bottom: 22px; }
.site-footer__brand p { font-size: 14px; line-height: 1.9; max-width: 420px; }
.site-footer h2 { font: 400 12px var(--font-en); letter-spacing: .16em; text-transform: uppercase; color: #fff; padding-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { font-size: 14px; padding: 5px 0; }
.site-footer a:hover { color: #fff; }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 26px; font: 300 13px var(--font-en); }
.site-footer__social { display: flex; gap: 20px; }
@media (max-width: 980px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 600px) { .site-footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* 捲動進場（尊重減少動態設定） */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* 麵包屑 */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: #888; padding-bottom: 22px; }
.crumbs a:hover { color: var(--navy); }
.crumbs [aria-current] { color: var(--ink); }

/* 服務頁頁首：半圓 */
.page-head--half .m1 { left: 0; right: 0; bottom: 40px; height: 120px; background: var(--navy); border-radius: 120px 120px 0 0; }
.page-head--half .m2 { left: 0; right: 0; bottom: 0; height: 40px; border: 1px solid var(--ink); border-top: 0; }
.page-head--half .m3 { width: 48px; height: 48px; right: 24px; top: 20px; background: var(--accent); }
@media (max-width: 980px) { .page-head--half .m1 { height: 48px; bottom: 16px; } .page-head--half .m2 { height: 16px; } .page-head--half .m3 { width: 20px; height: 20px; right: 8px; top: 8px; } }

/* 服務頁 */
.services-page { padding: 80px 0 100px; }
.services-page__grid { display: grid; grid-template-columns: 220px 1fr; gap: 72px; align-items: start; }
.services-index { position: sticky; top: 28px; }
.services-index ol { list-style: none; padding: 0; border-top: 1px solid var(--ink); }
.services-index a { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: #555; transition: color .2s, padding .2s; }
.services-index a span { font: 400 12px/1.9 var(--font-en); color: var(--navy); }
.services-index a:hover, .services-index a.is-current { color: var(--ink); padding-left: 6px; }
.service-block { padding: 0 0 96px; margin-bottom: 96px; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.service-block:last-child { margin-bottom: 0; border-bottom: 0; padding-bottom: 0; }
.service-block__en { font: 300 clamp(34px, 5vw, 64px)/1.05 var(--font-en); color: var(--ink); letter-spacing: -.01em; padding-bottom: 26px; }
.service-block__dot { display: inline-block; width: .22em; height: .22em; margin-left: .12em; background: var(--navy); vertical-align: baseline; }
.service-block:nth-child(3n+2) .service-block__dot { background: var(--accent); }
.service-block:nth-child(3n) .service-block__dot { border-radius: 50%; }
.service-block__name { display: flex; gap: 14px; align-items: baseline; font-size: 22px; font-weight: 500; color: var(--ink); padding-bottom: 10px; }
.service-block__name span { font: 400 13px var(--font-en); color: var(--navy); }
.service-block__promise { font-size: 18px; color: var(--navy); padding-bottom: 22px; }
.service-block__body p { font-size: 15px; line-height: 1.95; color: #4a4a4a; max-width: 720px; }
.service-block .link-arrow { display: inline-block; margin-top: 30px; }
.service-block__label { font-size: 13px; font-weight: 500; color: var(--ink); padding: 30px 0 14px; letter-spacing: .06em; }
.service-block__label span { font: 400 11px var(--font-en); letter-spacing: .14em; text-transform: uppercase; color: #999; margin-left: 6px; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--line); padding: 8px 14px; font-size: 13px; color: var(--ink); }
.service-block__works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 36px 0 22px; }
.mini-work__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.mini-work__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mini-work:hover img { transform: scale(1.05); }
.mini-work__title { display: block; font-size: 13px; color: #555; padding-top: 10px; line-height: 1.5; }
@media (max-width: 980px) {
  .services-page__grid { grid-template-columns: 1fr; gap: 40px; }
  .services-index { position: static; }
  .services-index ol { display: flex; flex-wrap: wrap; gap: 0 18px; border-top: 0; }
  .services-index a { border: 0; padding: 6px 0; }
}
@media (max-width: 600px) { .service-block__works { grid-template-columns: 1fr 1fr; } .service-block__works a:nth-child(3) { display: none; } }

/* 關於：理念 */
.about-beliefs { padding: 100px 0 0; }
.belief { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: end; padding: 44px 0; border-top: 1px solid var(--line); }
.belief:first-of-type { border-top-color: var(--ink); }
.belief__en { font: 300 clamp(32px, 4.6vw, 60px)/1.05 var(--font-en); color: var(--ink); letter-spacing: -.01em; padding: 0; }
.belief__dot { display: inline-block; width: .2em; height: .2em; margin-left: .1em; background: var(--navy); }
.belief__dot--1 { background: var(--accent); border-radius: 50%; }
.belief__dot--2 { background: var(--navy); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.belief__body h3 { font-size: 18px; font-weight: 500; color: var(--ink); padding-bottom: 10px; }
.belief__body p { font-size: 14px; line-height: 1.9; color: #555; }
.about-selected { padding: 100px 0 0; }
@media (max-width: 980px) { .belief { grid-template-columns: 1fr; gap: 18px; padding: 32px 0; } }

/* 下一頁 */
.next-page { display: block; border-top: 1px solid var(--line); background: #fff; transition: background .3s; }
.next-page__inner { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 56px 0; }
.next-page__label { grid-column: 1 / -1; font: 400 12px var(--font-en); letter-spacing: .14em; text-transform: uppercase; color: var(--navy); padding-bottom: 12px; }
.next-page__title { font: 300 clamp(40px, 7vw, 96px)/1 var(--font-en); color: var(--ink); letter-spacing: -.01em; }
.next-page__title small { display: block; font: 400 15px var(--font); letter-spacing: .1em; color: #555; padding-top: 14px; }
.next-page__arrow { width: 72px; height: 72px; border-radius: 50%; background: var(--navy); position: relative; transition: transform .35s; }
.next-page__arrow::before { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -12px; border-top: 2px solid #fff; border-right: 2px solid #fff; transform: rotate(45deg); }
.next-page:hover { background: var(--paper); }
.next-page:hover .next-page__arrow { transform: translateX(8px); }

/* 服務頁 v2：左側固定變形圖形、深藍＋灰、去線條 */
.services-side { position: sticky; top: 40px; }
.services-index { position: static; }
.morph { display: none; }
.morph.is-live { display: block; margin-bottom: 36px; }
.morph svg { width: 220px; height: 220px; display: block; }
.morph__n { fill: var(--navy); }
.morph__g { fill: var(--gray); }
.morph__label { font-size: 13px; letter-spacing: .1em; color: #777; padding-top: 18px; min-height: 1.7em; }
.services-index ol { border-top: 0; }
.services-index a { border-bottom: 0; padding: 8px 0; color: #999; }
.services-index a span { color: #bbb; }
.services-index a.is-current { color: var(--navy); padding-left: 0; }
.services-index a.is-current span { color: var(--navy); }
.service-block { border-bottom: 0; padding-bottom: 0; margin-bottom: 160px; min-height: 60vh; }
.service-block__icon { display: block; margin-bottom: 28px; }
.morph.is-live ~ * { }
.services-page:has(.morph.is-live) .service-block__icon { display: none; }
.service-block__en { font-size: clamp(32px, 4.4vw, 56px); }
.scope { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 14px; color: var(--ink); }
.scope li:not(:last-child)::after { content: "・"; color: var(--gray); margin: 0 6px; }
.services-page__grid { grid-template-columns: 260px 1fr; gap: 96px; }
@media (max-width: 980px) {
  .services-side { position: static; }
  .morph.is-live { display: none; }
  .services-page:has(.morph.is-live) .service-block__icon { display: block; }
  .service-block { min-height: 0; margin-bottom: 96px; }
}
.cat-icon { display: block; }
.cat-icon .ci-n { fill: var(--navy); }
.cat-icon .ci-g { fill: var(--gray); }
.service .cat-icon { margin-bottom: 30px; transition: transform .35s; }
.service a:hover .cat-icon { transform: translateY(-4px); }
/* 微圓角：方形約邊長 11%，與 icon 一致 */
.shape--square, .page-head--square .m1, .page-head--square .m2, .page-head--grid .m1, .page-head--half .m3,
.home-intro__mark .m2, .cta__shapes span:nth-child(2), .work-card__image::after, .portfolio__overlay::after { border-radius: 11%; }
.page-head--square .m3, .page-head--grid .page-head__mark::after { border-radius: 8%; }

/* =========================================================
   配色 v3：灰為主、深藍少量點睛
   ========================================================= */
:root { --gray: #c5c8cf; --gray-light: #f0f1f3; --gray-mid: #8b909a; --accent: #c5c8cf; }
.morph svg { transform-origin: 50% 70%; will-change: transform; }
/* 頁首：拿掉格線，大形改灰、只留一個小深藍 */
.page-head { background: #fff; border-bottom: 0; }
.page-head__text { background: none; }
.page-head--square .m1 { background: var(--gray); }
.page-head--square .m2 { background: var(--navy); }
.page-head--square .m3 { display: none; }
.page-head--grid .m1 { background: var(--gray); }
.page-head--grid .m2 { background: var(--navy); }
.page-head--grid .m3 { background: var(--gray-light); }
.page-head--grid .page-head__mark::after { border: 0; background: var(--gray); border-radius: 11%; }
.page-head--triangle .m1 { background: var(--gray); }
.page-head--triangle .m2 { background: var(--navy); }
.page-head--triangle .m3 { display: none; }
.page-head--half .m1 { background: var(--gray); }
.page-head--half .m2 { display: none; }
.page-head--half .m3 { background: var(--navy); }
/* 首頁主視覺幾何 */
.home-intro__mark .m1 { background: var(--gray); }
.home-intro__mark .m2 { background: var(--gray-light); border: 0; mix-blend-mode: normal; }
.home-intro__mark .m3 { background: var(--navy); }
.home-intro__mark .m4 { display: none; }
/* 數字與線條減量 */
.stats { border: 0; }
.stats li { border-left: 0; padding-left: 0; }
.stats li:nth-child(n+3) { border-top: 0; }
.stats__num { color: var(--ink); }
.services { border-top: 0; }
.service a { border: 0; }
.strengths { border-top: 0; }
.strength { border-right: 0; }
.strength__num { color: var(--gray-mid); }
.belief, .belief:first-of-type { border-top: 0; }
.clients-wall { border: 0; background: var(--gray-light); }
.project__facts, .project__facts div { border-color: var(--gray-light); }
.project__facts { border-top-color: var(--gray); }
.project-nav { border-top: 0; }
.row--channels { border-top: 0; }
.channel, .channel:first-child { border: 0; }
.channel { background: var(--gray-light); padding: 28px; }
.row--channels { gap: 16px; }
.next-page { border-top: 0; background: var(--gray-light); }
.next-page:hover { background: #e7e9ec; }
.next-page__arrow { background: var(--ink); }
/* 合作 CTA：淺灰底、深藍只用在按鈕 */
.cta { background: var(--gray-light); color: var(--ink); }
.cta__title { color: var(--ink); }
.cta__kicker { color: var(--gray-mid); opacity: 1; }
.cta .btn-solid--light { background: var(--navy); color: #fff; border-color: var(--navy); }
.cta .btn-solid--light:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.cta .btn-line--light { border-color: var(--ink); color: var(--ink); }
.cta .btn-line--light:hover { background: var(--ink); color: #fff; }
.cta__shapes span:nth-child(1) { border-color: var(--gray); }
.cta__shapes span:nth-child(2) { background: var(--gray); }
.cta__shapes span:nth-child(3) { background: var(--navy); opacity: .9; }
/* 頁尾：中灰深色底，不用色條 */
.site-footer { background: #2a2d33; }
.site-footer__shapes { display: none; }
.site-footer__bottom { border-top-color: rgba(255,255,255,.1); }
/* 作品 hover 角落小方塊改灰 */
.work-card__image::after, .portfolio__overlay::after { background: var(--gray); }

/* =========================================================
   MG 動態：軟Q彈性（彈簧曲線、果凍、彈出、漂浮）
   ========================================================= */
:root { --spring: cubic-bezier(.34, 1.56, .64, 1); --soft: cubic-bezier(.22, 1, .36, 1); }
.home-services { padding-top: 96px; }
.home-services__lead { font-size: 15px; line-height: 1.9; color: #555; max-width: 760px; margin: -12px 0 40px; }
@keyframes kr-pop { 0% { transform: scale(0); } 55% { transform: scale(1.14); } 75% { transform: scale(.94); } 90% { transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes kr-jelly { 0%, 100% { transform: scale(1, 1); } 25% { transform: scale(1.14, .86); } 40% { transform: scale(.88, 1.12); } 55% { transform: scale(1.06, .94); } 70% { transform: scale(.97, 1.03); } 85% { transform: scale(1.01, .99); } }
@keyframes kr-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes kr-wobble { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-6deg); } 60% { transform: rotate(4deg); } 80% { transform: rotate(-2deg); } }
@media (prefers-reduced-motion: no-preference) {
  /* 頁首幾何：依序彈出，之後輕輕漂浮 */
  .page-head__mark { animation: kr-float 6s ease-in-out 1.4s infinite; }
  .page-head__mark span, .page-head__mark::after { animation: kr-pop .9s var(--spring) both; }
  .page-head__mark .m1 { animation-delay: .1s; } .page-head__mark .m2 { animation-delay: .35s; } .page-head__mark .m3 { animation-delay: .55s; }
  .page-head__mark::after { animation-delay: .7s; }
  .page-head__title, .page-head__lead, .page-head .kicker, .crumbs { animation: kr-rise .9s var(--spring) both; }
  .page-head .kicker { animation-delay: .05s; } .page-head__title { animation-delay: .12s; } .page-head__lead { animation-delay: .22s; }
  @keyframes kr-rise { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }
  /* 捲動進場：彈性 */
  .js .reveal { opacity: 0; transform: translateY(42px) scale(.94); transition: opacity .5s ease, transform .95s var(--spring); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  /* 互動：按鈕、icon、作品圖都帶彈性 */
  .btn-solid, .btn-line, .submit-button { transition: background .25s, color .25s, border-color .25s, transform .45s var(--spring); }
  .btn-solid:hover, .btn-line:hover, .submit-button:hover { transform: translateY(-3px) scale(1.04); }
  .btn-solid:active, .btn-line:active, .submit-button:active { transform: scale(.94); transition-duration: .12s; }
  .service a:hover .cat-icon { animation: kr-jelly .8s ease both; transform: none; }
  .service-block__icon .cat-icon, .project-nav__all .shape { transition: transform .5s var(--spring); }
  .project-nav__all:hover .shape { animation: kr-wobble .7s ease both; }
  .work-card__image img, .portfolio__image img, .mini-work__img img { transition: transform .8s var(--spring); }
  .work-card a:hover img, .portfolio__item a:hover img { transform: scale(1.06); }
  .work-card__image::after, .portfolio__overlay::after { transition: width .5s var(--spring), height .5s var(--spring); }
  .next-page__arrow { transition: transform .6s var(--spring); }
  .next-page:hover .next-page__arrow { transform: translateX(10px) scale(1.08); }
  .link-arrow span { transition: transform .45s var(--spring); }
  .link-arrow:hover span { transform: translateX(6px); }
  .site-nav li.is-current a::after { animation: kr-pop .7s var(--spring) .3s both; }
  .site-social a { transition: transform .45s var(--spring), opacity .3s; }
  .site-social a:hover { transform: translateY(-3px) scale(1.1); opacity: 1; }
  .faq summary::after { transition: transform .5s var(--spring); }
  .portfolio__filters a { transition: color .3s, transform .45s var(--spring); }
  .portfolio__filters a:hover { transform: translateY(-2px); }
  .portfolio__filters a.is-active::after { animation: kr-bar .6s var(--spring) both; transform-origin: left; }
  @keyframes kr-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  /* 流程：圓點依序彈出 */
  .process li.reveal .process__dot { transform: scale(0); transition: transform .7s var(--spring) .25s; }
  .process li.reveal.is-in .process__dot { transform: scale(1); }
  .cta__shapes span { animation: kr-float 7s ease-in-out infinite; }
  .cta__shapes span:nth-child(2) { animation-delay: -2s; } .cta__shapes span:nth-child(3) { animation-delay: -4s; animation-duration: 5s; }
  .stats__num { display: inline-block; }
}

/* =========================================================
   第三輪：固定選單、首頁幾何故事、About 流程、Loading
   ========================================================= */
/* 編號標籤全部移除 */
.kicker { display: none; }

/* 輪播：只留圓點 */
.hero-slider__arrow { display: none; }
.hero-slider__dots button { transition: width .5s var(--spring), background .3s; border-radius: 4px; }
.hero-slider__dots button.is-active { width: 22px; }

/* 固定選單 */
.site-header { position: sticky; top: 0; transition: height .5s var(--soft), padding .5s var(--soft), background .4s, box-shadow .4s; }
.site-header .site-logo img { transition: transform .6s var(--spring); transform-origin: left center; }
.site-header__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none; opacity: 0; transition: opacity .4s; }
.site-header__progress i { display: block; height: 100%; background: var(--navy); transform: scaleX(0); transform-origin: left; }
.site-header.is-scrolled { height: 66px; padding-top: 10px; background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 6px 24px -18px rgba(20, 30, 60, .35); }
.site-header.is-scrolled .site-logo img { transform: scale(.82); }
.site-header.is-scrolled .site-header__progress { opacity: 1; }
.site-header.is-scrolled .site-nav li.is-current a::after { animation: kr-pop .6s var(--spring) both; }
@media (min-width: 981px) {
  .site-nav a { position: relative; transition: color .3s, transform .45s var(--spring); }
  .site-nav a:hover { opacity: 1; color: var(--navy); transform: translateY(-2px); }
}
@media (max-width: 980px) {
  .site-header.is-scrolled { height: 62px; padding-top: 8px; }
}

/* 首頁：捲動幾何故事 */
.story { padding: 40px 0 40px; }
.story__grid { display: grid; grid-template-columns: 340px 1fr; gap: 96px; align-items: start; }
.story__side { position: sticky; top: calc(50vh - 170px); }
.morph--story svg { width: 300px; height: 300px; }
.morph--story .morph__label { font: 400 14px var(--font-en); letter-spacing: .14em; color: var(--gray-mid); padding-top: 26px; }
.story__chapter { min-height: 82vh; display: flex; flex-direction: column; justify-content: center; padding: 60px 0; transition: opacity .6s ease; }
.story:has(.morph.is-live) .story__chapter:not(.is-current) { opacity: .28; }
.story__icon { display: none; margin-bottom: 26px; }
.story__en { font: 300 14px var(--font-en); letter-spacing: .2em; text-transform: uppercase; color: var(--gray-mid); padding-bottom: 18px; }
.story__title { font-size: clamp(28px, 3.6vw, 46px); font-weight: 700; line-height: 1.3; color: var(--ink); padding: 0 0 22px; letter-spacing: .02em; }
.story__title span { display: block; font-size: .46em; font-weight: 400; color: var(--navy); letter-spacing: .12em; padding-top: 14px; }
.story__text { font-size: 16px; font-weight: 300; line-height: 2; color: #4a4a4a; max-width: 620px; padding-bottom: 26px; }
.story-services { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; max-width: 760px; }
.story-services a { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto auto; column-gap: 16px; padding: 18px 0; }
.story-services .cat-icon { grid-row: 1 / 4; transition: transform .5s var(--spring); }
.story-services a:hover .cat-icon { animation: kr-jelly .8s ease both; }
.story-services__name { font-size: 18px; font-weight: 700; color: var(--ink); }
.story-services__desc { font-size: 14px; font-weight: 300; color: #555; padding: 4px 0; }
.story-services__count { font: 400 12px var(--font-en); letter-spacing: .08em; color: var(--navy); }
.story-stats { list-style: none; padding: 10px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 34px 40px; }
.story-stats li { display: flex; flex-direction: column; gap: 8px; }
.story-stats .stats__num { font: 300 clamp(40px, 4.4vw, 60px)/1 var(--font-en); color: var(--ink); }
.story-stats li:nth-child(2) .stats__num { color: var(--navy); }
@media (max-width: 980px) {
  .story__grid { grid-template-columns: 1fr; gap: 0; }
  .story__side { display: none; }
  .story__icon { display: block; }
  .story__chapter { min-height: 0; padding: 56px 0 8px; }
  .story-services { grid-template-columns: 1fr; }
}
.home-work { padding-top: 70px; }
.home-work .section-title { padding-bottom: 32px; }
.home-work__more { text-align: center; padding-top: 56px; }

/* 作品 hover：移除角落方塊，標題下方深藍線條＋小圓點 */
.work-card__image::after, .portfolio__overlay::after { display: none !important; }
.work-card__title span, .portfolio__title span {
  background: linear-gradient(var(--navy), var(--navy)) 0 100% / 0 2px no-repeat;
  padding-bottom: 3px; transition: background-size .6s var(--soft), color .3s;
  position: relative;
}
.work-card__title span::after, .portfolio__title span::after {
  content: ""; position: absolute; right: -12px; bottom: -2px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--navy); transform: scale(0); transition: transform .5s var(--spring) .15s;
}
.work-card a:hover .work-card__title span, .portfolio__item a:hover .portfolio__title span,
.work-card a:focus-visible .work-card__title span, .portfolio__item a:focus-visible .portfolio__title span { background-size: 100% 2px; color: var(--navy); }
.work-card a:hover .work-card__title span::after, .portfolio__item a:hover .portfolio__title span::after,
.work-card a:focus-visible .work-card__title span::after, .portfolio__item a:focus-visible .portfolio__title span::after { transform: scale(1); }

/* 服務頁：字重層次 */
.service-block__en { font-weight: 300; }
.service-block__name { font-size: 26px; font-weight: 700; letter-spacing: .03em; }
.service-block__promise { font-size: 19px; font-weight: 500; line-height: 1.6; }
.service-block__body p { font-weight: 300; color: #555; }
.service-block__label { font-weight: 700; }
.scope li { font-size: 14px; font-weight: 500; color: var(--ink); }
.services-index a { font-weight: 400; }
.services-index a.is-current { font-weight: 700; }

/* About：前言與標語融入頁首 */
.page-about .page-head { padding-bottom: 0; }
.about-intro { padding: 36px 0 0; }
.about-intro__flow > * { max-width: 900px; }
.page-about .page-head__inner { padding-bottom: 24px; }
.about-intro__statement { font-size: clamp(18px, 1.7vw, 22px); font-weight: 300; line-height: 2; color: var(--ink); max-width: 820px; padding-bottom: 48px; }
.about-quote { position: relative; margin: 0; padding: 40px 0 8px 96px; max-width: 900px; }
.about-quote blockquote { margin: 0; }
.about-quote blockquote p span { display: block; }
.about-quote blockquote p { font-size: clamp(24px, 3vw, 38px); font-weight: 700; line-height: 1.45; color: var(--navy); letter-spacing: .03em; }
.about-quote figcaption { font-size: 15px; font-weight: 400; color: var(--gray-mid); padding-top: 14px; }
.about-quote__mark { position: absolute; left: 0; top: 44px; width: 64px; height: 64px; }
.about-quote__mark i { position: absolute; display: block; }
.about-quote__mark i:first-child { left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); }
.about-quote__mark i:last-child { right: 0; bottom: 0; width: 30px; height: 30px; border-radius: 11%; background: var(--gray); }
.stats--about { margin-top: 64px; }
@media (max-width: 600px) { .about-quote { padding-left: 0; padding-top: 84px; } .about-quote__mark { top: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .about-quote.is-in .about-quote__mark i { animation: kr-pop .9s var(--spring) both; }
  .about-quote.is-in .about-quote__mark i:last-child { animation-delay: .2s; }
}

/* 優勢：幾何小記號取代 01 02 */
.strength__mark { display: block; width: 28px; height: 28px; margin-bottom: 26px; background: var(--navy); }
.strength__mark--0 { border-radius: 50%; }
.strength__mark--1 { background: var(--gray); clip-path: polygon(50% 4%, 100% 96%, 0 96%); }
.strength__mark--2 { border-radius: 11%; background: var(--gray); }
.strength__mark--3 { border-radius: 28px 28px 0 0; height: 14px; margin-top: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .strength.reveal .strength__mark { transform: scale(0); transition: transform .8s var(--spring) .3s; }
  .strength.reveal.is-in .strength__mark { transform: scale(1); }
}

/* 合作流程：光點沿線前進並依序點亮 */
.process--live::before { background: var(--gray); }
.process__fill, .process__runner { position: absolute; pointer-events: none; }
.process__fill { left: var(--x0); top: calc(var(--y0) - 1px); height: 2px; width: var(--run, 0); background: var(--navy); }
.process__runner { left: calc(var(--x0) + var(--run, 0px) - 9px); top: calc(var(--y0) - 9px); width: 18px; height: 18px; border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 6px rgba(0, 33, 117, .12); z-index: 2; }
.process--vertical .process__fill { width: 2px; height: var(--run, 0); left: calc(var(--x0) - 1px); top: var(--y0); }
.process--vertical .process__runner { left: calc(var(--x0) - 9px); top: calc(var(--y0) + var(--run, 0px) - 9px); }
.process--live .process__dot, .process--live li:first-child .process__dot, .process--live li:last-child .process__dot { background: #fff; border: 2px solid var(--gray); border-radius: 50%; transition: transform .5s var(--spring), background .3s, border-color .3s; }
.process--live li:last-child .process__dot { border-radius: 4px; }
.process--live li.is-lit .process__dot { background: var(--navy); border-color: var(--navy); transform: scale(1.25); }
.process--live .process__num, .process--live .process__name { transition: color .4s, transform .5s var(--spring); }
.process--live li:not(.is-lit) .process__num { color: var(--gray-mid); }
.process--live li:not(.is-lit) .process__name { color: #9a9ea6; }
.process--live li.is-lit .process__name { font-weight: 700; transform: translateY(-2px); }

/* Loading 動畫：三個幾何軟Q彈跳 → 往中間收合 → 組成 KERAN logo → 淡出 */
.loader { position: fixed; inset: 0; z-index: 1000; background: #fff; display: grid; place-items: center; animation: kr-loader-out .6s ease 5s forwards; }
.loader > * { grid-area: 1 / 1; }
.loader__shapes { display: flex; align-items: flex-end; gap: 16px; height: 64px; }
.loader__shapes i { display: block; width: 26px; height: 26px; background: var(--navy); transform-origin: 50% 100%; animation: kr-hop 1.1s var(--soft) infinite; }
.loader__c { border-radius: 50%; }
.loader__t { background: var(--gray) !important; clip-path: polygon(50% 6%, 98% 94%, 2% 94%); animation-delay: .14s !important; }
.loader__s { border-radius: 18%; animation-delay: .28s !important; }
.loader__logo { overflow: visible; }
.loader__logo .ll { fill: var(--navy); transform-box: fill-box; transform-origin: 50% 100%; opacity: 0; transform: translateY(18px) scale(.3); }
@keyframes kr-hop { 0%, 100% { transform: translateY(0) scale(1.15, .85); } 30% { transform: translateY(-30px) scale(.9, 1.1); } 55% { transform: translateY(0) scale(1.12, .88); } 70% { transform: translateY(-6px) scale(.98, 1.02); } 85% { transform: translateY(0) scale(1); } }
@keyframes kr-gather-l { 0% { transform: translate(0, 0) scale(1); } 45% { transform: translate(42px, -14px) scale(1.15); } 100% { transform: translate(42px, 0) scale(0); } }
@keyframes kr-gather-r { 0% { transform: translate(0, 0) scale(1); } 45% { transform: translate(-42px, -14px) scale(1.15); } 100% { transform: translate(-42px, 0) scale(0); } }
@keyframes kr-gather-m { 0% { transform: scale(1); } 45% { transform: translateY(-14px) scale(1.4); } 100% { transform: scale(0); } }
@keyframes kr-letter { 0% { opacity: 0; transform: translateY(18px) scale(.3); } 45% { opacity: 1; transform: translateY(-6px) scale(1.12, .9); } 65% { transform: translateY(0) scale(.94, 1.06); } 82% { transform: scale(1.02, .98); } 100% { opacity: 1; transform: none; } }
@keyframes kr-loader-out { to { opacity: 0; visibility: hidden; } }
.is-logo .loader__shapes i { animation: none; }
.is-logo .loader__c { animation: kr-gather-l .55s var(--soft) forwards !important; }
.is-logo .loader__t { animation: kr-gather-m .55s var(--soft) forwards !important; }
.is-logo .loader__s { animation: kr-gather-r .55s var(--soft) forwards !important; }
.is-logo .loader__logo .ll { animation: kr-letter .75s var(--soft) forwards; }
.is-logo .ll0 { animation-delay: .4s !important; } .is-logo .ll1 { animation-delay: .47s !important; } .is-logo .ll2 { animation-delay: .54s !important; }
.is-logo .ll3 { animation-delay: .61s !important; } .is-logo .ll4 { animation-delay: .68s !important; }
.is-loaded .loader { animation: none; opacity: 0; visibility: hidden; transition: opacity .55s ease, visibility 0s .55s; }
.is-loaded .loader__logo { transform: scale(1.06); transition: transform .55s var(--soft); }
.no-loader .loader { display: none; }
@media (prefers-reduced-motion: reduce) { .loader { display: none; } }
/* 固定選單後的錨點與側欄位置 */
:target, .service-block, [id] { scroll-margin-top: 96px; }
.services-side { top: 100px; }
.service-block__promise { padding-bottom: 18px; }
.story__chapter .link-arrow { align-self: flex-start; }
@media (max-width: 600px) { .about-intro__statement { padding-bottom: 28px; } .about-quote { margin-top: 12px; } }

/* 首頁設計服務：靜態版面＋滑過時的小動態 */
.home-services { padding: 100px 0 30px; }
.home-services .section-title { padding-bottom: 24px; }
.home-services__lead { margin: 0 0 44px; font-weight: 300; }
.services { gap: 0 8px; }
.service a, .service:first-child a { position: relative; padding: 30px 22px 28px; isolation: isolate; }
.service a::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 14px; background: var(--gray-light); opacity: 0; transform: scale(.86); transition: opacity .3s, transform .6s var(--spring); }
.service a:hover::before, .service a:focus-visible::before { opacity: 1; transform: scale(1); }
.service__icon { display: block; margin-bottom: 30px; }
.service .cat-icon > * { transform-box: fill-box; transform-origin: center; transition: transform .7s var(--spring), fill .3s; }
.service a:hover .cat-icon { animation: none; }
.service a:hover .cat-icon > :first-child { transform: translate(-38px, -28px) rotate(-12deg); }
.service a:hover .cat-icon > :last-child { transform: scale(1.1) rotate(6deg); }
.service__name { font-weight: 700; }
.service__name span { background: linear-gradient(var(--navy), var(--navy)) 0 100% / 0 2px no-repeat; padding-bottom: 3px; transition: background-size .55s var(--soft), color .3s; }
.service a:hover .service__name span { background-size: 100% 2px; color: var(--navy); }
.service__desc { font-weight: 300; transition: color .3s; }
.service a:hover .service__desc { color: var(--ink); }
.service__arrow { display: inline-block; transition: transform .5s var(--spring); }
.service a:hover .service__arrow { transform: translateX(8px); }
@media (max-width: 980px) { .services { gap: 0; } .service a, .service:first-child a { padding: 24px 14px; } }

/* About 頁首整合：一致的字級節奏 56 / 30 / 19 / 16 / 14 */
.page-about .page-head__inner { padding: 64px 0 0; align-items: start; }
.page-about .page-head__title { font-size: clamp(34px, 4.6vw, 56px); font-weight: 700; letter-spacing: .04em; padding-bottom: 28px; }
.page-about .page-head__lead { font-size: 19px; font-weight: 400; line-height: 1.9; color: var(--ink); max-width: 760px; }
.page-about .page-head__mark { margin-top: 40px; }
.about-intro { padding: 22px 0 0; }
.about-intro__flow > * { max-width: 760px; }
.about-intro__statement { font-size: 16px; font-weight: 300; line-height: 2; color: #555; padding-bottom: 0; }
.about-panel { margin-top: 72px; background: var(--gray-light); border-radius: 20px; padding: 56px 60px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.about-quote { padding: 0 0 0 84px; margin: 0; max-width: none; }
.about-quote__mark { top: 6px; width: 56px; height: 56px; }
.about-quote__mark i:first-child { width: 38px; height: 38px; }
.about-quote__mark i:last-child { width: 26px; height: 26px; }
.about-quote blockquote p { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.55; letter-spacing: .04em; }
.about-quote figcaption { font-size: 14px; color: var(--gray-mid); padding-top: 16px; }
.about-stats { list-style: none; padding: 0 0 0 48px; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 36px 32px; border-left: 1px solid var(--gray); }
.about-stats li { display: flex; flex-direction: column; gap: 8px; }
.about-stats .stats__num { font: 300 clamp(36px, 3.6vw, 48px)/1 var(--font-en); color: var(--ink); }
.about-stats li:nth-child(2) .stats__num { color: var(--navy); }
.about-stats .stats__label { font-size: 14px; font-weight: 400; color: #555; }
@media (max-width: 980px) {
  .about-panel { grid-template-columns: 1fr; padding: 40px 28px; gap: 36px; margin-top: 48px; }
  .about-stats { border-left: 0; padding: 32px 0 0; border-top: 1px solid var(--gray); }
  .page-about .page-head__lead { font-size: 17px; }
}
@media (max-width: 600px) { .about-quote { padding: 70px 0 0; margin: 0; } .about-quote__mark { top: 0; } }
.page-about .page-head__mark { margin-top: 0; }
.page-about .page-head__lead { padding-bottom: 0; }
.about-intro { padding-top: 16px; }
.about-intro__statement { font-size: 17px; font-weight: 400; color: #4a4a4a; line-height: 1.95; }
@media (min-width: 981px) { .services { margin: 0 -22px; } }
.service__icon { margin-bottom: 22px; }
.work-card__meta, .portfolio__meta { font-family: var(--font-en); font-size: 12px; letter-spacing: .08em; color: var(--gray-mid); }

/* 首頁設計服務：彈跳球 → 變成各分類 icon */
.services { position: relative; }
.svc-ball { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); opacity: 0; pointer-events: none; z-index: 3; will-change: transform; }
.services--ball .service__icon { transform: scale(0); }
.services--ball .service.is-on .service__icon { animation: kr-pop .8s var(--spring) both; }
.crumbs { display: none; }

/* About 客戶：分組 logo 牆，灰階 → 滑過轉彩色並彈起 */
.about-clients .section-title { padding-bottom: 40px; }
.client-group + .client-group { margin-top: 56px; }
.client-group__head { display: flex; align-items: baseline; gap: 14px; padding-bottom: 20px; }
.client-group__head span { font-size: 17px; font-weight: 700; color: var(--ink); }
.client-group__head small { font: 400 12px var(--font-en); letter-spacing: .12em; text-transform: uppercase; color: var(--gray-mid); }
.client-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.client { position: relative; aspect-ratio: 3 / 2; display: grid; place-items: center; background: var(--gray-light); border-radius: 14px; overflow: hidden; }
.client img { max-width: 70%; max-height: 58%; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.05); opacity: .7; transition: filter .4s, opacity .4s, transform .6s var(--spring); }
.client__name { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 12px; color: var(--navy); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .5s var(--spring); pointer-events: none; }
.client:hover img { filter: none; opacity: 1; transform: scale(1.08) translateY(-6px); }
.client:hover .client__name { opacity: 1; transform: none; }
.client::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #fff; transform: scale(.9); opacity: 0; transition: opacity .3s, transform .6s var(--spring); }
.client:hover::before { opacity: 1; transform: scale(1); box-shadow: inset 0 0 0 1px var(--gray); }
.client > * { position: relative; }
.client__name { position: absolute; }
@media (max-width: 980px) { .client-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .client-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } .client { border-radius: 10px; } .client img { filter: none; opacity: 1; } }
.client-grid { grid-auto-flow: row dense; }
.client { aspect-ratio: auto; height: clamp(92px, 8.6vw, 124px); }
@media (min-width: 981px) { .client.w6 { grid-column: span 2; } .client.w6 img { max-width: 52%; max-height: 44%; } }
@media (min-width: 601px) and (max-width: 980px) { .client.w4 { grid-column: span 2; } .client.w4 img { max-width: 52%; max-height: 44%; } }
@media (max-width: 600px) { .client { height: 84px; } .client.w3 { grid-column: span 2; } .client.w3 img { max-width: 60%; } }

/* About 客戶：滿版雙向跑馬燈（兩條細長橫條，上排往左、下排往右） */
.about-clients { padding-bottom: 100px; overflow: hidden; }
.about-clients .section-title { padding-bottom: 36px; }
.marquee-set { display: grid; gap: 10px; }
.marquee { display: flex; width: 100%; overflow: hidden; background: var(--gray-light); height: 100px; align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex: none; gap: 72px; padding-right: 72px; background: var(--gray-light); align-self: stretch; animation: kr-marquee 60s linear infinite; }
.marquee--right .marquee__track { animation-direction: reverse; animation-duration: 52s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li { flex: none; display: flex; align-items: center; }
.marquee__track img { display: block; height: auto; max-width: none; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.1); opacity: .8; transition: filter .35s, opacity .35s, transform .5s var(--spring); }
.marquee__track img:hover { filter: none; opacity: 1; transform: scale(1.12); }
@keyframes kr-marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (max-width: 600px) { .marquee { height: 76px; } .marquee__track { gap: 44px; padding-right: 44px; } .marquee__track img { transform: scale(.82); } .marquee__track img:hover { transform: scale(.9); } }
@media (prefers-reduced-motion: reduce) { .marquee { overflow-x: auto; } }

/* 選單：目前頁粗體＋滑動小方塊 */
.site-nav li.is-current a, .site-nav li.is-going a { font-weight: 500; color: var(--ink); }
.site-nav li.is-going ~ li.is-current a, .site-nav ul:has(.is-going) li.is-current:not(.is-going) a { font-weight: 300; color: var(--dark); }
.site-nav ul { position: relative; }
.site-nav__ind { position: absolute; left: 0; bottom: 2px; width: 6px; height: 6px; background: var(--navy); border-radius: 1px; opacity: 0; transition: transform .34s cubic-bezier(.5, 0, .2, 1.3), opacity .2s; pointer-events: none; }
.site-nav__ind.is-on { opacity: 1; }
.site-nav ul.has-ind li.is-current a::after { display: none; }
@media (max-width: 980px) { .site-nav__ind { display: none; } }

/* Logo：點選時軟Q彈跳 */
.site-logo { display: inline-block; }

/* 我們相信的事：三欄直條 */
.about-beliefs { padding-top: 110px; }
.beliefs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.beliefs .belief { display: flex; flex-direction: column; min-height: 460px; padding: 44px 34px 40px; background: var(--gray-light); border-radius: 20px; border: 0; position: relative; overflow: hidden; transition: transform .6s var(--spring), background .4s, color .4s; }
.belief__shape { width: 54px; height: 54px; background: var(--navy); margin-bottom: auto; transition: transform .8s var(--spring), background .4s; }
.belief--0 .belief__shape { border-radius: 50%; }
.belief--1 .belief__shape { background: var(--gray-mid); clip-path: polygon(50% 4%, 98% 96%, 2% 96%); }
.belief--2 .belief__shape { border-radius: 18%; }
.beliefs .belief__en { font: 300 clamp(28px, 2.6vw, 40px)/1.12 var(--font-en); letter-spacing: -.01em; color: var(--ink); padding: 60px 0 22px; }
.belief__title { font-size: 19px; font-weight: 700; color: var(--ink); padding-bottom: 10px; transition: color .4s; }
.belief__text { font-size: 15px; font-weight: 300; line-height: 1.9; color: #555; transition: color .4s; }
.beliefs .belief:hover { transform: translateY(-10px); background: var(--navy); }
.beliefs .belief:hover .belief__en, .beliefs .belief:hover .belief__title { color: #fff; }
.beliefs .belief:hover .belief__text { color: rgba(255, 255, 255, .78); }
.beliefs .belief:hover .belief__shape { background: #fff; transform: rotate(-12deg) scale(1.15); }
.beliefs .belief:hover .belief__en { transition: color .4s; }
@media (max-width: 980px) { .beliefs { grid-template-columns: 1fr; } .beliefs .belief { min-height: 0; } .beliefs .belief__en { padding-top: 34px; } }

/* 合作流程：目前步驟放大、顯示說明，可點選跳到該步驟 */
.process--live li { cursor: pointer; outline-offset: 6px; }
.process__desc { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .5s var(--soft), opacity .35s; }
.process__desc > span { overflow: hidden; font-size: 13px; font-weight: 300; line-height: 1.8; color: #555; padding-right: 10px; }
.process--live li.is-current .process__desc { grid-template-rows: 1fr; opacity: 1; }
.process--live li.is-current .process__dot { transform: scale(1.5); box-shadow: 0 0 0 6px rgba(0, 33, 117, .1); }
.process--live li.is-current .process__name { font-size: 19px; color: var(--navy); }
.process--live li:hover .process__dot { transform: scale(1.35); }
.process--live li:not(.is-lit):hover .process__name { color: var(--ink); }
.process__runner::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--navy); opacity: 0; }
.process--live:not(.is-moving) .process__runner::after { animation: kr-pulse 1.8s ease-out infinite; }
@keyframes kr-pulse { 0% { transform: scale(.6); opacity: .6; } 100% { transform: scale(1.8); opacity: 0; } }
.no-process-desc .process__desc { display: none; }
@media (max-width: 980px) { .process--live li.is-current .process__name { font-size: 17px; } }
.beliefs .belief { align-items: flex-start; gap: 0; }
.beliefs .belief__en { margin-top: auto; }
.belief__shape { margin-bottom: 0; }

/* 首頁：輪播收合成小球 */
.hero-slider__veil { position: absolute; inset: 0; z-index: 4; background: var(--navy); opacity: 0; pointer-events: none; }
.has-hero-story .hero-stage { position: relative; height: calc(min(calc(100vh - 94px), 760px) + 55vh); }
.has-hero-story .hero-stage .hero-slider { position: sticky; top: 66px; will-change: clip-path; }
.hero-slider.is-folding .hero-slider__dots { opacity: 0; transition: opacity .2s; }
.hero-ball { position: fixed; left: 0; top: 0; z-index: 90; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); opacity: 0; pointer-events: none; will-change: transform; }
.has-hero-story .home-services { padding-top: 40px; }

/* 設計服務 icon hover：整顆一起軟Q彈跳，不再拆開圖形 */
.service a:hover .cat-icon > :first-child, .service a:hover .cat-icon > :last-child { transform: none; }
.service .cat-icon { transform-origin: 50% 100%; overflow: visible; }
.service a:hover .cat-icon { animation: kr-icon-hop .75s var(--soft) both; }
@keyframes kr-icon-hop { 0% { transform: none; } 22% { transform: scale(1.12, .88); } 45% { transform: translateY(-9px) scale(.94, 1.07); } 68% { transform: translateY(0) scale(1.05, .95); } 84% { transform: scale(.98, 1.02); } 100% { transform: none; } }

/* =========================================================
   手機版（≤768px）與平板（769–1024px）優化
   ========================================================= */
.site-nav__social { display: none; }
@media (max-width: 980px) {
  /* 修正整頁左右滑動 */
  .services-page__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .services-list, .service-block { min-width: 0; }
  .row--channels { grid-template-columns: minmax(0, 1fr); }
  .channel { min-width: 0; flex-wrap: wrap; }
  .channel * { min-width: 0; overflow-wrap: anywhere; }
}
@media (max-width: 768px) {
  html, body { overflow-x: clip; }
  .wrap, .page-head__inner, .portfolio, .row, .project .row--project, .row--channels, .contact-form .row { width: auto; margin-left: 20px; margin-right: 20px; }
  body { font-size: 15px; }
  .section-title { font-size: 24px; padding-bottom: 20px; }

  /* 固定頁首與全螢幕選單 */
  .site-header, .site-header.is-scrolled { height: 62px; padding-top: 0; display: flex; align-items: center; }
  .site-header__row { width: auto; margin: 0 20px; flex: 1; }
  .site-header .site-logo img, .site-header.is-scrolled .site-logo img { width: 104px; transform: none; }
  .menu-toggle { width: 44px; height: 44px; margin-right: -6px; z-index: 2; }
  .menu-toggle span { top: 21px; left: 8px; }
  .site-nav { display: flex; flex-direction: column; justify-content: center; position: fixed; inset: 0; z-index: 1; padding: 80px 28px 40px; background: #fff; border: 0; box-shadow: none;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
  .site-nav.is-open { display: flex; opacity: 1; visibility: visible; transition: opacity .3s; }
  .site-nav li { overflow: hidden; }
  .site-nav a, .site-nav li.is-current a { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border: 0; font: 400 38px/1.2 var(--font-en); color: var(--ink); transform: translateY(110%); transition: transform .6s var(--spring); }
  .site-nav .sr-only { position: static !important; width: auto; height: auto; clip: auto; margin: 0; overflow: visible; white-space: nowrap; font: 400 14px var(--font); color: var(--gray-mid); }
  .site-nav li.is-current a { color: var(--navy); font-weight: 500; }
  .site-nav li.is-current a::after { display: none; }
  .site-nav.is-open a, .site-nav.is-open li.is-current a { transform: none; }
  .site-nav.is-open li:nth-child(2) a { transition-delay: .05s; } .site-nav.is-open li:nth-child(3) a { transition-delay: .1s; } .site-nav.is-open li:nth-child(4) a { transition-delay: .15s; }
  .site-nav__social { display: flex; gap: 16px; margin-top: 40px; }
  .site-nav__social img { width: 34px; height: 34px; }
  .nav-open { overflow: hidden; }

  /* 頁首：幾何記號縮小放在標題右上 */
  .page-head__inner { padding: 36px 0 28px; }
  .page-head__text { padding-right: 0; }
  .page-head__title, .page-about .page-head__title { font-size: 28px; padding: 0 76px 16px 0; }
  .page-head__lead, .page-about .page-head__lead { font-size: 15px; line-height: 1.85; }
  .page-head__mark, .page-about .page-head__mark { position: absolute; right: 20px; top: 36px; width: 60px; height: 60px; margin: 0; }
  .page-head--square .m1 { inset: 10px 10px 0 0; } .page-head--square .m2 { width: 22px; height: 22px; }
  .page-head--grid .m1, .page-head--grid .m2, .page-head--grid .m3, .page-head--grid .page-head__mark::after { width: 27px; height: 27px; }
  .page-head--triangle .m1 { inset: 0 0 8px 8px; } .page-head--triangle .m2 { width: 18px; height: 18px; }
  .page-head--half .m1 { height: 30px; bottom: 10px; } .page-head--half .m3 { width: 16px; height: 16px; right: 4px; top: 4px; }

  /* 首頁 */
  .hero-slider { height: 62vh; min-height: 300px; }
  .home-services, .has-hero-story .home-services { padding: 56px 0 20px; }
  .home-services__lead { margin-bottom: 20px; font-size: 15px; }
  .services, .services--ball { display: block; margin: 0; }
  .service a, .service:first-child a { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; align-items: center; padding: 16px 0; border-radius: 0; }
  .service a::before { display: none; }
  .service__icon { grid-row: 1 / 3; margin: 0; }
  .service__icon .cat-icon { width: 48px; height: 48px; }
  .service__name { font-size: 17px; padding: 0 0 2px; }
  .service__desc { padding: 0; font-size: 13px; }
  .home-work { padding: 40px 0 70px; }
  .work-grid { grid-template-columns: 1fr; gap: 32px; }
  .home-work__more { padding-top: 36px; }
  .home-work__more .btn-line { width: 100%; justify-content: center; min-height: 48px; }

  /* About */
  .about-intro__statement { font-size: 15px; }
  .about-panel { margin-top: 36px; padding: 32px 22px; border-radius: 16px; }
  .about-quote { padding: 60px 0 0; }
  .about-quote blockquote p { font-size: 21px; }
  .about-stats { gap: 24px 16px; }
  .about-stats .stats__num { font-size: 34px; }
  .about-beliefs { padding-top: 64px; }
  .beliefs { gap: 12px; }
  .beliefs .belief { min-height: 0; padding: 28px 22px; border-radius: 16px; }
  .beliefs .belief__en { font-size: 26px; padding: 22px 0 14px; }
  .belief__shape { width: 36px; height: 36px; }
  .beliefs .belief:hover { transform: none; background: var(--gray-light); }
  .beliefs .belief:hover .belief__en, .beliefs .belief:hover .belief__title { color: var(--ink); }
  .beliefs .belief:hover .belief__text { color: #555; }
  .beliefs .belief:hover .belief__shape { background: var(--navy); transform: none; }
  .beliefs .belief--1:hover .belief__shape { background: var(--gray-mid); }
  .about-process { padding-top: 60px; }
  .process--live li { padding-top: 6px; padding-bottom: 22px; min-height: 44px; }
  .about-clients { padding-bottom: 60px; }
  .marquee { height: 64px; }
  .marquee__track { gap: 36px; padding-right: 36px; animation-duration: 40s; }
  .marquee--right .marquee__track { animation-duration: 36s; }
  .marquee__track img { filter: none; opacity: 1; transform: scale(.75); }
  .faq summary { padding-top: 16px; padding-bottom: 16px; }

  /* Services */
  .services-side { position: sticky; top: 62px; z-index: 5; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); margin: 0 -20px; padding: 0 20px; }
  .services-index ol { display: flex; flex-wrap: nowrap; gap: 0 20px; overflow-x: auto; scrollbar-width: none; padding: 4px 0; }
  .services-index ol::-webkit-scrollbar { display: none; }
  .services-index li { flex: none; }
  .services-index a { padding: 12px 0; font-size: 14px; white-space: nowrap; border-bottom: 2px solid transparent; }
  .services-index a.is-current { color: var(--navy); border-bottom-color: var(--navy); }
  .service-block { padding: 40px 0; }
  .service-block__en { font-size: 30px; padding-bottom: 16px; }
  .service-block__name { font-size: 22px; }
  .service-block__promise { font-size: 17px; }
  .service-block__icon .cat-icon { width: 56px; height: 56px; }
  .service-block .link-arrow { display: inline-flex; align-items: center; min-height: 44px; }

  /* Work */
  .portfolio__filters ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -20px 24px; padding: 0 20px; }
  .portfolio__filters ul::-webkit-scrollbar { display: none; }
  .portfolio__filters li { flex: none; }
  .portfolio__filters a { display: block; padding: 14px 12px; white-space: nowrap; }
  .portfolio__grid { grid-template-columns: 1fr; row-gap: 32px; }
  .portfolio__pagination button { min-width: 44px; min-height: 44px; }

  /* Contact */
  .row--channels { gap: 10px; }
  .channel { padding: 20px; gap: 14px; border-radius: 14px; }
  .channel img, .channel svg { width: 40px; height: auto; }
  .channel strong, .channel .channel__value, .channel .js-mail-text { font-size: 17px; }
  .contact-form input, .contact-form textarea { min-height: 52px; font-size: 16px; }
  .contact-form .submit-button, .contact-form button[type=submit] { width: 100%; min-height: 50px; }

  /* 作品內頁 */
  .project { padding-top: 28px; }
  .project-nav { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 36px; }
  .project-nav a { display: block; padding: 16px; background: var(--gray-light); border-radius: 12px; font-size: 14px; min-height: 44px; }
  .project-nav__next { text-align: right; }
  .project-nav .project-nav__all { display: none; }

  /* 頁尾：精簡 */
  .site-footer__grid { display: block; }
  .site-footer__col:not(:last-child) { display: none; }
  .site-footer__brand p { font-size: 13px; }
  .site-footer__col { margin-top: 24px; }
  .site-footer__col a { display: inline-block; padding: 8px 0; }
  .site-footer__social a { display: inline-block; padding: 10px 6px; }
  .next-page__title { font-size: 34px; }
}
@media (max-width: 768px) {
  .site-header.is-scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 255, 255, .97); }
  .site-logo { position: relative; z-index: 2; }
}

.site-logo { position: relative; }

/* 手機版首頁 = 作品集：同一網址，電腦版顯示輪播與服務，手機版只顯示作品集 */
.home-mwork { display: none; }
@media (max-width: 768px) {
  .hero-stage, .home-services, .home-work { display: none; }
  .home-mwork { display: block; }
}

/* 404：Bauhaus 幾何遊樂場 */
.notfound { padding: 60px 0 80px; }
.notfound__row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: end; }
.notfound__code { margin: 0 0 12px; font: 500 13px/1 var(--font-en); letter-spacing: .2em; text-transform: uppercase; color: var(--navy); }
.notfound__title { margin: 0 0 18px; font: 500 clamp(30px, 4vw, 44px)/1.25 var(--font); color: var(--ink); letter-spacing: .04em; }
.notfound__text p { margin: 0 0 14px; font-size: 15px; }
.notfound__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px !important; }
.nf-js-only { display: none; }
.nf-on .nf-js-only { display: inline; }
.nf-stage { position: relative; height: clamp(380px, 58vh, 560px); overflow: hidden; background: var(--paper); border-bottom: 3px solid var(--ink); cursor: crosshair; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.nf-body { position: absolute; left: 0; top: 0; cursor: grab; touch-action: none; will-change: transform; }
.nf-body.is-held { cursor: grabbing; z-index: 5; }
.nf-digit { display: flex; align-items: center; justify-content: center; font: 500 1px/1 var(--font-en); color: var(--ink); }
.nf-ring { border-radius: 50%; border: solid var(--navy); }
.nf-circle { border-radius: 50%; background: var(--navy); }
.nf-square { background: var(--ink); }
.nf-tri { background: var(--navy); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.nf-half { background: var(--gray); border-radius: 999px 999px 0 0; }
.nf-gray { background: var(--gray); }
.nf-light { background: var(--gray-light, #f0f1f3); border: 1px solid var(--line); }
/* 沒有 JS 時排成一列靜態構圖 */
.nf-stage:not(.is-live) { display: flex; align-items: flex-end; justify-content: center; gap: 10px; padding: 0 20px; cursor: default; }
.nf-stage:not(.is-live) .nf-body { position: static; cursor: default; }
.nf-stage:not(.is-live) .nf-digit { font-size: 150px; height: 160px; }
.nf-stage:not(.is-live) .nf-ring { width: 120px; height: 120px; border-width: 22px; margin-bottom: 20px; }
.nf-stage:not(.is-live) .nf-shape { display: none; }
@media (max-width: 768px) {
  .notfound { padding: 30px 0 50px; }
  .notfound__row { grid-template-columns: 1fr; gap: 28px; }
  .nf-stage { height: 400px; }
  .nf-stage:not(.is-live) .nf-digit { font-size: 100px; height: 110px; }
  .nf-stage:not(.is-live) .nf-ring { width: 80px; height: 80px; border-width: 15px; margin-bottom: 15px; }
}

/* 中文排版：兩側對齊、避免最後一行只剩一個字（JS 會把段落最後兩個字黏在一起） */
.is-just { text-align: justify; text-justify: inter-character; }
main p, main li, main dd, main h1, main h2, main h3, .site-footer p { text-wrap: pretty; }
.nobr { white-space: nowrap; }

/* @dark-auto-start */
/* 自動產生，請勿手改：python3 bin/gen-dark.py --write */
@media (prefers-color-scheme: dark) { body { background: #14161a; } }
@media (prefers-color-scheme: dark) { .skip-link { background: #14161a; } }
@media (prefers-color-scheme: dark) { .site-header { background: #14161a; } }
@media (prefers-color-scheme: dark) { .site-nav li.is-current a { color: #c4c7cd; } }
@media (prefers-color-scheme: dark) and (max-width: 980px) { .site-nav { background: #14161a; } }
@media (prefers-color-scheme: dark) { .portfolio__filters a.is-active, .portfolio__filters a:hover { color: #e3e5e8; } }
@media (prefers-color-scheme: dark) { .portfolio__image { background: #1d2026; } }
@media (prefers-color-scheme: dark) { .portfolio__title { color: #d7d9dd; } }
@media (prefers-color-scheme: dark) { .portfolio__pagination button.is-active { color: #e3e5e8; } }
@media (prefers-color-scheme: dark) { .channel__value { color: #f2f3f5; } }
@media (prefers-color-scheme: dark) { .custom-contact-form { color: #d7d9dd; } }
@media (prefers-color-scheme: dark) { .input-group { background: #1d2026; } }
@media (prefers-color-scheme: dark) { .form-control::placeholder { color: #8b909a; } }
@media (prefers-color-scheme: dark) { .submit-button { background: #23262d; color: #d7d9dd; } }
@media (prefers-color-scheme: dark) { .form-notice--ok { background: #16271a; color: #9fd8a6; } }
@media (prefers-color-scheme: dark) { .form-notice--error { background: #2c1717; color: #f2a7a7; } }
@media (prefers-color-scheme: dark) { .btn-solid--light { background: #14161a; } }
@media (prefers-color-scheme: dark) { .page-head { background-color: #14161a; } }
@media (prefers-color-scheme: dark) { .page-head__text { background: rgba(20, 22, 26, .92); } }
@media (prefers-color-scheme: dark) { .page-head__lead { color: #c4c7cd; } }
@media (prefers-color-scheme: dark) { .home-intro__lead { color: #c4c7cd; } }
@media (prefers-color-scheme: dark) { .stats__label { color: #b4b8bf; } }
@media (prefers-color-scheme: dark) { .service__desc { color: #b4b8bf; } }
@media (prefers-color-scheme: dark) { .work-card__meta { color: #9a9ea6; } }
@media (prefers-color-scheme: dark) { .about-intro__body p { color: #c4c7cd; } }
@media (prefers-color-scheme: dark) { .strength p { color: #b4b8bf; } }
@media (prefers-color-scheme: dark) { .process__dot { background: #14161a; } }
@media (prefers-color-scheme: dark) { .faq .text p { color: #b4b8bf; } }
@media (prefers-color-scheme: dark) { .portfolio__filters a { color: #9a9ea6; } }
@media (prefers-color-scheme: dark) { .portfolio__meta { color: #9a9ea6; } }
@media (prefers-color-scheme: dark) { .project__info .text p { color: #c4c7cd; } }
@media (prefers-color-scheme: dark) { .input-group { background: #14161a; } }
@media (prefers-color-scheme: dark) { .crumbs { color: #9a9ea6; } }
@media (prefers-color-scheme: dark) { .services-index a { color: #b4b8bf; } }
@media (prefers-color-scheme: dark) { .service-block__body p { color: #c4c7cd; } }
@media (prefers-color-scheme: dark) { .service-block__label span { color: #8b909a; } }
@media (prefers-color-scheme: dark) { .mini-work__title { color: #b4b8bf; } }
@media (prefers-color-scheme: dark) { .belief__body p { color: #b4b8bf; } }
@media (prefers-color-scheme: dark) { .next-page { background: #14161a; } }
@media (prefers-color-scheme: dark) { .next-page__title small { color: #b4b8bf; } }
@media (prefers-color-scheme: dark) { .next-page__arrow::before { border-top: 2px solid #14161a; border-right: 2px solid #14161a; } }
@media (prefers-color-scheme: dark) { .morph__label { color: #9a9ea6; } }
@media (prefers-color-scheme: dark) { .services-index a { color: #8b909a; } }
@media (prefers-color-scheme: dark) { .services-index a span { color: #5f646e; } }
@media (prefers-color-scheme: dark) { .page-head { background: #14161a; } }
@media (prefers-color-scheme: dark) { .next-page:hover { background: #262a31; } }
@media (prefers-color-scheme: dark) { .home-services__lead { color: #b4b8bf; } }
@media (prefers-color-scheme: dark) { .site-header.is-scrolled { background: rgba(20, 22, 26, .82); } }
@media (prefers-color-scheme: dark) { .story__text { color: #c4c7cd; } }
@media (prefers-color-scheme: dark) { .story-services__desc { color: #b4b8bf; } }
@media (prefers-color-scheme: dark) { .service-block__body p { color: #b4b8bf; } }
@media (prefers-color-scheme: dark) { .process--live .process__dot, .process--live li:first-child .process__dot, .process--live li:last-child .process__dot { background: #14161a; } }
@media (prefers-color-scheme: dark) { .process--live li:not(.is-lit) .process__name { color: #7d828c; } }
@media (prefers-color-scheme: dark) { .loader { background: #14161a; } }
@media (prefers-color-scheme: dark) { .about-intro__statement { color: #b4b8bf; } }
@media (prefers-color-scheme: dark) { .about-stats .stats__label { color: #b4b8bf; } }
@media (prefers-color-scheme: dark) { .about-intro__statement { color: #c4c7cd; } }
@media (prefers-color-scheme: dark) { .client::before { background: #14161a; } }
@media (prefers-color-scheme: dark) { .belief__text { color: #b4b8bf; } }
@media (prefers-color-scheme: dark) { .beliefs .belief:hover .belief__shape { background: #14161a; } }
@media (prefers-color-scheme: dark) { .process__desc > span { color: #b4b8bf; } }
@media (prefers-color-scheme: dark) and (max-width: 768px) { .site-nav { background: #14161a; } }
@media (prefers-color-scheme: dark) and (max-width: 768px) { .beliefs .belief:hover .belief__text { color: #b4b8bf; } }
@media (prefers-color-scheme: dark) and (max-width: 768px) { .services-side { background: rgba(20, 22, 26, .94); } }
@media (prefers-color-scheme: dark) and (max-width: 768px) { .site-header.is-scrolled { background: rgba(20, 22, 26, .97); } }
/* ===== 深色模式：跟隨瀏覽器／系統設定自動切換 =====
   品牌深藍 #002175 在深色底上的對比只有 1.3:1，看不清楚，深色模式改用亮藍 #7d98ff（對比 6.7:1） */
:root { color-scheme: light dark; }
@media (prefers-color-scheme: dark) {
  :root {
    --navy: #7d98ff; --ink: #ececef; --text: #a9adb5; --heading: #e6e7ea; --dark: #d7d9dd;
    --paper: #1d2026; --line: #2c3038; --gray: #4a505b; --accent: #4a505b; --gray-light: #1d2026; --gray-mid: #8b909a;
  }
  /* 亮藍或淺色底上的文字改用深色 */
  .btn-solid, .submit-button, .portfolio__pagination button.is-active, .cta .btn-solid--light,
  .btn-solid:hover, .btn-line:hover, .submit-button:hover, .cta .btn-solid--light:hover,
  .cta .btn-line--light:hover, .btn-line--light:hover { color: #0b0d12; }
  .submit-button { background: var(--navy); }
  /* Logo 與社群圖示反白 */
  .site-logo img { filter: brightness(0) invert(.92); }
  .site-social img, .site-nav__social img, .channel__icon { filter: invert(.88); }
  /* 頁尾比內文再深一階 */
  .site-footer { background: #0d0f12; }
  /* 客戶 Logo 牆維持淺底，各家 Logo 才看得清楚 */
  .clients-wall, .marquee, .marquee__track, .client { background: #e9ebee; }
  .clients-wall .client__name { color: #002175; }
  /* 404 遊樂場 */
  .nf-light { background: #2c3038; border-color: #3a3f48; }
  ::selection { background: #7d98ff; color: #0b0d12; }
}

