/* =========================================================
   伯樂影像 BOLE Studio — Design System
   字體：Kumbh Sans (EN) / Noto Sans TC (中文)
   配色：天藍 + 白 + 黑字，粉紅 / 深紅為強調驚喜色
   ========================================================= */

:root {
  --bg: #0b0d12;          /* 深黑（帶點藍） */
  --paper: #141922;       /* 深色卡面 */
  --ink: #eef1f5;         /* 主要淺色文字 */
  --ink-soft: #98a2b2;
  --line: #272d38;
  --band: #07090c;        /* 更深的區塊底（footer / founders） */

  --blue: #5bc2e7;        /* 主色 天藍 */
  --blue-deep: #7cd3f2;   /* 深色底上用亮一點的藍 */
  --blue-ink: #0c5a78;

  --pink: #f7c5cf;        /* 強調 驚喜色 */
  --red: #b02222;

  --logo-pink: #ee6fa6;   /* 動態作品大標題用 */
  --logo-blue: #34a8d6;   /* 平面作品大標題用 */

  --maxw: 1760px;
  --gut: clamp(18px, 3.5vw, 56px);

  --f-en: "Kumbh Sans", "Helvetica Neue", Arial, sans-serif;
  --f-tc: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--f-tc);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

.en { font-family: var(--f-en); }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

/* utility: reveal on scroll */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   Header / Nav  — 預設英文，hover 顯示中文
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; gap: 22px;
  padding: 22px var(--gut);
  mix-blend-mode: difference;            /* 在影片上自動反白 */
  color: #fff;
  transition: padding .4s var(--ease);
}
.brand { margin-right: auto; }
/* 搜尋按鈕 */
.search-trigger { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; color: currentColor; }
.search-trigger svg { width: 19px; height: 19px; }
.search-trigger:hover { opacity: .7; }

/* 搜尋浮層 */
.search-overlay { position: fixed; inset: 0; z-index: 200; display: none; }
.search-overlay.open { display: block; }
.search-overlay .search-bg { position: absolute; inset: 0; background: rgba(5,7,10,.9); backdrop-filter: blur(12px); }
.search-panel { position: relative; z-index: 2; max-width: var(--maxw); margin-inline: auto; padding: clamp(80px,12vh,140px) var(--gut) 60px; height: 100%; overflow-y: auto; }
.search-box { display: flex; align-items: center; gap: 16px; border-bottom: 2px solid var(--blue); padding-bottom: 16px; }
.search-box .mag { width: 26px; height: 26px; color: var(--blue); flex: 0 0 auto; }
.search-input { flex: 1; background: transparent; border: 0; outline: 0; color: var(--ink); font-family: var(--f-tc); font-size: clamp(22px,4vw,40px); font-weight: 700; }
.search-input::placeholder { color: var(--ink-soft); font-weight: 500; }
.search-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); font-size: 22px; display: grid; place-items: center; flex: 0 0 auto; }
.search-close:hover { background: var(--blue); color: #06222e; border-color: var(--blue); }
.search-hint { font-family: var(--f-en); font-size: 13px; letter-spacing: .14em; color: var(--ink-soft); margin-top: 22px; }
.search-count { font-family: var(--f-en); font-size: 13px; letter-spacing: .1em; color: var(--blue); margin-top: 22px; }
.search-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.search-results .work-card { width: 100%; }
.search-empty { color: var(--ink-soft); margin-top: 30px; font-size: 16px; }
@media (max-width: 980px) { .search-results { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .search-results { grid-template-columns: 1fr; } }
.site-header.solid {
  mix-blend-mode: normal;
  background: rgba(11,13,18,.9);
  backdrop-filter: blur(14px);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 12px; font-weight: 700; letter-spacing: .14em; }
.brand .mark { font-family: var(--f-en); font-size: 20px; }
.brand .tc { font-family: var(--f-tc); font-size: 13px; letter-spacing: .3em; opacity: .85; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-family: var(--f-en);
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  position: relative; padding-bottom: 4px;
}
/* EN default → 中文 on hover (堆疊切換) */
.nav a .swap { display: inline-block; position: relative; overflow: hidden; height: 1.2em; }
.nav a .swap span { display: block; transition: transform .45s var(--ease); }
.nav a .swap .tc { font-family: var(--f-tc); letter-spacing: .1em; }
.nav a:hover .swap span { transform: translateY(-100%); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: currentColor; transition: width .4s var(--ease);
}
.nav a:hover::after { width: 100%; }

.burger { display: none; width: 30px; height: 18px; position: relative; }
.burger span { position: absolute; left: 0; height: 2px; width: 100%; background: currentColor; transition: .35s var(--ease); }
.burger span:nth-child(1){ top: 0; } .burger span:nth-child(2){ top: 8px; } .burger span:nth-child(3){ top: 16px; }

/* =========================================================
   Hero / Showreel
   ========================================================= */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; color: #fff; }
.hero__media { position: absolute; inset: 0; }
.hero__media video, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; filter: brightness(.76) saturate(.95); }
/* 影片缺檔時的動態品牌底（fallback）— 墊在影片下方，影片載入後蓋住 */
.hero__media .fallback {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 80% at 20% 10%, rgba(91,194,231,.9), transparent 55%),
    radial-gradient(120% 90% at 90% 90%, rgba(176,34,34,.55), transparent 50%),
    linear-gradient(120deg, #0b2530, #123042 40%, #0b2530);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { filter: hue-rotate(18deg) brightness(1.08); transform: scale(1.06); } }
.hero::after {           /* 微霧面 + 壓暗讓字清楚 */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(8,10,14,.46) 0%, rgba(8,10,14,.24) 38%, rgba(8,10,14,.6) 100%),
    rgba(10,12,16,.12);
  backdrop-filter: saturate(.92);
}
.hero__inner {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--gut) clamp(40px, 8vh, 90px);
  max-width: var(--maxw); margin-inline: auto;
}
.hero__eyebrow { font-family: var(--f-en); letter-spacing: .42em; text-transform: uppercase; font-size: 12px; opacity: .9; margin-bottom: 22px; }
.hero__title {
  font-family: var(--f-en); font-weight: 700;
  font-size: clamp(44px, 9vw, 132px); line-height: .92; letter-spacing: -.01em;
}
.hero__title .tc { font-family: var(--f-tc); display: block; font-size: clamp(18px, 2.6vw, 34px); font-weight: 500; letter-spacing: .14em; margin-top: 18px; opacity: .92; }
/* 中文大標 + 英文小標 變體 */
.hero__title--tc { font-family: var(--f-tc); font-weight: 900; font-size: clamp(40px, 8.4vw, 116px); line-height: 1.04; letter-spacing: .03em; }
.hero__title--tc .en { font-family: var(--f-en); display: block; font-weight: 500; font-size: clamp(15px, 2vw, 27px); letter-spacing: .14em; margin-top: 22px; opacity: .9; }

