/* ============================================
   放大製作 定位改版（2026-11-10）
   疊在 style.css、motion.css 上面，色彩只用既有色票，深淺色共用。
   ============================================ */

/* ---------- 導覽：五項＋一顆主按鈕 ---------- */
.main-nav .nav-cta { white-space: nowrap; }
.main-nav a:focus-visible, .btn:focus-visible, .svc-cell .go:focus-visible,
.case-card:focus-visible, .way-link:focus-visible, .hero-svc a:focus-visible,
.jump a:focus-visible, .more:focus-visible {
  outline: 2px solid var(--forest-ink); outline-offset: 2px;
}

/* ---------- 首屏 ---------- */
.hero-repo-title, .section-head h2, .svc-intro h2, .case-body h2 { word-break: keep-all; overflow-wrap: anywhere; }
@media (min-width: 901px) { .hero-repo .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.hero-split.hero-repo h1.hero-repo-title { font-size: clamp(2rem, 3.6vw, 3.2rem) !important; }
@media (max-width: 900px) { .hero-split.hero-repo h1.hero-repo-title { font-size: min(7.4vw, 2.4rem) !important; } }
.hero-repo-title { font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; margin: 20px 0; text-wrap: balance; }
.hero-repo .lede { max-width: 32em; }
.hero-repo .hero-actions { margin-top: 28px; }
.hero-svc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero-svc a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px;
  border: 1px solid var(--line-strong); border-radius: 100px; background: var(--bg);
  color: var(--ink); font-size: 0.88rem; font-weight: 600; text-decoration: none;
}
.hero-svc a:hover { background: var(--bg-hover); }

/* 首頁主視覺：慢速捲動作品牆（三欄照原比例不裁切；中欄放橫式、反向捲動；手機兩欄；每張可點進該作品頁） */
@media (min-width: 901px) { .hero-repo .wrap { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 40px; } .hero-split.hero-repo { padding-bottom: 140px; } }
@media (min-width: 901px) { .hero-repo-title .hl { white-space: nowrap; } }
.flow-wall {
  --fw-gap: 18px; --fw-h: min(600px, calc(100vh - 300px));
  position: relative; z-index: 1; display: grid; gap: var(--fw-gap);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr);
  height: var(--fw-h); min-height: 460px; overflow: hidden; align-self: center;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%);
}
.fw-col { min-width: 0; }
.fw-track, .fw-dup { display: flex; flex-direction: column; gap: var(--fw-gap); }
.fw-track { animation: fw-up 56s linear infinite; will-change: transform; }
.fw-col--1 .fw-track { animation-name: fw-down; animation-duration: 68s; }
.fw-col--2 .fw-track { animation-duration: 62s; }
.flow-wall:hover .fw-track, .flow-wall:focus-within .fw-track { animation-play-state: paused; }
@keyframes fw-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - var(--fw-gap) / 2)); } }
@keyframes fw-down { from { transform: translateY(calc(-50% - var(--fw-gap) / 2)); } to { transform: translateY(0); } }
.fw-card {
  position: relative; display: block; margin: 0; overflow: hidden; border-radius: 14px; background: var(--bg-hover);
  box-shadow: 0 6px 20px rgba(60, 50, 40, 0.08); text-decoration: none; color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.fw-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(60, 50, 40, 0.08); pointer-events: none; }
