/* 風格 B：白底編輯＋深色影片舞台。顏色集中在這裡，改這幾行就能換色。 */
:root {
  --ink: #111111;
  --text: #444444;
  --muted: #555555;
  --line: #e3e3e3;
  --paper: #ffffff;
  --stage: #0e0e10;
  --stage-text: #d6d6d2;
  --accent: #1d3fbf;
  --tint: #f4f5f8;
  --pad: clamp(20px, 4vw, 48px);
  --max: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

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

/* ---------- 頁首 ---------- */
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 4px 24px; padding: 12px var(--pad);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--paper); z-index: 5;
}
.brand { font-size: 18px; font-weight: 700; text-decoration: none; padding: 10px 0; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 15px; }
.site-header nav { align-items: center; }
.site-header nav a { text-decoration: none; padding: 10px 0; }
.site-header nav a.nav-cta { padding: 8px 18px; background: var(--ink); color: #fff; font-weight: 700; }
.site-header nav a.nav-cta:hover { background: var(--accent); color: #fff; }

/* ---------- 首屏 ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px 48px; align-items: end; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(32px, 4vw, 48px); }
.hero h1 { font-size: clamp(34px, 5vw, 64px); line-height: 1.25; font-weight: 900; }
.hero h1 span { display: inline-block; }
.hero-side { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.hero-side p { font-size: 18px; line-height: 1.8; color: var(--text); }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; text-decoration: none; font-size: 15px; font-weight: 700; border: 1px solid var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #162f91; border-color: #162f91; color: #fff; }

/* ---------- 深色影片舞台 ---------- */
.stage { background: var(--stage); padding: clamp(20px, 4vw, 40px) var(--pad); }
.stage-inner { max-width: 960px; margin: 0 auto; }
.stage video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.stage .caption { margin-top: 14px; font-size: 13px; color: #c4c4c4; }

/* ---------- 數字列 ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; padding-top: 40px; padding-bottom: 40px; }
.stats div { display: flex; flex-direction: column; gap: 4px; }
.stats .num { font-size: clamp(28px, 3.4vw, 38px); font-weight: 900; line-height: 1.3; }
.stats .label { font-size: 14px; color: var(--muted); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- 區塊 ---------- */
.section { padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(48px, 6vw, 72px); scroll-margin-top: 64px; }
.section h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 900; margin-bottom: 20px; }
.section .lead { font-size: 17px; line-height: 1.9; color: var(--text); max-width: 760px; margin-bottom: 28px; }
.note { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* 區塊編號 */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 8px; }
.eyebrow::after { content: ""; display: inline-block; width: 32px; height: 2px; background: currentColor; vertical-align: middle; margin-left: 10px; }
.eyebrow.light { color: #9db2ff; }
.tint { background: var(--tint); }
.tint .inline-stage { margin-bottom: 36px; }

/* 作品卡片 */
.case-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 28px; }
.case-card { display: flex; flex-direction: column; height: 100%; text-decoration: none; border: 1px solid var(--line); background: var(--paper); transition: border-color .2s; }
.case-card:hover { border-color: var(--accent); }
.card-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.case-card:hover .card-img img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .card-img img, .case-card { transition: none; } .case-card:hover .card-img img { transform: none; } }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-top .tag { font-size: 12px; }
.card-top .hours { font-size: 14px; font-weight: 700; color: var(--accent); }
.case-card .name { font-size: 24px; font-weight: 900; color: var(--ink); }
.case-card .line { font-size: 15px; line-height: 1.7; color: var(--text); flex: 1; }
.case-card .more-link { font-size: 14px; font-weight: 700; color: var(--accent); margin-top: 6px; }

/* 直式短影音 */
.shorts { background: var(--stage); color: #f2f2f0; }
.shorts h2 { color: #f2f2f0; }
.shorts .lead { color: var(--stage-text); }
.shorts-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.shorts-row li { display: flex; flex-direction: column; gap: 12px; }
.shorts-row video { width: 100%; aspect-ratio: 9 / 16; background: #000; }
.short-meta { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: #f2f2f0; }
.short-meta strong { font-size: 16px; }
.short-meta span { font-size: 13px; color: #c4c4c4; }
.short-meta:hover strong { color: #9db2ff; }
.short-foot { display: flex; flex-direction: column; gap: 10px; }
.vbox { display: flex; flex-direction: column; gap: 10px; }
.fs-btn { display: none; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid #f2f2f0; background: transparent; color: #f2f2f0; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.fs-btn:hover { background: #f2f2f0; color: var(--ink); }

/* 案例清單 */
.case-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.case-row { display: grid; grid-template-columns: 40px 144px minmax(140px, 1fr) minmax(160px, 1.6fr) 90px; gap: 20px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); text-decoration: none; }
.case-row.no-thumb { grid-template-columns: 40px minmax(140px, 1fr) minmax(160px, 1.6fr) 90px; }
.case-row .idx { font-size: 14px; color: var(--muted); }
.case-row img { width: 144px; aspect-ratio: 16 / 9; object-fit: cover; }
.case-row .name { font-size: 22px; font-weight: 700; }
.case-row .line { font-size: 15px; color: var(--text); }
.case-row .hours { font-size: 15px; font-weight: 700; color: var(--accent); text-align: right; }
.case-row:hover .name { color: var(--accent); }

/* 製作效率 */
.eff { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.eff li { background: var(--paper); border: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.eff-num { font-size: 34px; font-weight: 900; color: var(--accent); line-height: 1.2; }
.eff-num small { font-size: 16px; font-weight: 700; margin-left: 2px; }
.eff-label { font-size: 16px; font-weight: 700; }
.eff-detail { font-size: 14px; line-height: 1.7; color: var(--text); }
.eff-note { margin: 12px 0 40px; }

/* 課程精選卡片 */
.sub-h { font-size: 18px; font-weight: 900; margin: 8px 0 16px; }
.featured-clients { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 16px; }
.featured-clients li { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--accent); padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.fc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sector { font-size: 12px; font-weight: 700; color: var(--accent); background: #eef1fb; padding: 3px 8px; }
.fc-year { font-size: 13px; color: var(--muted); }
.fc-name { font-size: 20px; font-weight: 900; }
.fc-work { font-size: 15px; line-height: 1.7; color: var(--text); }
.fc-note { font-size: 13px; line-height: 1.6; color: var(--muted); }

/* 客戶清單 */
.clients { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 48px; }
.clients li { break-inside: avoid; display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.clients .year { color: var(--muted); font-size: 13px; padding-top: 2px; }
.clients strong { display: block; font-weight: 700; }
.clients span.work { color: var(--text); font-size: 14px; }

/* 案例：數字、挑戰、收穫 */
.case-facts .num { color: var(--accent); }
.challenges-wrap { padding-top: clamp(40px, 5vw, 56px); }
.challenges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; }
.challenges li { border-top: 3px solid var(--accent); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.challenges .idx { font-size: 13px; font-weight: 700; color: var(--muted); }
.challenges h3 { font-size: 19px; font-weight: 700; }
.challenges p { font-size: 15px; line-height: 1.85; color: var(--text); }
.takeaways-title { margin-top: 48px; }
.takeaways { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.takeaways li { padding: 14px 0 14px 28px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.8; color: var(--text); position: relative; }
.takeaways li::before { content: ""; position: absolute; left: 4px; top: 25px; width: 10px; height: 10px; background: var(--accent); }

/* 案例：製作過程圖 */
.process-wrap { padding-top: 0; }
.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; }
.process figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.process-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); }
.process-img img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; }
.process-img:hover { outline: 2px solid var(--accent); outline-offset: -2px; }
.process figcaption { font-size: 15px; line-height: 1.8; color: var(--text); }
.process figcaption strong { display: block; font-size: 17px; color: var(--ink); margin-bottom: 2px; }

/* 手機收合 */
.more { display: none; margin-top: 16px; min-height: 48px; padding: 0 24px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.more:hover { border-color: var(--accent); color: var(--accent); }

/* 課程影片 */
.inline-stage { background: var(--stage); padding: clamp(16px, 3vw, 32px); margin-bottom: 36px; }
.inline-stage video { max-width: 960px; margin: 0 auto; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.inline-stage .caption { max-width: 960px; margin: 12px auto 0; font-size: 13px; color: #c4c4c4; }

/* 工作方法：分頁＋橫向流程 */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--ink); margin-bottom: 24px; }
.tab { min-height: 48px; padding: 0 24px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.tab:hover:not([aria-selected="true"]) { color: var(--accent); }
.panel .lead { margin-bottom: 28px; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 40px 1fr 40px 1fr 40px 1fr; align-items: stretch; }
.flow-step { display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 24px; border: 1px solid var(--line); border-top: 3px solid var(--accent); background: var(--paper); }
.flow-arrow { display: flex; align-items: center; justify-content: center; color: var(--accent); }
.flow-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.flow-icon { flex: none; width: 52px; height: 52px; border-radius: 50%; background: #eef1fb; color: var(--accent); display: flex; align-items: center; justify-content: center; }
.flow-num { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); }
.flow h3 { font-size: 19px; font-weight: 700; margin-top: 4px; }
.flow p { font-size: 15px; line-height: 1.8; color: var(--text); }
.swipe-hint { display: none; }

/* 圖片外連影片 */
.media-link { position: relative; display: block; text-decoration: none; }
.media-link .play-badge { position: absolute; left: 14px; bottom: 22px; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; background: #ffffff; color: var(--ink); font-size: 14px; font-weight: 700; }
.media-link:hover .play-badge { background: var(--accent); color: #ffffff; }

/* 步驟清單（工作方法、製作流程共用） */
.steps { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 40px minmax(140px, 1fr) minmax(160px, 2fr) 200px; gap: 16px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); }
.steps .idx { font-size: 14px; color: var(--muted); }
.steps .name { font-size: 19px; font-weight: 700; }
.steps .detail { font-size: 15px; color: var(--text); }
.steps .time { font-size: 15px; font-weight: 700; color: var(--accent); text-align: right; }

/* 其他實拍作品 */
.others { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px 32px; }
.other { display: flex; flex-direction: column; gap: 8px; }
.other-imgs { display: grid; gap: 6px; margin-bottom: 8px; aspect-ratio: 3 / 2; }
.other-imgs img { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.other-imgs.n3 { grid-template-columns: 1.5fr 1fr; grid-template-rows: 1fr 1fr; }
.other-imgs.n3 img:first-child { grid-row: 1 / span 2; }
.other-link-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; aspect-ratio: 3 / 2; margin-bottom: 8px; background: var(--stage); color: #f2f2f0; text-decoration: none; font-size: 15px; font-weight: 700; }
.other-link-card:hover { background: #24242a; color: #ffffff; }
.other .kind { font-size: 13px; color: var(--muted); }
.other h3 { font-size: 20px; font-weight: 700; }
.other p { font-size: 15px; line-height: 1.8; color: var(--text); }
.other > a:not(.other-link-card) { font-size: 15px; font-weight: 700; color: var(--accent); padding: 8px 0; }

/* 關於 */
.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 32px 56px; align-items: start; margin-bottom: 40px; }
.about-photo { margin: 0; }
.about-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-photo figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 0 32px; }
.about p { font-size: 17px; line-height: 1.9; color: var(--text); margin-bottom: 16px; }
.skills { margin: 0; }
.skills div { padding: 12px 0; border-top: 1px solid var(--line); }
.skills dt { font-weight: 700; font-size: 15px; }
.skills dd { margin: 2px 0 0; font-size: 14px; color: var(--text); }

/* 聯絡 */
.contact { background: var(--stage); color: #f2f2f0; }
.contact h2 { color: #f2f2f0; }
.contact .lead { color: var(--stage-text); }
.contact .email { display: inline-block; font-size: clamp(20px, 3.4vw, 40px); font-weight: 900; color: #f2f2f0; text-decoration: none; padding: 8px 0; word-break: break-all; }
.contact .email:hover { color: #9db2ff; }
.contact .buttons { margin-top: 24px; }
.contact .btn { border-color: #f2f2f0; color: #f2f2f0; }
.contact .btn:hover { background: #f2f2f0; color: var(--ink); }

.site-footer { border-top: 1px solid var(--line); }
.foot { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px 40px; padding-top: 40px; padding-bottom: 28px; font-size: 14px; color: var(--text); }
.foot-id { display: flex; flex-direction: column; gap: 4px; }
.foot-id strong { font-size: 18px; color: var(--ink); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; align-content: flex-start; }
.foot-nav a, .foot-contact a { text-decoration: none; padding: 6px 0; }
.foot-contact { display: flex; flex-direction: column; gap: 4px; word-break: break-all; }
.to-top { font-weight: 700; color: var(--accent); }
.foot-copy { grid-column: 1 / -1; margin: 8px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.contact .copy-email { background: transparent; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }

/* ---------- 案例內頁 ---------- */
.case-head { padding-top: clamp(32px, 5vw, 56px); padding-bottom: 36px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.crumbs { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; padding: 10px 0; }
.tag { border: 1px solid var(--accent); color: var(--accent); padding: 3px 10px; font-weight: 700; font-size: 13px; }
.case-head h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.2; font-weight: 900; }
.case-head .summary { font-size: clamp(18px, 2vw, 22px); line-height: 1.6; color: var(--text); max-width: 760px; }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px 24px; padding-top: 24px; padding-bottom: 24px; margin: 0; }
.meta div { display: flex; flex-direction: column; gap: 4px; }
.meta dt { font-size: 13px; color: var(--muted); }
.meta dd { margin: 0; font-size: 16px; font-weight: 700; }
.meta dd.accent { color: var(--accent); }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 32px 48px; }
.two-col p { font-size: 17px; line-height: 1.9; color: var(--text); }
.two-col h2 { margin-bottom: 12px; }

.verticals { display: flex; flex-direction: column; gap: 40px; max-width: 960px; margin: 0 auto; }
.vertical { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 24px 48px; align-items: center; }
.vertical video { width: 100%; aspect-ratio: 9 / 16; background: #000; }
.vertical h3 { font-size: 22px; font-weight: 900; color: #f2f2f0; margin-bottom: 12px; }
.vertical p { font-size: 16px; line-height: 1.9; color: var(--stage-text); }
.stage h2.stage-title { max-width: 960px; margin: 0 auto 24px; color: #f2f2f0; font-size: clamp(24px, 2.6vw, 30px); font-weight: 900; }

.next { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding-top: 36px; padding-bottom: 36px; border-top: 1px solid var(--ink); }
.next span { font-size: 14px; color: var(--muted); }
.next a { font-size: clamp(24px, 3.4vw, 38px); font-weight: 900; text-decoration: none; padding: 8px 0; }

/* ---------- 手機 ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .shorts-row { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 12px; }
  .shorts-row::after { content: ""; flex: 0 0 1px; }
  .shorts-row li { flex: 0 0 min(74%, 300px); scroll-snap-align: start; }
  .fs-btn { display: inline-flex; }
  .foot { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .home-stats { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; padding-top: 28px; padding-bottom: 28px; }
  .home-stats .num { font-size: 20px; }
  .home-stats .label { font-size: 12px; line-height: 1.5; }
  .site-header { gap: 0 16px; }
  .site-header nav { gap: 0 14px; font-size: 14px; }
  .site-header nav a.nav-cta { padding: 6px 12px; }
  .case-row, .case-row.no-thumb { grid-template-columns: 112px 1fr; gap: 4px 16px; align-items: start; }
  .case-row.no-thumb { grid-template-columns: 1fr; }
  .case-row .idx { display: none; }
  .case-row img { width: 112px; grid-row: 1 / span 3; }
  .case-row .name { font-size: 19px; }
  .case-row .hours { text-align: left; }
  .flow { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 8px; scroll-padding: 0 var(--pad); }
  .flow-step { flex: 0 0 72%; scroll-snap-align: start; }
  .flow-arrow { flex: 0 0 36px; }
  .swipe-hint { display: block; margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }
  .tabs { display: flex; }
  .tab { flex: 1; padding: 0 12px; }
  .clients { columns: 1; }
  .clients li { grid-template-columns: 1fr; gap: 0; padding: 10px 0; }
  .clients.collapsed.show-6 li:nth-child(n+7) { display: none; }
  .clients.collapsed.show-4 li:nth-child(n+5) { display: none; }
  .more { display: inline-flex; align-items: center; }
  .steps li { grid-template-columns: 32px 1fr; gap: 2px 12px; }
  .steps .detail, .steps .time { grid-column: 2; text-align: left; }
  .vertical { grid-template-columns: 1fr; }
  .vertical .vbox { width: min(78%, 320px); margin: 0 auto; }
  .vertical video { width: 100%; }
}

/* 案例成品：全部影片並列（橫式＋直式同高） */
.deliv-wrap { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(32px, 5vw, 56px); }
.deliv-head { max-width: 1120px; margin: 0 auto 24px; }
.deliv-wrap h2.stage-title { max-width: none; margin: 0 0 8px; }
.deliv-sub { font-size: 14px; color: #a9a9a6; }
.deliv { display: flex; gap: 20px; align-items: flex-start; justify-content: center; max-width: 1120px; margin: 0 auto; }
.deliv-item { margin: 0; min-width: 0; }
.deliv-item.is-h { flex: 1.7778 1 0; }
.deliv-item.is-v { flex: 0.5625 1 0; }
.deliv-item video { display: block; width: 100%; background: #000; }
.deliv-item.is-h video { aspect-ratio: 16 / 9; }
.deliv-item.is-v video { aspect-ratio: 9 / 16; }
.deliv-item figcaption { margin-top: 12px; font-size: 13px; line-height: 1.7; color: var(--stage-text); }
.deliv-item figcaption strong { display: block; color: #f2f2f0; font-size: 14px; }
.deliv-no { display: block; font-size: 12px; font-weight: 700; color: #8ea2ff; letter-spacing: .08em; margin-bottom: 2px; }
.deliv-text { display: block; margin-top: 4px; color: #a9a9a6; }
@media (max-width: 760px) {
  .deliv { flex-wrap: wrap; gap: 28px 14px; }
  .deliv-item.is-h { flex: 1 1 100%; }
  .deliv-item.is-v { flex: 0 1 calc(50% - 7px); }
  .deliv-item.is-v:only-of-type, .deliv-item.is-h + .deliv-item.is-v:last-child { flex-basis: min(64%, 300px); }
  .deliv-item.is-v .fs-btn { min-height: 40px; padding: 0 8px; font-size: 13px; }
}

/* 製作效率：工時分配 */
.eff-break { margin: 10px 0 0; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.eff-break div { display: grid; grid-template-columns: 5em 1fr; align-items: center; gap: 8px; font-size: 13px; }
.eff-break dt { color: var(--text); }
.eff-break dd { margin: 0; display: flex; align-items: center; gap: 8px; }
.eff-break .bar { height: 8px; background: var(--accent); opacity: .85; flex: none; max-width: calc(100% - 4.2em); }
.eff-break .h { white-space: nowrap; font-weight: 700; font-size: 12px; }

/* 製作效率：成本占預算 */
.eff-budget { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.bud-bar { display: flex; height: 22px; background: var(--tint); }
.bud-used { background: #8a8f9c; }
.bud-range { background: repeating-linear-gradient(135deg, #8a8f9c 0 4px, #c9ccd4 4px 8px); }
.bud-saved { flex: 1; background: var(--accent); }
.bud-legend { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text); }
.bud-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; }
.k-used { background: #8a8f9c; }
.k-saved { background: var(--accent); }
.bud-gain { color: var(--accent); font-weight: 700; }
.bud-scale { display: flex; justify-content: space-between; font-size: 11px; color: #8a8f9c; margin: -4px 0 4px; }
.bud-scale { order: 0; }

/* 定位標示 */
.brand { display: inline-flex; align-items: baseline; gap: 12px; }
.brand-role { font-size: 13px; font-weight: 500; color: var(--text); }
.hero-role { grid-column: 1 / -1; justify-self: start; font-size: 15px; font-weight: 700; color: var(--accent); border: 1px solid currentColor; padding: 6px 12px; margin-bottom: -8px; }
@media (max-width: 760px) {
  .brand-role { display: none; }
  .hero-role { font-size: 13px; }
}

/* 關於我：簡易經歷 */
.exp-h { margin-top: 28px; }
.exp { list-style: none; margin: 0; padding: 0; }
.exp li { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.6; }
.exp li:last-child { border-bottom: 1px solid var(--line); }
.exp-years { color: var(--text); font-variant-numeric: tabular-nums; }
.exp-role strong { font-weight: 700; margin-right: 8px; }
.exp-role span { color: var(--text); }

/* 手機：卡片改為左右滑動，縮短頁面 */
@media (max-width: 760px) {
  .case-cards, .eff, .featured-clients, .others {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--pad); margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad));
    padding: 0 var(--pad) 12px;
  }
  .case-cards::after, .eff::after, .featured-clients::after, .others::after { content: ""; flex: 0 0 1px; }
  .case-cards > li, .eff > li, .featured-clients > li, .others > * { flex: 0 0 min(82%, 320px); scroll-snap-align: start; }
  .featured-clients > li { flex-basis: min(72%, 280px); }
  .skills { grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .exp li { grid-template-columns: 1fr; gap: 0; }
  .exp-years { font-size: 13px; }
}

/* 其他作品圖片：固定 3:2 框，圖片不撐破框（修正手機 Safari 重疊） */
.other-imgs { overflow: hidden; flex: none; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.other-imgs.n3 { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
.other-imgs img { display: block; min-width: 0; height: 100%; }
.media-link { flex: none; }
.other-imgs img { object-position: 50% 25%; }
