/* ==========================================================================
   有所耳聞有限公司 — 全站樣式（藍白配・電影感改版）
   純 CSS，無前處理器。全站零漸層，所有色塊皆為純色平塗。
   改色只需動下方 :root 的變數。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 設計變數（Design tokens）
   -------------------------------------------------------------------------- */
:root {
  /* 品牌藍系（取自 logo：書法字墨藍 + 筆畫鋼青藍） */
  --c-ink:        #14304a;  /* 白底上的標題、主文字、深色按鈕 */
  --c-body:       #46617a;  /* 白底上的內文 */
  --c-faint:      #5d7286;  /* 白底上的次要小字（對比 4.98:1，過無障礙標準） */
  --c-accent:     #3d6b8e;  /* 白底上的品牌藍：連結、分類標籤、編號 */
  --c-accent-lt:  #9cc4e4;  /* 深藍底上的亮藍點綴 */
  --c-deep:       #0c1622;  /* hero 深藍底 */
  --c-deep-cta:   #14304a;  /* CTA 區深藍底 */
  --c-deep-line:  #2c4a66;  /* 深藍底上的分隔線 */
  --c-deep-text:  #c3d2e0;  /* 深藍底上的內文 */
  --c-deep-faint: #8fa5b8;  /* 深藍底上的小字 */
  --c-bg:         #ffffff;
  --c-bg-tint:    #f2f6f9;  /* 淺藍灰區塊底 */
  --c-line:       #e6ebf0;  /* 白底上的分隔線 */
  --c-line-2:     #dde5ec;  /* 淺藍灰底上的分隔線 */

  /* 字體 */
  --font-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", -apple-system,
               BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  /* 版面（桌機基準 1440，左右留白 56px） */
  --wrap:      1440px;
  --wrap-slim: 760px;
  --pad-x:     clamp(20px, 3.9vw, 56px);
  --radius:    2px;

  /* 節奏 */
  --space-section: clamp(56px, 7vw, 96px);
  --header-h: 92px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* 依定稿設計固定單一主題，不隨系統深色模式切換 */

/* --------------------------------------------------------------------------
   2. Reset / 基礎
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: -.01em;
}

p { margin: 0; }
img, svg, iframe, video { display: block; max-width: 100%; }
img { height: auto; }

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s var(--ease), background-color .2s var(--ease),
              border-color .2s var(--ease), opacity .2s var(--ease);
}

ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}

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

/* --------------------------------------------------------------------------
   3. 版面工具
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: var(--space-section); }
.section--alt { background: var(--c-bg-tint); }
.section--tight { padding-block: clamp(44px, 5.5vw, 72px); }

.section-head {
  max-width: var(--wrap-slim);
  margin-bottom: clamp(30px, 4vw, 48px);
}

.eyebrow {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .3em;
  color: var(--c-faint);
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: .01em;
  margin-bottom: 16px;
}

.section-sub {
  font-size: clamp(15px, 1.2vw, 16px);
  font-weight: 300;
  line-height: 1.9;
  color: var(--c-body);
}

.accent { color: var(--c-accent-lt); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--c-ink);
  color: #fff;
}
.skip-link:focus { left: 0; }

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

/* --------------------------------------------------------------------------
   4. 按鈕
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 44px;
  border: 1px solid var(--c-ink);
  border-radius: var(--radius);
  background: var(--c-ink);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease);
}
.btn:hover { background: var(--c-accent); border-color: var(--c-accent); }

.btn--ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-line);
}
.btn--ghost:hover {
  background: var(--c-ink);
  color: #fff;
  border-color: var(--c-ink);
}

/* 深藍底上的白底按鈕 */
.btn--invert {
  background: #fff;
  color: var(--c-ink);
  border-color: #fff;
}
.btn--invert:hover {
  background: var(--c-accent-lt);
  border-color: var(--c-accent-lt);
  color: var(--c-ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* --------------------------------------------------------------------------
   5. Header / 導覽列
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
/* 原色 logo：白底上直接使用，不做任何反白處理 */
.brand__logo {
  display: block;
  height: 38px;
  width: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  display: block;
  padding: 10px 14px;
  font-size: 15px;
  letter-spacing: .06em;
  color: var(--c-body);
}
.nav__link:hover { color: var(--c-ink); }
.nav__link[aria-current="page"] {
  color: var(--c-ink);
  font-weight: 700;
}

/* 導覽列最後一項：深藍實心按鈕 */
.nav__link--cta {
  margin-left: 14px;
  padding: 10px 24px;
  background: var(--c-ink);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius);
}
.nav__link--cta:hover { background: var(--c-accent); color: #fff; }
.nav__link--cta[aria-current="page"] { color: #fff; background: var(--c-accent); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  padding: 0;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--c-ink);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  margin: 4px auto;
  background: currentColor;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .site-header__inner { padding-block: 16px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    display: none;
    padding: 8px var(--pad-x) 20px;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-line);
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    padding: 14px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--c-line);
  }
  .nav__link--cta {
    margin-left: 0;
    margin-top: 14px;
    padding: 14px 4px;
    text-align: center;
    border-bottom: 0;
  }
}

/* --------------------------------------------------------------------------
   6. Hero（首頁影片 banner）
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 700px;
  background: var(--c-deep);
  overflow: hidden;
}

/* 底層為響應式靜態圖；桌機影片載入成功後才覆蓋顯示 */
.hero__media {
  position: absolute;
  inset: 0;
  background: var(--c-deep);
}
.hero__img,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.85);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 22, 34, .68); /* 單層純色遮罩，無漸層 */
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 var(--pad-x) clamp(44px, 5vw, 68px);
  color: #fff;
}