.fw-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.fw-card:hover, .fw-card:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(60, 50, 40, 0.18); }
.fw-card:hover img, .fw-card:focus-visible img { transform: scale(1.03); }
.fw-card:focus-visible { outline: 2px solid var(--forest-ink, #2f3b35); outline-offset: 2px; }
.fw-cap {
  position: absolute; left: 8px; bottom: 8px; z-index: 1; display: inline-flex; align-items: center; gap: 0;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(250, 245, 238, 0.92); color: var(--forest-ink, #2f3b35);
  font-size: 12px; font-weight: 500; line-height: 1.3; white-space: nowrap;
}
.fw-cap i { font-style: normal; display: inline-block; max-width: 0; opacity: 0; overflow: hidden; transition: max-width 0.25s ease, opacity 0.25s ease, margin 0.25s ease; }
.fw-card:hover .fw-cap i, .fw-card:focus-visible .fw-cap i { max-width: 1.2em; opacity: 1; margin-left: 4px; }
@media (max-width: 900px) { .flow-wall { --fw-h: 500px; min-height: 0; margin-top: 14px; } }
@media (max-width: 600px) {
  .flow-wall { --fw-gap: 10px; --fw-h: 440px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
  .fw-col--2 { display: none; }
  .fw-card { border-radius: 10px; }
  .fw-cap { left: 6px; bottom: 6px; font-size: 10px; padding: 2px 7px; }
  .fw-cap i { max-width: 1.2em; opacity: 1; margin-left: 3px; }
}
@media (prefers-reduced-motion: reduce) { .fw-track { animation: none; } .fw-card, .fw-card img { transition: none; } }

/* ---------- 共用 ---------- */
.section-more { margin-top: 32px; }
.more { font-weight: 700; color: var(--forest-ink); text-decoration: none; }
.more:hover { text-decoration: underline; }

/* ---------- 代表案例 ---------- */
.case-cards { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .case-cards { grid-template-columns: minmax(0, 1fr); } }
.case-card {
  display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 20px; color: var(--ink);
  text-decoration: none; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  transition: box-shadow .2s, transform .2s;
}
.case-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.case-card h3 { font-size: 1.1rem; font-weight: 800; line-height: 1.4; margin: 0; }
.case-card p { margin: 0; color: var(--ink-soft); font-size: 0.93rem; }
.case-card .more { margin-top: auto; padding-top: 6px; }
.case-shot { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--bg-hover); display: flex; justify-content: center; gap: 8px; margin-bottom: 6px; }
.case-card, .case-body { min-width: 0; }
.case-shot img { width: 100%; height: 100%; min-width: 0; object-fit: cover; display: block; }
.case-shot.duo { padding: 8px; background: var(--forest-soft); }
.case-shot.duo img { width: auto; height: 100%; aspect-ratio: 9 / 16; border-radius: 6px; }
.case-kind { font-size: 0.78rem; font-weight: 700; color: var(--forest-ink); }
.case-kind em { font-style: normal; margin-left: 8px; padding: 1px 8px; border-radius: 100px; background: var(--volt-mark); color: var(--on-volt); }
.case-scope b { display: block; font-size: 0.78rem; color: var(--ink); }

/* ---------- 合作方式 ---------- */
.ways-band { background: var(--page-soft); }
.ways { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .ways { grid-template-columns: minmax(0, 1fr); } }
.way { padding: 24px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 10px; }
.way h3 { font-size: 1.15rem; font-weight: 800; margin: 0; }
.way-fit { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }
.way ul { margin: 0; padding-left: 1.2em; color: var(--ink-soft); font-size: 0.93rem; }
.way .more { margin-top: auto; }
.way-note { margin: 4px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 0.84rem; color: var(--ink-soft); }
.way-note a { color: var(--forest-ink); font-weight: 600; }
.way-link { color: var(--ink); text-decoration: none; transition: box-shadow .2s; }
.way-link:hover { box-shadow: var(--shadow-hover); }

/* ---------- 流程 ---------- */
.flow5 { list-style: none; counter-reset: f; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.flow5 li { counter-increment: f; padding-top: 14px; border-top: 2px solid var(--forest-ink); }
.flow5 li::before { content: "0" counter(f); font: 500 0.78rem var(--font-mono); color: var(--forest-ink); }
.flow5 h3 { font-size: 1.05rem; font-weight: 800; margin: 6px 0; }
.flow5 p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
@media (max-width: 960px) { .flow5 { grid-template-columns: minmax(0, 1fr); } .flow5 li { padding-top: 12px; } }

.who a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
/* 合作方式卡：價格說明放連結上面，連結一律貼卡片底部，三張對齊 */
.way .way-note { margin-top: auto; }
.way .way-note + .more { margin-top: 0; }
.team-title { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; line-height: 1.3; margin: 10px 0 12px; }
#team .about-grid p { color: var(--ink-soft); }
/* 手機：創辦人照片縮小，跟小標、標題同一列（2026-11-20 第二輪） */
@media (max-width: 640px) {
  #team .about-grid { grid-template-columns: 96px minmax(0, 1fr); column-gap: 16px; row-gap: 0; align-items: center; justify-items: stretch; }
  #team .about-grid > div { display: contents; }
  #team .about-photo { width: 96px; height: 96px; border-width: 3px; grid-column: 1; grid-row: 1 / span 2; align-self: center; }
  #team .about-grid .tag { grid-column: 2; grid-row: 1; justify-self: start; align-self: end; margin-bottom: 6px; }
  #team .team-title { grid-column: 2; grid-row: 2; align-self: start; margin: 0; font-size: 1.3rem; }
  #team .about-grid p, #team .about-grid .more { grid-column: 1 / -1; }
  #team .about-grid p { margin-top: 16px; }
  #team .about-grid .more { margin-top: 8px; }
}

/* ---------- 服務與方案 ---------- */
.svc-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.svc-jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 100px; background: var(--bg); color: var(--ink); font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.svc-jump a:hover { background: var(--bg-hover); }
.svc-jump a:focus-visible { outline: 2px solid var(--forest-ink); outline-offset: 2px; }
.svc-block { scroll-margin-top: 80px; border-top: 1px solid var(--line); }
.svc-split { display: grid; gap: clamp(24px, 4vw, 64px); grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); align-items: start; }
@media (max-width: 900px) { .svc-split { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 901px) { .svc-intro { position: sticky; top: 90px; } }
.svc-intro h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; line-height: 1.3; margin: 12px 0; }
.svc-intro p { color: var(--ink-soft); }
.svc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.svc-facts { margin: 0; display: grid; }
.svc-facts > div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.svc-facts > div:first-child { padding-top: 0; }
.svc-facts dt { font-weight: 700; font-size: 0.92rem; }
.svc-facts dd { margin: 0; color: var(--ink-soft); font-size: 0.97rem; line-height: 1.7; }
.svc-facts dd a { color: var(--forest-ink); font-weight: 600; }
.svc-facts.compact > div { padding: 10px 0; }
.svc-facts.compact dd { font-size: 0.93rem; }
@media (max-width: 560px) { .svc-facts > div { grid-template-columns: 1fr; gap: 3px; } }

/* ---------- 製作案例頁 ---------- */
.case-list { display: grid; gap: clamp(36px, 5vw, 64px); }
.case-row { display: grid; gap: clamp(20px, 3vw, 44px); grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); align-items: start; }
@media (max-width: 860px) { .case-row { grid-template-columns: minmax(0, 1fr); } }
.case-body h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 800; line-height: 1.35; margin: 6px 0 12px; }

/* ---------- 方案頁 ---------- */
.plans-other { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 18px; font-size: 0.92rem; color: var(--ink-soft); }
.plans-other a { color: var(--forest-ink); font-weight: 600; }
.plan-sum { margin: 0; display: grid; gap: 8px; font-size: 0.84rem; line-height: 1.55; }
.plan-sum dt { font-weight: 700; color: var(--ink); }
.plan-sum dd { margin: 0; color: var(--ink-soft); }
/* 手機方案卡：2026-11-20 起交給 plans.css 的左右滑（露出下一張邊緣），這裡不再改成上下疊放 */

/* ---------- 關於頁 ---------- */
#how-we-work { scroll-margin-top: 80px; }
.how-grid { display: grid; gap: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1040px) { .how-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .how-grid { grid-template-columns: 1fr; } }
.how-grid article { padding-top: 14px; border-top: 2px solid var(--forest-ink); }
.how-grid h3 { font-size: 1.05rem; font-weight: 800; margin: 0 0 8px; }
.how-grid p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }

/* ---------- 短影片廣告頁 ---------- */
.scope-cols { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .scope-cols { grid-template-columns: minmax(0, 1fr); } }
.scope-cols ul { margin: 8px 0 0; padding-left: 1.2em; color: var(--ink-soft); font-size: 0.95rem; }
.scope-cols h3 { font-size: 1.05rem; font-weight: 800; margin: 0; }

/* ---------- 洽詢頁 ---------- */
.contact-guide { margin-bottom: 24px; display: grid; gap: 18px; padding: clamp(18px, 2.4vw, 28px); background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-guide h2 { font-size: 1.15rem; font-weight: 800; margin: 0 0 8px; }
.contact-guide ul, .contact-guide ol { margin: 0; padding-left: 1.3em; color: var(--ink-soft); font-size: 0.97rem; line-height: 1.8; }
.contact-note + .contact-note { margin-top: 14px; }
.contact-note a { color: var(--forest-ink); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .case-card, .way-link { transition: none; }
  .case-card:hover { transform: none; }
}

/* 手機底部固定列不能蓋住頁尾最後一行 */
/* 2026-11-20：只在真的有固定列的頁面預留；有自動隱藏（site.js 加上 .mcta-autohide）時滑到頁尾列會收起，不用再留 */
@media (max-width: 760px) {
  .mobile-cta ~ .site-footer { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .mcta-autohide .mobile-cta ~ .site-footer { padding-bottom: 28px; }
}

/* ============================================
   2026-11-24 兩柱改版：節目製作 × 節目顧問
   ============================================ */

/* 首屏：兩顆主膠囊＋一個小字「其他服務」 */
.hero-svc { align-items: center; }
.hero-svc a.hero-svc-more {
  min-height: 40px; padding: 6px 4px; border: 0; background: none;
  color: var(--ink-soft); font-weight: 500; font-size: 0.86rem;
  text-decoration: underline; text-underline-offset: 3px;
}
.hero-svc a.hero-svc-more:hover { background: none; color: var(--forest-ink, var(--forest)); }

/* 服務區：兩張等大主卡（淺色，不用深色大方塊） */
.svc-duo { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
@media (max-width: 860px) { .svc-duo { grid-template-columns: minmax(0, 1fr); } }
.svc-cell.svc-pillar { padding: clamp(24px, 3vw, 36px); border-top: 3px solid var(--forest-ink, var(--forest)); }
.svc-pillar h3 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); text-wrap: balance; }
.svc-pillar .svc-pillar-fit { color: var(--ink); font-weight: 600; margin: 0; }
.svc-pillar p { margin: 0; }
.svc-pillar ul { gap: 6px; }
.svc-pillar-acts { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 0 18px; }
.svc-cell .svc-pillar-acts .go { margin-top: 0; }
.svc-other { margin: 18px 0 0; font-size: 0.95rem; }
.svc-other a { color: var(--forest-ink, var(--forest)); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.svc-other a:hover { text-decoration-thickness: 2px; }

/* 案例：合作節目卡用 6 張節目封面（正方形不裁切） */
.case-shot.covers {
  display: grid; grid-template-columns: repeat(3, auto); grid-template-rows: repeat(2, minmax(0, 1fr));
  justify-content: center; align-content: stretch; gap: 8px; padding: 10px; background: var(--forest-soft);
}
.case-shot.covers img { width: auto; height: 100%; aspect-ratio: 1 / 1; border-radius: 6px; object-fit: contain; background: var(--bg); }

/* 節目顧問三階 */
.way-step {
  align-self: flex-start; padding: 2px 10px; border-radius: 100px;
  background: var(--forest-soft); color: var(--forest-ink, var(--forest));
  font-size: 0.78rem; font-weight: 700;
}
.way h3 { text-wrap: balance; }
.way-price { margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.way-price b { font-size: 1.3rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.way-price span { font-size: 0.86rem; color: var(--ink-soft); }
.ways--tiers .way .more { margin-top: 4px; }

/* 團隊：兩個連結並排 */
.team-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 12px; }
.nw { white-space: nowrap; }
@media (max-width: 640px) { #team .about-grid .team-links { grid-column: 1 / -1; margin-top: 8px; } #team .about-grid .team-links .more { margin-top: 0; } }

/* 結尾洽詢卡：主按鈕＋次按鈕 */
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* 第二輪：流程區回一般底色，跟顧問三階分開；文章卡標題不用 balance */
#workflow { background: var(--page); }
.ways-band + #workflow { padding-top: var(--section-y, 96px) !important; }
#resources .blog-card h3 { text-wrap: pretty; word-break: normal; line-break: strict; }