/* 經營項目 list overlaid */
.hero__services { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 38px; }
.hero__services li {
  font-family: var(--f-en); font-size: clamp(13px, 1.3vw, 16px); letter-spacing: .14em; text-transform: uppercase;
  display: flex; align-items: baseline; gap: 9px; padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,.35);
}
.hero__services li a { display: flex; align-items: baseline; gap: 9px; color: inherit; transition: color .3s var(--ease); }
.hero__services li a:hover { color: var(--blue); }
.hero__services li .tc { font-family: var(--f-tc); font-size: .8em; letter-spacing: .12em; opacity: .8; }
/* 圓點依類型上色：前 5 項動態＝藍，後 3 項平面＝粉紅 */
.hero__services li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--logo-blue); transform: translateY(-2px); }
.hero__services li:nth-child(n+6)::before { background: var(--logo-pink); }

.scroll-cue { position: absolute; bottom: 26px; right: var(--gut); z-index: 3; font-family: var(--f-en); font-size: 11px; letter-spacing: .3em; opacity: .85; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-cue .bar { width: 1px; height: 40px; background: #fff; animation: cue 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0%{transform:scaleY(0);} 40%{transform:scaleY(1);} 100%{transform:scaleY(0); transform-origin: bottom;} }

/* =========================================================
   Section header
   ========================================================= */
.section { padding: clamp(70px, 11vh, 140px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--f-en); font-size: clamp(26px, 3.8vw, 48px); font-weight: 700; line-height: 1; letter-spacing: -.01em; }
.section-head h2 .tc { font-family: var(--f-tc); display: block; font-size: clamp(14px, 1.6vw, 20px); font-weight: 500; letter-spacing: .2em; color: var(--ink-soft); margin-top: 14px; }
.section-head .idx { font-family: var(--f-en); font-size: 13px; letter-spacing: .25em; color: var(--blue-deep); }

/* =========================================================
   Works / 經營類別 — 持續輪播預覽
   ========================================================= */
.cats { display: flex; flex-direction: column; gap: clamp(28px, 4vh, 52px); }
.cat__bar { display: flex; align-items: baseline; gap: 18px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.cat__no { font-family: var(--f-en); font-size: 13px; letter-spacing: .2em; color: var(--blue-deep); }
.cat__en { font-family: var(--f-en); font-size: clamp(20px, 2.8vw, 36px); font-weight: 700; line-height: 1; text-transform: uppercase; letter-spacing: -.01em; }
/* 動態作品大標題＝logo 藍；平面作品＝logo 粉紅 */
.cat--motion .cat__en, .cat-hero--motion h1 { color: var(--logo-blue); }
.cat--still .cat__en, .cat-hero--still h1 { color: var(--logo-pink); }
.cat-hero--motion h1 .tc, .cat-hero--still h1 .tc { color: var(--ink); }
.cat__tc { font-family: var(--f-tc); font-size: clamp(13px, 1.4vw, 17px); letter-spacing: .16em; color: var(--ink-soft); }
.cat__more { margin-left: auto; font-family: var(--f-en); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; align-self: center; color: var(--blue-deep); }
.cat__more:hover { color: var(--red); }

/* 可滑動容器（Mac 雙指 / 手機手指都能滑）；自動輪播由 JS 控制 scrollLeft */
.marquee { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.marquee::-webkit-scrollbar { height: 0; width: 0; display: none; }
.marquee__track { display: flex; gap: 20px; width: max-content; }
/* 兩行版面 */
.cat__rows { display: flex; flex-direction: column; gap: 20px; }

/* 作品卡 */
.work-card { position: relative; flex: 0 0 auto; width: clamp(320px, 40vw, 580px); aspect-ratio: 16/10; border-radius: 4px; overflow: hidden; background: #161b23; }
.work-card .thumb { position: absolute; inset: 0; transition: transform .8s var(--ease); background: #161b23; }
.work-card .thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.work-card:hover .thumb { transform: scale(1.06); }
.work-card .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.78)); opacity: 0; transition: opacity .5s var(--ease); }
.work-card:hover .veil { opacity: 1; }
.work-card .meta { position: absolute; left: 18px; right: 18px; bottom: 16px; color: #fff; transform: translateY(8px); opacity: 0; transition: .5s var(--ease); }
.work-card:hover .meta { transform: none; opacity: 1; }
.work-card .meta .ttl { font-family: var(--f-tc); font-weight: 700; font-size: 17px; line-height: 1.3; }
.work-card .meta .dir { font-family: var(--f-en); font-size: 11px; letter-spacing: .08em; opacity: .85; margin-top: 4px; }
.work-card .tag { position: absolute; top: 10px; left: 10px; z-index: 3; font-family: var(--f-en); font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; background: rgba(255,255,255,.88); color: #0b0d12; padding: 3px 7px; border-radius: 2px; }
/* hover 自動播放預覽（CDN 影片 / YouTube 內嵌） */
.work-card .cardvid, .work-card .cardyt { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; opacity: 0; transition: opacity .4s var(--ease); z-index: 1; pointer-events: none; }
.work-card.previewing .cardvid, .work-card.previewing .cardyt { opacity: 1; }
/* 影片預覽中：作品名稱固定顯示於左下角（小字），並保留底部漸層確保可讀 */
.work-card.previewing .veil { opacity: 1; }
.work-card.previewing .meta { opacity: 1; transform: none; }
.work-card.previewing .meta .ttl { font-size: 13px; font-weight: 500; line-height: 1.35; }
.work-card.previewing .meta .dir { display: none; }
.work-card .cardyt { transform: scale(1.35); /* 讓 16:9 影片填滿卡片、減少黑邊 */ }
.work-card .veil, .work-card .meta { z-index: 2; }
.work-card .play-mini { position: absolute; top: 12px; right: 12px; z-index: 3; width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,.42); backdrop-filter: blur(2px); transition: background .3s var(--ease); }
.work-card:hover .play-mini { background: var(--blue); }
.work-card .play-mini::after { content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%,-50%); border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }

/* gradient placeholder thumbs（之後可替換為真實圖） */
.ph { background-size: cover; background-position: center; }
.ph-1 { background: linear-gradient(135deg,#1f9fd1,#0c5a78); }
.ph-2 { background: linear-gradient(135deg,#2b2b2b,#5a5a5a); }
.ph-3 { background: linear-gradient(135deg,#b02222,#5a0f0f); }
.ph-4 { background: linear-gradient(135deg,#f7c5cf,#b06b7a); }
.ph-5 { background: linear-gradient(135deg,#5bc2e7,#9fe0f2); }
.ph-6 { background: linear-gradient(135deg,#0b2530,#123042); }
.ph-7 { background: linear-gradient(135deg,#3a1c71,#1f9fd1); }
.ph-8 { background: linear-gradient(135deg,#6b7280,#1f2937); }
.ph::after { content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 16px; font-family: var(--f-tc); font-weight: 700; font-size: 15px; color: rgba(255,255,255,.9); letter-spacing: .04em; }

/* =========================================================
   Founders / 創辦人
   ========================================================= */
.founders { background: var(--band); color: #fff; }
.founders .section-head h2 .tc { color: rgba(255,255,255,.6); }
.founders__intro { max-width: 620px; font-size: clamp(15px, 1.5vw, 18px); color: rgba(255,255,255,.78); margin-bottom: 60px; }
.founders__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); }
.founder { position: relative; background: #1a1a1a center 16% / cover no-repeat; padding: 30px 26px 34px; min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.founder::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,12,12,.1) 0%, rgba(12,12,12,.5) 48%, rgba(12,12,12,.94) 100%); transition: opacity .5s var(--ease); }
.founder:hover::before { background: linear-gradient(180deg, rgba(12,12,12,.02) 0%, rgba(12,12,12,.4) 48%, rgba(12,12,12,.9) 100%); }
.founder > * { position: relative; z-index: 1; }
.founder .role { font-family: var(--f-en); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--blue); margin-bottom: auto; }
.founder .num { position: absolute; top: 24px; right: 24px; font-family: var(--f-en); font-size: 12px; opacity: .5; }
.founder .name-en { font-family: var(--f-en); font-size: 13px; letter-spacing: .14em; opacity: .7; }
.founder .name-tc { font-family: var(--f-tc); font-weight: 700; font-size: clamp(26px, 3vw, 38px); line-height: 1.1; margin-top: 6px; }
.founder .desc { font-size: 14px; color: rgba(255,255,255,.7); margin-top: 14px; }
.founder__more { font-family: var(--f-en); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-top: 16px; opacity: 0; transform: translateY(6px); transition: .4s var(--ease); }
.founder:hover .founder__more { opacity: 1; transform: none; }

/* =========================================================
   Founder profile page
   ========================================================= */
.founder-hero { position: relative; padding: 140px var(--gut) 60px; overflow: hidden; background: var(--band); color: #fff; }
.founder-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center 22%; opacity: .9; }
.founder-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,17,17,.94) 0%, rgba(17,17,17,.6) 42%, rgba(17,17,17,.2) 100%), linear-gradient(180deg, transparent 55%, var(--ink)); }
.founder-hero__inner { position: relative; z-index: 2; max-width: var(--maxw); margin-inline: auto; }
.founder-hero .back-link { color: var(--blue); margin-bottom: 30px; }
.founder-hero__role { font-family: var(--f-en); font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.founder-hero h1 { font-family: var(--f-tc); font-weight: 900; font-size: clamp(34px, 5.4vw, 78px); line-height: 1; }
.founder-hero h1 .en { display: block; font-family: var(--f-en); font-size: clamp(15px, 1.8vw, 22px); font-weight: 500; letter-spacing: .14em; opacity: .7; margin-top: 14px; }
.founder-hero__ig { display: inline-block; font-family: var(--f-en); font-size: 14px; letter-spacing: .08em; margin-top: 22px; padding-bottom: 4px; border-bottom: 1px solid var(--blue); color: #fff; }
.founder-hero__ig:hover { color: var(--blue); }
.founder-hero__desc { max-width: 46ch; margin-top: 26px; font-size: clamp(15px, 1.6vw, 18px); color: rgba(255,255,255,.82); line-height: 1.85; }
.founder-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.founder-chips span { font-family: var(--f-tc); font-size: 13px; padding: 7px 14px; border-radius: 20px; border: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.9); }

.founder-works { padding: clamp(50px,8vh,90px) var(--gut) 30px; }
.founder-works .section-head, .founder-others .section-head { margin-bottom: 30px; }
.founder-works .section-head h2, .founder-others .section-head h2 { font-family: var(--f-en); font-size: clamp(26px,4vw,46px); font-weight: 700; }
.founder-works .section-head h2 .tc, .founder-others .section-head h2 .tc { font-family: var(--f-tc); display: block; font-size: clamp(13px,1.5vw,17px); font-weight: 500; letter-spacing: .16em; color: var(--ink-soft); margin-top: 10px; }
.work-grid.plain { padding: 0; }
.founder-empty { color: var(--ink-soft); padding: 20px 0 60px; }

.founder-others { padding: 20px var(--gut) clamp(70px,12vh,130px); }
.other-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.other-links a { font-family: var(--f-tc); font-weight: 700; font-size: clamp(18px,2.4vw,26px); padding: 22px 24px; border: 1px solid var(--line); border-radius: 8px; transition: .35s var(--ease); }
.other-links a:hover { background: var(--blue); color: #06222e; border-color: var(--blue); }
.other-links a .en { display: block; font-family: var(--f-en); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-deep); margin-top: 6px; }
.other-links a:hover .en { color: var(--blue); }
@media (max-width: 760px) { .other-links { grid-template-columns: 1fr; } }

/* =========================================================
   CTA / Footer
   ========================================================= */
.cta { padding: clamp(80px,14vh,170px) 0; text-align: center; }
.cta h2 { font-family: var(--f-en); font-size: clamp(32px, 6vw, 88px); font-weight: 700; line-height: 1; letter-spacing: -.01em; }
.cta h2 .tc { font-family: var(--f-tc); display:block; font-size: clamp(15px,1.8vw,22px); font-weight: 500; letter-spacing:.2em; color: var(--ink-soft); margin-top: 18px; }
.cta .mail { display: inline-block; margin-top: 38px; font-family: var(--f-en); font-size: clamp(16px,2vw,24px); letter-spacing: .06em; border-bottom: 2px solid var(--blue); padding-bottom: 6px; transition: .4s var(--ease); }
.cta .mail:hover { border-color: var(--red); color: var(--red); }

.site-footer { background: var(--band); color: rgba(255,255,255,.7); padding: 56px var(--gut) 40px; border-top: 1px solid var(--line); }
.site-footer .brand { color: #fff; }
.site-footer .foot-grid { max-width: var(--maxw); margin-inline: auto; display: grid; grid-template-columns: 1.3fr 1.1fr auto; gap: 44px; align-items: start; }
.site-footer .foot-intro { margin-top: 18px; font-size: 14px; line-height: 1.9; letter-spacing: .04em; color: rgba(255,255,255,.62); max-width: 34ch; text-wrap: pretty; }
.site-footer .foot-contact { display: flex; flex-direction: column; gap: 12px; font-size: 14px; letter-spacing: .04em; }
.site-footer .foot-contact li { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.site-footer .foot-contact a { color: rgba(255,255,255,.82); }
.site-footer .foot-contact a:hover { color: var(--blue); }
.site-footer .foot-contact .who { font-size: 13px; color: rgba(255,255,255,.5); }
.site-footer .f-links { display: flex; flex-direction: column; gap: 14px; font-family: var(--f-en); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.site-footer .f-links a:hover { color: var(--blue); }
.site-footer .copy { max-width: var(--maxw); margin-inline: auto; margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font-family: var(--f-en); font-size: 11px; letter-spacing: .12em; opacity: .6; }
@media (max-width: 760px) {
  /* 手機版頁尾：單欄直排、不擠不切 */
  .site-footer { padding: 48px var(--gut) 32px; }
  .site-footer .foot-grid { grid-template-columns: 1fr; gap: 34px; }
  .site-footer .foot-intro { max-width: none; }
  .site-footer .f-links { flex-direction: row; flex-wrap: wrap; gap: 14px 22px; }
  .site-footer .copy { text-align: center; }
}

/* =========================================================
   Single Work page
   ========================================================= */
.work-hero { position: relative; height: 76svh; min-height: 460px; background: #000; color:#fff; display:flex; align-items:flex-end; }
.work-hero .media { position:absolute; inset:0; }
.work-hero .media .ph { position:absolute; inset:0; }
.work-hero::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.7)); }
.work-hero__inner { position: relative; z-index:2; padding: 0 var(--gut) 48px; max-width: var(--maxw); margin-inline:auto; width:100%; }
.work-hero .cat-label { font-family: var(--f-en); font-size:12px; letter-spacing:.24em; text-transform:uppercase; color: var(--blue); margin-bottom:16px; }
.work-hero h1 { font-family: var(--f-tc); font-weight:700; font-size: clamp(26px,4.2vw,56px); line-height:1.08; }
.work-hero h1 .en { display:block; font-family:var(--f-en); font-size:clamp(14px,1.6vw,20px); letter-spacing:.16em; opacity:.8; margin-top:12px; font-weight:500; }
.play-btn { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); z-index:2; width: 84px; height:84px; border-radius:50%; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); border:1px solid rgba(255,255,255,.5); display:grid; place-items:center; transition:.4s var(--ease); }
.play-btn:hover { background: var(--blue); transform: translate(-50%,-50%) scale(1.08); }
.play-btn svg { width: 26px; height: 26px; fill:#fff; margin-left:4px; }
.work-hero .media iframe, .work-hero .media video { position:absolute; inset:0; width:100%; height:100%; border:0; }
.work-hero.playing::after { opacity:0; pointer-events:none; }
.work-hero.playing .work-hero__inner { opacity:0; transition: opacity .4s var(--ease); }

.work-body { padding: clamp(50px,8vh,100px) 0; }
.work-credits { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px 40px; padding-bottom: 40px; border-bottom:1px solid var(--line); }
.credit .k { font-family: var(--f-en); font-size: 11px; letter-spacing:.2em; text-transform:uppercase; color: var(--blue-deep); margin-bottom:8px; }
.credit .v { font-family: var(--f-tc); font-size: clamp(17px,2vw,22px); font-weight:700; }
.credit .v .en { display:block; font-family:var(--f-en); font-size:13px; font-weight:500; color: var(--ink-soft); letter-spacing:.06em; margin-top:3px; }
.work-desc { max-width: 720px; margin-top: 40px; font-size: clamp(15px,1.6vw,18px); color: var(--ink); }
.work-desc .label { font-family: var(--f-en); font-size:11px; letter-spacing:.2em; text-transform:uppercase; color: var(--blue-deep); margin-bottom:14px; }
.share { margin-top: 40px; display:flex; align-items:center; gap:16px; }
.share span { font-family: var(--f-en); font-size:11px; letter-spacing:.2em; text-transform:uppercase; color: var(--ink-soft); }
.share a { width:34px; height:34px; border:1px solid var(--line); border-radius:50%; display:grid; place-items:center; transition:.35s var(--ease); }
.share a:hover { background: var(--blue); border-color: var(--blue); color:#fff; }
.back-link { display:inline-flex; gap:10px; align-items:center; font-family:var(--f-en); font-size:12px; letter-spacing:.16em; text-transform:uppercase; margin-bottom: 30px; color: var(--blue-deep); }
.back-link:hover { color: var(--red); }

/* page top padding for inner pages */
.page-top { padding-top: 120px; }

/* =========================================================
   Category page（單一類別整頁作品）
   ========================================================= */
.cat-hero { padding: 140px var(--gut) 40px; max-width: var(--maxw); margin-inline: auto; }
.cat-hero .crumb { font-family: var(--f-en); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--blue-deep); margin-bottom: 22px; display: inline-flex; gap: 10px; }
.cat-hero .crumb a:hover { color: var(--red); }
.cat-hero h1 { font-family: var(--f-en); font-weight: 700; font-size: clamp(30px, 4.6vw, 62px); line-height: 1; letter-spacing: -.01em; }
.cat-hero h1 .tc { font-family: var(--f-tc); display: block; font-size: clamp(18px, 2.4vw, 30px); font-weight: 500; letter-spacing: .14em; margin-top: 16px; color: var(--ink); }
.cat-hero .count { margin-top: 18px; font-family: var(--f-en); font-size: 13px; letter-spacing: .12em; color: var(--ink-soft); }

.cat-nav { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 var(--gut) 10px; max-width: var(--maxw); margin-inline: auto; }
.cat-nav a { font-family: var(--f-en); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 8px 16px; border: 1px solid var(--line); border-radius: 30px; color: var(--ink-soft); transition: .3s var(--ease); }
.cat-nav a .tc { font-family: var(--f-tc); margin-left: 6px; }
.cat-nav a:hover { border-color: var(--ink); color: var(--ink); }
.cat-nav a.active { background: var(--blue); color: #06222e; border-color: var(--blue); }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 40px var(--gut) clamp(70px,12vh,140px); max-width: var(--maxw); margin-inline: auto; }
.work-grid .work-card { width: 100%; }
@media (max-width: 980px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .work-grid { grid-template-columns: 1fr; } }

/* =========================================================
   About page
   ========================================================= */
.about-hero { padding: 150px var(--gut) 70px; max-width: var(--maxw); margin-inline:auto; }
.about-hero .vert { writing-mode: vertical-rl; font-family: var(--f-en); letter-spacing:.3em; text-transform:uppercase; font-size:13px; color: var(--blue-deep); float:left; margin-right: 30px; }
.about-hero h1 { font-family: var(--f-en); font-weight:700; font-size: clamp(34px,5.4vw,80px); line-height:1; }
.about-hero h1 .tc { font-family:var(--f-tc); display:block; font-size:clamp(18px,2.4vw,30px); font-weight:500; letter-spacing:.14em; margin-top:20px; color: var(--ink); }
.about-statement { position: relative; background: var(--band); color:#fff; padding: clamp(60px,10vh,120px) var(--gut); overflow:hidden; }
.about-statement::before { content:""; position:absolute; top:-10%; right:-6%; width:55%; height:130%; background: var(--ink); transform: rotate(-9deg); box-shadow: -40px 0 0 var(--blue); opacity:.0; }
.about-statement .skew { position:absolute; top:0; right:0; width:46%; height:100%; background: var(--blue); transform: skewX(-11deg) translateX(28%); opacity:.16; }
.about-statement .inner { position:relative; z-index:2; max-width: var(--maxw); margin-inline:auto; }
.about-statement p { font-family: var(--f-en); font-size: clamp(22px,3.6vw,52px); font-weight:700; line-height:1.16; max-width: 18ch; }
.about-statement .tc { font-family:var(--f-tc); display:block; font-weight:500; font-size: clamp(15px,1.7vw,20px); color: rgba(255,255,255,.72); margin-top:28px; max-width: 40ch; line-height:1.8; }

/* member folders */
.members { padding: clamp(60px,10vh,120px) var(--gut); max-width: var(--maxw); margin-inline:auto; }
.folder-grid { display:grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-top: 50px; }
.folder { display: block; cursor: pointer; text-align:center; transition: transform .4s var(--ease); }
.folder:hover { transform: translateY(-8px); }
.folder .ico { width:100%; aspect-ratio: 4/5; background:#161b23 center top / cover no-repeat; border-radius: 10px; position:relative; box-shadow: 0 16px 36px rgba(0,0,0,.4); }
.folder .label { margin-top: 18px; font-family: var(--f-tc); font-weight:700; font-size:18px; }
.folder .label .en { display:block; font-family:var(--f-en); font-size:11px; letter-spacing:.18em; color: var(--ink-soft); margin-top:4px; font-weight:500; }

/* modal */
.modal { position: fixed; inset:0; z-index:200; display:none; place-items:center; padding: 24px; }
.modal.open { display:grid; }
.modal__bg { position:absolute; inset:0; background: rgba(15,15,15,.6); backdrop-filter: blur(6px); }
.modal__card { position:relative; z-index:2; width:min(560px,100%); background: var(--paper); border-radius: 10px; overflow:hidden; box-shadow: 0 30px 80px rgba(0,0,0,.4); transform: translateY(20px); opacity:0; transition:.5s var(--ease); }
.modal.open .modal__card { transform:none; opacity:1; }
.modal__top { height: 220px; position:relative; }
.modal__top .ph { position:absolute; inset:0; }
.modal__close { position:absolute; top:14px; right:14px; z-index:3; width:38px; height:38px; border-radius:50%; background: rgba(255,255,255,.9); display:grid; place-items:center; font-size:18px; }
.modal__body { padding: 26px 30px 34px; }
.modal__body .name-en { font-family:var(--f-en); font-size:12px; letter-spacing:.18em; color: var(--blue-deep); }
.modal__body .name-tc { font-family:var(--f-tc); font-weight:700; font-size: 30px; margin-top:4px; }
.modal__body .role { font-family:var(--f-en); font-size:12px; letter-spacing:.14em; color: var(--ink-soft); margin-top:10px; text-transform:uppercase; }
.modal__chips { display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; }
.modal__chips span { font-family: var(--f-tc); font-size:13px; padding:6px 12px; border-radius: 20px; background: var(--bg); border:1px solid var(--line); }

/* =========================================================
   Contact page
   ========================================================= */
.contact { min-height: 100svh; display:flex; align-items:center; padding: 130px var(--gut) 80px; }
.contact__inner { max-width: var(--maxw); margin-inline:auto; width:100%; display:grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px,8vw,120px); }
.contact h1 { font-family:var(--f-en); font-weight:700; font-size: clamp(40px,7vw,104px); line-height:.95; }
.contact h1 .tc { font-family:var(--f-tc); display:block; font-size:clamp(16px,2vw,26px); font-weight:500; letter-spacing:.16em; margin-top:18px; color: var(--ink-soft); }
.contact__lead { margin-top: 26px; max-width: 32ch; color: var(--ink-soft); font-size: clamp(15px,1.5vw,17px); }
.contact__list { align-self:center; }
.contact__item { padding: 22px 0; border-top:1px solid var(--line); display:flex; gap: 20px; }
.contact__item:last-child { border-bottom:1px solid var(--line); }
.contact__item .k { font-family:var(--f-en); font-size:12px; letter-spacing:.2em; text-transform:uppercase; color: var(--blue-deep); width: 84px; flex:0 0 auto; padding-top:6px; }
.contact__item .v { font-family:var(--f-tc); font-size: clamp(18px,2.4vw,28px); font-weight:700; }
.contact__item .v a:hover { color: var(--red); }
.contact__item .v small { display:block; font-family:var(--f-en); font-size:13px; font-weight:500; color: var(--ink-soft); letter-spacing:.04em; margin-top:4px; }

/* =========================================================
   Mobile menu + responsive
   ========================================================= */
.mobile-menu { position: fixed; inset:0; z-index:150; background: var(--bg); transform: translateX(100%); transition: transform .6s var(--ease); display:flex; flex-direction:column; padding: 90px var(--gut) 40px; }
.mobile-menu.open { transform: translateX(0) !important; }
.mobile-menu a { display:flex; align-items:baseline; gap:16px; padding: 18px 0; border-bottom:1px solid var(--line); font-family:var(--f-en); font-size: 30px; font-weight:700; text-transform:uppercase; }
.mobile-menu a .no { font-size:12px; color: var(--blue-deep); letter-spacing:.1em; }
.mobile-menu a .tc { font-family:var(--f-tc); font-size:15px; font-weight:500; color: var(--ink-soft); margin-left:auto; }
.mobile-menu .mm-contact { margin-top:auto; font-family:var(--f-tc); color: var(--ink-soft); font-size:14px; line-height:2; }

@media (max-width: 980px) {
  .founders__grid { grid-template-columns: repeat(2,1fr); }
  .folder-grid { grid-template-columns: repeat(2,1fr); }
  .contact__inner { grid-template-columns: 1fr; }
  .work-credits { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 720px) {
  .nav { display:none; }
  .burger { display:block; }
  .site-header { mix-blend-mode: normal; color:#fff; }
  /* 手機開場：整體字縮小，營業項目緊湊放左下 */
  .hero__inner { padding: 0 var(--gut) 58px; }
  .hero__eyebrow { font-size: 10px; letter-spacing: .28em; margin-bottom: 14px; }
  .hero__title--tc { font-size: 30px; line-height: 1.12; letter-spacing: .02em; }
  .hero__title--tc .en { font-size: 13px; letter-spacing: .1em; margin-top: 12px; }
  /* 手機版：一項一行、字級縮小 */
  .hero__services { flex-direction: column; gap: 5px; margin-top: 22px; max-width: 86%; }
  .hero__services li { font-size: 9.5px; letter-spacing: .06em; padding-bottom: 4px; border-bottom-color: rgba(255,255,255,.28); }
  .hero__services li::before { width: 5px; height: 5px; }
  .hero__services li .tc { font-size: .82em; }
  .scroll-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .reveal { opacity:1; transform:none; transition:none; }
  .hero__media .fallback { animation: none; }
}

/* =========================================================
   CJK 斷行優化：標點不卡在行尾邊界、不落單行首
   ========================================================= */
body { line-break: strict; }
p, .tc,
.work-desc p, .founders__intro,
.about-statement .tc, .about-hero h1 .tc,
.work-hero h1, .founder-hero__desc {
  text-wrap: pretty;
}
@media (max-width: 600px) {
  /* 手機版中文內文縮小字距，句讀更自然 */
  .about-hero h1 .tc { letter-spacing: .05em; }
  .about-statement .tc { letter-spacing: .01em; }
}

/* =========================================================
   作品頁：hashtag 標籤（同步舊站樣式）
   ========================================================= */
.work-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.wtag {
  display: inline-flex; align-items: center; gap: 3px;
  font-family: var(--f-tc); font-size: 14px; letter-spacing: .08em;
  color: var(--blue-deep); border: 1px solid var(--blue-deep);
  border-radius: 30px; padding: 6px 16px; transition: .3s var(--ease);
}
.wtag .hash { font-family: var(--f-en); }
.wtag:hover { background: var(--blue); border-color: var(--blue); color: #06222e; }

/* =========================================================
   作品頁：完整相簿（平面作品）＋燈箱
   ========================================================= */
.work-gallery {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  margin-top: clamp(36px, 6vh, 60px);
}
.work-gallery .gitem { display: block; overflow: hidden; border-radius: 4px; background: #10131a; }
.work-gallery .gitem img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  aspect-ratio: 3 / 2; transition: transform .5s var(--ease), opacity .4s var(--ease);
}
.work-gallery .gitem:hover img { transform: scale(1.03); opacity: .92; }
@media (max-width: 600px) { .work-gallery { grid-template-columns: 1fr; gap: 10px; } }

.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none;
  align-items: center; justify-content: center;
  background: rgba(4, 6, 9, .96); backdrop-filter: blur(8px);
}
.lightbox.open { display: flex; }
.lightbox .lb-img { max-width: 92vw; max-height: 86vh; object-fit: contain; display: block; }
.lightbox button {
  position: absolute; color: var(--ink); background: transparent; border: 0;
  font-size: 34px; line-height: 1; cursor: pointer; padding: 14px; opacity: .8; transition: .25s;
}
.lightbox button:hover { opacity: 1; color: var(--blue); }
.lightbox .lb-close { top: 14px; right: 18px; font-size: 40px; }
.lightbox .lb-prev { left: 8px; top: 50%; transform: translateY(-50%); font-size: 52px; }
.lightbox .lb-next { right: 8px; top: 50%; transform: translateY(-50%); font-size: 52px; }
.lightbox .lb-count {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  font-size: 12px; letter-spacing: .2em; color: var(--ink-soft);
}
@media (max-width: 600px) {
  .lightbox .lb-prev { left: 0; } .lightbox .lb-next { right: 0; }
}