.hero__eyebrow {
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: .4em;
  color: var(--c-accent-lt);
  margin-bottom: 20px;
}

.hero__title {
  font-weight: 900;
  font-size: clamp(40px, 7.8vw, 112px);
  line-height: 1.08;
  letter-spacing: -.01em;
}

.hero__row {
  margin-top: clamp(24px, 2.6vw, 34px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}

.hero__sub {
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 300;
  line-height: 1.9;
  color: var(--c-deep-text);
  max-width: 460px;
}

.showreel {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}
.showreel__btn {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s var(--ease), background-color .2s var(--ease);
}
.showreel__btn svg { width: 22px; height: 22px; fill: var(--c-ink); }
.showreel:hover .showreel__btn { background: var(--c-accent-lt); transform: scale(1.06); }
.showreel__label {
  font-size: 13px;
  letter-spacing: .24em;
  color: #fff;
}

/* --------------------------------------------------------------------------
   7. 子頁頁首（深藍色塊版）
   -------------------------------------------------------------------------- */
.page-head {
  background: var(--c-deep);
  color: #fff;
  padding-block: clamp(64px, 9vw, 120px) clamp(48px, 7vw, 92px);
}
.page-head .eyebrow {
  color: var(--c-accent-lt);
  margin-bottom: 20px;
}
.page-head__title {
  font-weight: 900;
  font-size: clamp(36px, 5.6vw, 80px);
  line-height: 1.1;
  letter-spacing: -.01em;
  margin-bottom: 22px;
}
.page-head__sub {
  font-size: clamp(15px, 1.2vw, 16px);
  font-weight: 300;
  line-height: 1.9;
  color: var(--c-deep-text);
  max-width: 46em;
}

/* --------------------------------------------------------------------------
   8. 區塊標頭（左標題 + 右英文小字）
   -------------------------------------------------------------------------- */
.block-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(30px, 3.6vw, 48px);
}
.block-head__title {
  font-weight: 900;
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: .01em;
}
.block-head__meta {
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--c-faint);
}

/* 細線 + 置中英文連結 */
.rule-link {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: clamp(30px, 3.4vw, 44px);
  color: var(--c-accent);
}
.rule-link::before,
.rule-link::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--c-line);
}
.rule-link::after { display: none; }
.rule-link span {
  font-size: 13px;
  letter-spacing: .24em;
}
.rule-link svg {
  width: 16px; height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.rule-link:hover { color: var(--c-ink); }

/* --------------------------------------------------------------------------
   9. 影片卡 / lite YouTube embed
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid--works {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
@media (max-width: 1023px) {
  .grid--works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}
@media (max-width: 640px) {
  .grid--works { grid-template-columns: 1fr; }
}

.works-group + .works-group { margin-top: clamp(44px, 5vw, 72px); }

.works-group__title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  font-size: clamp(19px, 2vw, 24px);
  color: var(--c-ink);
  padding-bottom: 14px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--c-line);
}
.works-group__count {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .08em;
  color: var(--c-faint);
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lite-yt {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-deep);
  cursor: pointer;
}
.lite-yt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* hqdefault 有黑邊，稍微放大裁掉 */
  transform: scale(1.02);
  transition: opacity .25s var(--ease);
}
.lite-yt:hover img { opacity: .78; }

.lite-yt__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.lite-yt__play svg {
  width: 58px;
  height: 41px;
  transition: transform .25s var(--ease);
}
.lite-yt:hover .lite-yt__play svg { transform: scale(1.08); }
.lite-yt__play .yt-bg { fill: #14304a; fill-opacity: .82; }
.lite-yt:hover .yt-bg { fill: #f00; fill-opacity: 1; }
.lite-yt__play .yt-tri { fill: #fff; }

.lite-yt iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--c-ink);
}
.video-card__cat {
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--c-accent);
}

/* 分類篩選 */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(28px, 3.4vw, 44px);
}
.filter-btn {
  padding: 8px 16px;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--c-body);
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease);
}
.filter-btn:hover { border-color: var(--c-accent); color: var(--c-ink); }
.filter-btn[aria-pressed="true"] {
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: #fff;
}

/* --------------------------------------------------------------------------
   10. 服務編號列表
   -------------------------------------------------------------------------- */
.svc-split {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 56px;
}
.svc-split__title {
  font-weight: 900;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.3;
  letter-spacing: .01em;
}
.svc-split__sub {
  margin-top: 24px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--c-body);
}

.svc-list { display: flex; flex-direction: column; }

.svc-row {
  display: grid;
  grid-template-columns: 32px 180px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--c-line-2);
}
.svc-list .svc-row:last-child { border-bottom: 0; }
.section--alt .svc-row { border-bottom-color: var(--c-line-2); }

.svc-row__num {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .1em;
  color: var(--c-accent);
}
.svc-row__name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--c-ink);
}
.svc-row__desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--c-body);
}
a.svc-row:hover .svc-row__name { color: var(--c-accent); }

/* 白底版（服務頁）：分隔線用白底線色 */
.svc-list--plain .svc-row { border-bottom-color: var(--c-line); }

/* --------------------------------------------------------------------------
   11. 一般卡片（關於頁理念）
   -------------------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px 28px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  transition: border-color .25s var(--ease);
}
a.card:hover { border-color: var(--c-accent); }
.card__num {
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--c-accent);
}
.card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-ink);
}
.card__text {
  font-size: 14.5px;
  font-weight: 300;
  color: var(--c-body);
  line-height: 1.9;
}

/* --------------------------------------------------------------------------
   12. 合作客戶
   -------------------------------------------------------------------------- */
.clients {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}
.client {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 96px;
  padding: 18px 16px;
  text-align: center;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--c-body);
  transition: border-color .2s var(--ease);
}
.client:hover { border-color: var(--c-accent); }
.client img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .8;
  transition: filter .25s var(--ease), opacity .25s var(--ease);
}
.client:hover img { filter: grayscale(0); opacity: 1; }

/* 尚未設定 Sheet 時的虛線佔位（fallback 用，不會壞版） */
.data-note {
  padding: 26px 24px;
  border: 1px dashed var(--c-line-2);
  border-radius: var(--radius);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--c-faint);
  text-align: center;
}
.data-note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .95em;
  color: var(--c-accent);
}

/* --------------------------------------------------------------------------
   13. CTA 區（深藍色塊，footer 併入下方）
   -------------------------------------------------------------------------- */
.cta {
  background: var(--c-deep-cta);
  color: #fff;
  padding-block: clamp(64px, 7.2vw, 104px) 0;
}
.cta__title {
  font-weight: 900;
  font-size: clamp(32px, 5.8vw, 84px);
  line-height: 1.15;
  letter-spacing: -.01em;
}
.cta__row {
  margin-top: clamp(24px, 2.4vw, 32px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.cta__text {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--c-deep-text);
  max-width: 46em;
}
.cta__badge {
  color: var(--c-accent-lt);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   14. Footer（深藍資訊列，與 CTA 同一色塊）
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--c-deep-cta);
  color: var(--c-deep-faint);
  /* 上方間距用 padding（margin 會塌出 footer 外，露出白底） */
  padding-block: clamp(52px, 6vw, 88px) 34px;
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 28px;
  padding-top: 26px;
  border-top: 1px solid var(--c-deep-line);
  font-size: 12px;
  letter-spacing: .08em;
  line-height: 2;
}
.footer__row a:hover {
   color: var(--c-accent-lt);
}

/* Footer 社群連結 */
.footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer-social img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   15. 聯絡頁
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 26px 24px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  transition: border-color .2s var(--ease);
  min-width: 0;
}

.contact-item > div {
  min-width: 0;
}

a.contact-item:hover { border-color: var(--c-accent); }
.contact-item__icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin-top: 4px;
  stroke: var(--c-accent);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-item__label {
  display: block;
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--c-faint);
  margin-bottom: 4px;
}
.contact-item__value {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--c-ink);

  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.map-embed {
  width: 100%;
  grid-column: 1 / -1;

  margin-top: clamp(32px, 4vw, 56px);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-bg-tint);
}
.map-embed iframe {
  width: 100%;
  height: 380px;
  border: 0;
}

/* --------------------------------------------------------------------------
   16. 內文區塊（關於頁）
   -------------------------------------------------------------------------- */
.value-list {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.prose {
  max-width: var(--wrap-slim);
  font-size: clamp(16px, 1.4vw, 17px);
  font-weight: 300;
  line-height: 1.95;
  color: var(--c-body);
}
.prose p + p { margin-top: 1.4em; }

.todo-note {
  display: inline-block;
  margin-top: 28px;
  padding: 4px 14px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--c-faint);
  border: 1px dashed var(--c-line-2);
  border-radius: var(--radius);
}

/* --------------------------------------------------------------------------
   17. RWD
   -------------------------------------------------------------------------- */
/* 平板：服務區改上下堆疊 */
@media (max-width: 1023px) {
  .svc-split { grid-template-columns: 1fr; gap: 36px; }
  .svc-row { grid-template-columns: 32px 150px minmax(0, 1fr); gap: 20px; }
  .hero { min-height: 620px; }
}

/* 手機：Hero 固定較精簡高度 */
@media (max-width: 767px) {
  .hero { min-height: 80vh; }
  .hero__row { flex-direction: column; align-items: flex-start; gap: 26px; }
  .hero__sub { max-width: none; }
  .showreel__btn { width: 58px; height: 58px; }
  .showreel__btn svg { width: 18px; height: 18px; }

  .svc-row {
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: start;
    gap: 8px 20px;
    padding: 22px 0;
  }
  .svc-row__num { padding-top: 6px; }
  .svc-row__name { font-size: 20px; }
  .svc-row__desc { grid-column: 2; }

  .cta__row { align-items: stretch; }
  .cta .btn { width: 100%; }
  .footer__row { flex-direction: column; gap: 2px; }
}

@media (max-width: 480px) {
  .brand__logo { height: 30px; }
  .card { padding: 26px 22px; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .clients { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .contact-item { padding: 22px 20px; }
  .map-embed iframe { height: 300px; }
   
   .filter-btn {
     font-size: 15px;
     padding: 8px 12px;
   }
}

/* =========================================================
   18. Photography Gallery
========================================================= */

.gallery-back {
  display: inline-block;
  margin-bottom: 32px;
  color: inherit;
  text-decoration: none;
  font-size: 14px;
}

.gallery-head {
  margin-bottom: 48px;
}

.gallery-head h1 {
  margin: 8px 0;
  font-size: clamp(32px, 5vw, 56px);
}

.gallery-date {
  color: #777;
  font-size: 14px;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 8px;
  gap: 12px;
  align-items: start;
}

.photo-gallery__item {
  margin: 0;
  overflow: hidden;
}

.photo-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
}

#gallery-status {
  margin-top: 24px;
  font-size: 13px;
  color: #777;
}

@media (max-width: 900px) {
  .photo-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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


/* =========================================================
   Photography Lightbox
========================================================= */

.photo-gallery__item img {
  cursor: zoom-in;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: none;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.94);
}

.photo-lightbox.is-open {
  display: flex;
}

.photo-lightbox__image {
  display: block;

  max-width: min(92vw, 1800px);
  max-height: 88vh;

  width: auto;
  height: auto;

  object-fit: contain;
}

.photo-lightbox__close,
.photo-lightbox__prev,
.photo-lightbox__next {
  position: absolute;

  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-lightbox__close {
  top: 24px;
  right: 24px;

  width: 44px;
  height: 44px;

  border-radius: 50%;

  font-size: 28px;
  line-height: 1;
}

.photo-lightbox__prev,
.photo-lightbox__next {
  top: 50%;
  transform: translateY(-50%);

  width: 48px;
  height: 64px;

  border-radius: 6px;

  font-size: 32px;
}

.photo-lightbox__prev {
  left: 24px;
}

.photo-lightbox__next {
  right: 24px;
}

.photo-lightbox__counter {
  position: absolute;

  left: 50%;
  bottom: 24px;

  transform: translateX(-50%);

  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  letter-spacing: .08em;
}

.photo-lightbox__close:hover,
.photo-lightbox__prev:hover,
.photo-lightbox__next:hover {
  background: rgba(255, 255, 255, 0.22);
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 600px) {

  .photo-lightbox__image {
    max-width: 94vw;
    max-height: 82vh;
  }

  .photo-lightbox__prev,
  .photo-lightbox__next {
    width: 42px;
    height: 58px;

    background: rgba(0, 0, 0, 0.32);
  }

  .photo-lightbox__prev {
    left: 8px;
  }

  .photo-lightbox__next {
    right: 8px;
  }

  .photo-lightbox__close {
    top: 16px;
    right: 16px;
  }

}

/* 平面攝影入口按鈕 */
.photo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* ==========================================
   內頁 Hero
   首頁不受影響
   ========================================== */

.subpage .hero {
  min-height: 520px;
}

.subpage .hero__inner {
  padding-bottom: clamp(36px, 4vw, 52px);
}

.subpage .hero__title {
  font-size: clamp(36px, 4vw, 60px);
}


/* 平板 */
@media (max-width: 1023px) {
  .subpage .hero {
    min-height: 480px;
  }
}


/* 手機 */
@media (max-width: 767px) {
  .subpage .hero {
    min-height: 440px;
  }

  .subpage .hero__title {
    font-size: 36px;
  }
}
