/* 姚典呈 公開作品集（雛形）。風格參考 Apple 官網的「滿版段落、大字、留白、捲動出現」，但全部是自己的設計：
   不使用 Apple 的素材、文字或專有字型。配色沿用 CPAA 的暖白＋湖水綠；不載入任何外部資源。 */
:root {
  --bg-l: #f7f3ef; --bg-d: #1b1917; --ink-l: #2e2925; --ink-d: #f4efe9; --mut-l: #8c837b; --mut-d: #a79d94;
  --accent: #2a9d8f; --accent-soft: #6fd0c3;
  --s-found: #8c837b; --s-watch: #3a62a8; --s-prep: #9a6a12; --s-sent: #1f776c; --s-iv: #6a48a8; --s-done: #b0415f;
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg-d); color: var(--ink-d); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
section { position: relative; overflow: hidden; }
.light { background: var(--bg-l); color: var(--ink-l); }
.dark { background: var(--bg-d); color: var(--ink-d); }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; border-radius: 6px; }

/* 捲動進度條與導覽列 */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; }
.progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), #e8b84e, #e58aa0); }
.nav { position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 14px max(24px, calc((100% - 1120px) / 2)); background: rgba(27, 25, 23, .55); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid rgba(255, 255, 255, .06); transition: background .3s, color .3s, border-color .3s; }
.nav.on-light { background: rgba(247, 243, 239, .72); color: var(--ink-l); border-bottom-color: rgba(0, 0, 0, .06); }
.nav-name { text-decoration: none; font-weight: 700; letter-spacing: .02em; }
.nav nav { display: flex; gap: clamp(14px, 3vw, 30px); font-size: .9rem; }
.nav nav a { text-decoration: none; opacity: .8; transition: opacity .2s; }
.nav nav a:hover { opacity: 1; }

/* 進場動畫 */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.d1 { transition-delay: .12s; } .reveal.d2 { transition-delay: .24s; } .reveal.d3 { transition-delay: .36s; } .reveal.d4 { transition-delay: .48s; } .reveal.d5 { transition-delay: .6s; }
.reveal.in { opacity: 1; transform: none; }

/* 開場 */
.hero { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px 24px 90px; }
.aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; will-change: transform; }
.aurora .b1 { width: 52vmax; height: 52vmax; left: -12vmax; top: -16vmax; background: radial-gradient(circle, #2a9d8f, transparent 65%); animation: drift1 18s ease-in-out infinite alternate; }
.aurora .b2 { width: 44vmax; height: 44vmax; right: -14vmax; top: 6vmax; background: radial-gradient(circle, #e8b84e, transparent 65%); opacity: .38; animation: drift2 22s ease-in-out infinite alternate; }
.aurora .b3 { width: 46vmax; height: 46vmax; left: 24%; bottom: -26vmax; background: radial-gradient(circle, #e58aa0, transparent 65%); opacity: .4; animation: drift3 20s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(8vmax, 6vmax) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-7vmax, 8vmax) scale(.92); } }
@keyframes drift3 { to { transform: translate(6vmax, -7vmax) scale(1.12); } }
.hero-inner { position: relative; z-index: 1; }
.eyebrow { font-size: .95rem; letter-spacing: .14em; color: var(--accent-soft); font-weight: 600; margin-bottom: 18px; }
.hero-title { font-size: clamp(4rem, 15vw, 10.5rem); line-height: 1; font-weight: 800; letter-spacing: -.03em; background: linear-gradient(180deg, #fff, #cfc6bc 140%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 26px; font-size: clamp(1.4rem, 3.6vw, 2.4rem); font-weight: 600; letter-spacing: .01em; }
.hero-sub .x { color: var(--accent-soft); font-weight: 400; padding: 0 .15em; }
.hero-note { margin-top: 16px; color: var(--mut-d); }
.scroll-cue { position: absolute; z-index: 1; left: 50%; bottom: 28px; width: 44px; height: 44px; margin-left: -22px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); animation: bob 2.4s ease-in-out infinite; }
.scroll-cue svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@keyframes bob { 50% { transform: translateY(8px); } }

/* 一句話 */
.statement { padding: clamp(110px, 18vw, 220px) 24px; text-align: center; }
.statement .big { max-width: 1000px; margin: 0 auto; font-size: clamp(1.9rem, 5.2vw, 4rem); line-height: 1.35; font-weight: 800; letter-spacing: -.01em; }
.statement mark { background: linear-gradient(180deg, transparent 62%, rgba(42, 157, 143, .28) 62%); color: inherit; padding: 0 .08em; }
.statement .small { max-width: 720px; margin: 36px auto 0; font-size: clamp(1.02rem, 1.9vw, 1.3rem); color: var(--mut-l); }
.statement .small strong { color: var(--ink-l); }

/* 通用標題 */
.sec-title { font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.sec-sub { margin-top: 14px; font-size: clamp(1.05rem, 2vw, 1.35rem); color: var(--mut-l); }

/* 數字 */
.numbers { padding: clamp(90px, 12vw, 160px) 0; }
.numbers .sec-title { text-align: center; margin-bottom: clamp(48px, 7vw, 90px); }
.num-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.num-grid li { border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 24px; }
.num-grid b { display: block; font-size: clamp(3.4rem, 8vw, 6.2rem); line-height: 1; font-weight: 800; letter-spacing: -.03em; background: linear-gradient(135deg, #6fd0c3, #e8b84e); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.num-grid b small { font-size: .4em; margin-left: 2px; }
.num-grid b.top11 { white-space: nowrap; font-size: clamp(2.7rem, 6.3vw, 4.9rem); padding-top: .1em; }
.num-grid .lab { display: block; margin-top: 8px; font-size: 1.15rem; font-weight: 700; }
.num-grid .ctx { display: block; margin-top: 10px; color: var(--mut-d); font-size: .92rem; line-height: 1.6; }

/* 經歷卡片（橫向捲動） */
.story { padding: clamp(90px, 12vw, 160px) 0 clamp(80px, 10vw, 130px); }
.rail { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: clamp(36px, 5vw, 64px) max(24px, calc((100% - 1120px) / 2)) 30px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rail::-webkit-scrollbar { display: none; }
.card { flex: 0 0 min(340px, 82vw); min-height: 440px; scroll-snap-align: start; border-radius: 28px; padding: 30px 28px; display: flex; flex-direction: column; gap: 10px; color: #fff; position: relative; overflow: hidden; box-shadow: 0 18px 40px rgba(60, 40, 20, .14); transition: transform .5s var(--ease), box-shadow .5s; }
.card:hover { transform: translateY(-8px); box-shadow: 0 26px 56px rgba(60, 40, 20, .22); }
.card::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.t-work { background: linear-gradient(160deg, #2a9d8f, #1b6f66); }
.t-club { background: linear-gradient(160deg, #5b86cf, #3a62a8); }
.t-edu { background: linear-gradient(160deg, #e58aa0, #b0415f); }
.t-contest { background: linear-gradient(160deg, #e8b84e, #b4801f); }
.card .tag { align-self: flex-start; font-size: .78rem; font-weight: 700; letter-spacing: .04em; padding: 5px 12px; border-radius: 99px; background: rgba(255, 255, 255, .2); }
.card h3 { margin-top: 18px; font-size: 1.75rem; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
.card .role { font-weight: 600; opacity: .92; }
.card p:last-child { margin-top: auto; font-size: .98rem; line-height: 1.65; opacity: .95; position: relative; z-index: 1; }

/* 作品 */
.project { padding: clamp(90px, 12vw, 170px) 0; }
.proj-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.proj-text .lead { margin-top: 22px; font-size: clamp(1.05rem, 1.9vw, 1.3rem); color: var(--mut-d); }
.feat { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.feat li { padding-left: 28px; position: relative; }
.feat li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-soft); }
.phone { width: min(330px, 78vw); margin: 0 auto; padding: 12px; border-radius: 44px; background: linear-gradient(160deg, #3a3531, #14120f); box-shadow: 0 40px 80px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.screen { border-radius: 34px; background: #f7f3ef; color: #2e2925; padding: 26px 18px 22px; min-height: 520px; }
.ph-title { font-size: 1.6rem; font-weight: 800; margin: 6px 4px 18px; }
.screen { --c: var(--s-found); --q: 0; }
.screen[data-k="watch"] { --c: var(--s-watch); } .screen[data-k="prep"] { --c: var(--s-prep); } .screen[data-k="sent"] { --c: var(--s-sent); } .screen[data-k="iv"] { --c: var(--s-iv); } .screen[data-k="done"] { --c: var(--s-done); }
.track { position: relative; height: 30px; margin: 0 6px; }
.track::before { content: ""; position: absolute; left: 12px; right: 12px; top: 12px; height: 6px; border-radius: 9px; background: #e9e3dc; }
.fill { position: absolute; left: 12px; top: 12px; height: 6px; border-radius: 9px; background: var(--c); width: calc((100% - 24px) * var(--q)); transition: width .9s var(--ease), background .5s; }
.knob { position: absolute; top: 4px; left: calc(12px + (100% - 24px) * var(--q) - 11px); width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--c); box-shadow: 0 2px 6px rgba(60, 40, 20, .25); transition: left .9s var(--ease), border-color .5s; }
.labels { display: flex; justify-content: space-between; margin: 6px 0 0; padding: 0 0; font-size: .64rem; color: #8c837b; }
.job { margin-top: 22px; display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; background: #fff; border: 1px solid #ece4dd; border-left: 5px solid var(--c); border-radius: 16px; padding: 12px 12px; transition: border-color .5s; }
.job .logo { width: 40px; height: 40px; border-radius: 12px; background: #1b1917; color: #fff; display: grid; place-items: center; font-weight: 800; }
.job b { display: block; font-size: .8rem; line-height: 1.3; } .job small { color: #8c837b; font-size: .7rem; }
.pill { font-size: .68rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); transition: color .5s, background .5s; }
.job.ghost { opacity: .75; border-left-color: #1f776c; } .job.ghost .logo { background: #c9302c; } .job.ghost .ghostpill { background: #e2f2ef; color: #1f776c; }

/* 時間軸 */
.timeline { padding: clamp(90px, 12vw, 160px) 0; }
.tl { margin-top: clamp(36px, 5vw, 64px); position: relative; }
.tl-axis { position: relative; height: 34px; border-bottom: 1px solid rgba(0, 0, 0, .12); }
.tl-axis span { position: absolute; top: 0; transform: translateX(-50%); font-size: .95rem; font-weight: 700; color: var(--mut-l); }
.tl-axis span:first-child { transform: none; }
.tl-rows { position: relative; padding-top: 14px; }
.tl-row { position: relative; height: 46px; }
.tl-row .bar { position: absolute; top: 20px; height: 16px; border-radius: 8px; width: 0; transition: width 1.2s var(--ease); }
.tl.in .tl-row .bar { width: var(--w); }
.tl-row .nm { position: absolute; top: 0; font-size: .92rem; font-weight: 600; white-space: nowrap; line-height: 1.3; }
.tl-grid { position: absolute; inset: 0 0 0 0; pointer-events: none; }
.tl-grid i { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(0, 0, 0, .07); }

/* 結尾 */
.closing { padding: clamp(110px, 16vw, 210px) 24px; text-align: center; }
.closing .wrap { position: relative; z-index: 1; }
.closing .big { font-size: clamp(2.4rem, 7vw, 5.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.closing .small { margin-top: 22px; color: var(--mut-d); font-size: 1.1rem; }
.contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.contact a { color: #fff; text-decoration: none; padding: 12px 22px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .3); font-weight: 700; transition: background .2s, color .2s, transform .2s; }
.contact a:hover, .contact a:focus-visible { background: #fff; color: #1b1917; transform: translateY(-2px); }
.foot { background: var(--bg-d); color: var(--mut-d); text-align: center; padding: 24px; border-top: 1px solid rgba(255, 255, 255, .08); }

/* 手機版 */
@media (max-width: 860px) {
  .num-grid { grid-template-columns: 1fr 1fr; }
  .proj-grid { grid-template-columns: 1fr; }
  .nav nav a:nth-child(n+3) { display: none; }
}
@media (max-width: 520px) {
  .num-grid { grid-template-columns: 1fr; }
  .tl-row .nm { font-size: .78rem; }
  .tl-axis span:nth-child(even) { display: none; } /* 手機上年份間隔太近，隔一年顯示 */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .aurora span, .scroll-cue { animation: none; }
  .tl-row .bar { width: var(--w); transition: none; }
}

/* ======== 第二版：左側導覽（找經歷／找工作）、圖表、找工作頁 ======== */
.content { min-height: 100vh; }
.view[hidden] { display: none; }
.side { display: none; }
.alt { background: #231f1c; }
.hero-title.mid { font-size: clamp(2.8rem, 8.5vw, 6.2rem); }
.sub-title { margin-top: clamp(56px, 8vw, 96px); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.01em; }
.narrow { max-width: 760px; }
.lead { margin-top: 18px; font-size: clamp(1.05rem, 1.9vw, 1.3rem); color: var(--mut-d); }
.eyebrow.dk { color: var(--accent); }
.foot { padding-bottom: 96px; }

/* 手機底部選單 */
.tabs { display: flex; position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 60; gap: 4px; padding: 6px; border-radius: 26px; background: rgba(27, 25, 23, .78); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); border: 1px solid rgba(255, 255, 255, .12); }
.tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; border-radius: 20px; text-decoration: none; color: var(--mut-d); font-size: .74rem; font-weight: 600; }
.tabs a[aria-current="page"] { background: rgba(255, 255, 255, .14); color: #fff; }
.tabs svg, .modes svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* 電腦：左側導覽 */
@media (min-width: 960px) {
  .tabs { display: none; }
  .foot { padding-bottom: 24px; }
  .side { display: flex; flex-direction: column; position: fixed; z-index: 55; left: 0; top: 0; bottom: 0; width: 248px; padding: 26px 16px 22px; background: #141210; color: var(--ink-d); border-right: 1px solid rgba(255, 255, 255, .07); }
  .content { margin-left: 248px; }
  .brand { display: flex; align-items: center; gap: 12px; padding: 2px 10px 22px; text-decoration: none; }
  .brand .mark { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, #2a9d8f, #1b6f66); box-shadow: 0 4px 14px rgba(42, 157, 143, .35); }
  .brand b { display: block; font-size: 1.05rem; line-height: 1.25; } .brand small { display: block; color: var(--mut-d); font-size: .74rem; }
  .modes { display: grid; gap: 4px; }
  .modes a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; color: var(--mut-d); text-decoration: none; font-weight: 600; transition: background .15s, color .15s; }
  .modes a:hover { color: #fff; }
  .modes a[aria-current="page"] { background: rgba(255, 255, 255, .1); color: #fff; }
  .sub { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08); display: grid; gap: 2px; align-content: start; overflow-y: auto; }
  .sub a { padding: 7px 14px; font-size: .88rem; color: var(--mut-d); border-radius: 10px; text-decoration: none; position: relative; transition: color .15s, background .15s; }
  .sub a:hover { color: #fff; }
  .sub a.on { color: #fff; background: rgba(255, 255, 255, .06); }
  .sub a.on::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--accent-soft); }
  .sidefoot { margin-top: auto; padding: 14px 10px 0; font-size: .78rem; line-height: 1.6; color: var(--mut-d); }
}

/* 圖表：橫條（能力） */
.bars { margin-top: 44px; display: grid; gap: 18px; max-width: 900px; }
.bar-row { display: grid; grid-template-columns: 180px 1fr 130px; gap: 18px; align-items: center; }
.bar-row .nm { font-weight: 700; font-size: 1.02rem; }
.bar-row .tr { height: 14px; border-radius: 9px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.bar-row .tr i { display: block; height: 100%; width: 0; border-radius: 9px; background: linear-gradient(90deg, #2a9d8f, #e8b84e); transition: width 1.2s var(--ease); transition-delay: var(--d, 0s); }
.bars.in .bar-row .tr i { width: var(--w); }
.bar-row .ct { font-size: .84rem; color: var(--mut-d); text-align: right; white-space: nowrap; }
.light-bars .tr { background: rgba(0, 0, 0, .08); }
.light-bars .ct { color: var(--mut-l); }
.note { margin-top: 18px; font-size: .86rem; color: var(--mut-l); }

/* 圖表：圓環（學業與語言） */
.gauges { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: 52px; }
.gauge { text-align: center; }
.gauge svg { width: min(180px, 100%); height: auto; display: block; margin: 0 auto; }
.gauge .bg { fill: none; stroke: rgba(0, 0, 0, .08); stroke-width: 12; }
.gauge .fg { fill: none; stroke: url(#gg); stroke-width: 12; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 70px 70px; stroke-dasharray: 377; stroke-dashoffset: 377; transition: stroke-dashoffset 1.6s var(--ease); }
.gauges.in .fg { stroke-dashoffset: var(--off); }
.gauge .val { font-size: 1.9rem; font-weight: 800; fill: var(--ink-l); text-anchor: middle; letter-spacing: -.02em; }
.gauge .of { font-size: .62rem; fill: var(--mut-l); text-anchor: middle; }
.gauge .lab { margin-top: 12px; font-weight: 700; font-size: 1.05rem; }
.gauge .ap { display: block; font-size: .78rem; color: var(--mut-l); font-weight: 400; }

/* 圖表：每學期學分（長條） */
.cbars { display: flex; align-items: flex-end; gap: clamp(6px, 1.3vw, 16px); height: 290px; margin-top: 34px; padding-top: 24px; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.col .v { font-size: .86rem; font-weight: 800; opacity: 0; transition: opacity .6s 1s; }
.cbars.in .col .v { opacity: 1; }
.col .b { width: 100%; max-width: 58px; height: 0; border-radius: 12px 12px 4px 4px; transition: height 1.3s var(--ease); transition-delay: var(--d, 0s); }
.cbars.in .col .b { height: var(--h); }
.clegend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; font-size: .84rem; color: var(--mut-d); }
.clegend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }
.cterms { display: flex; gap: clamp(6px, 1.3vw, 16px); margin-top: 8px; }
.cterms span { flex: 1; text-align: center; font-size: .72rem; color: var(--mut-d); min-width: 0; }
.s-nccu { background: linear-gradient(180deg, #f0a3b5, #d9728c); } .s-ntu { background: linear-gradient(180deg, #6fd0c3, #2a9d8f); } .s-ie { background: linear-gradient(180deg, #f2cd7a, #d49a1c); }

/* 時間軸改為深色 */
.timeline.dark .tl-axis { border-bottom-color: rgba(255, 255, 255, .18); }
.timeline.dark .tl-axis span { color: var(--mut-d); }
.timeline.dark .tl-row .nm { color: #f4efe9; }
.timeline.dark .tl-grid i { background: rgba(255, 255, 255, .08); }
.timeline .sec-sub, .skills .sec-sub { color: var(--mut-d); }

/* 找工作 */
.jobs-hero { min-height: 92svh; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 38px; }
.chips button { font: inherit; padding: 13px 24px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); color: #fff; font-weight: 700; font-size: 1rem; cursor: pointer; transition: background .25s, color .25s, transform .25s; backdrop-filter: blur(6px); }
.chips button:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .14); }
.chips button[aria-selected="true"] { background: #fff; color: #1b1917; border-color: #fff; }
.fam { padding: clamp(80px, 11vw, 150px) 0; transition: opacity .35s; }
.fam.swap { opacity: 0; }
.fam-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(28px, 5vw, 64px); margin-top: clamp(36px, 5vw, 60px); align-items: start; }
.ev { display: grid; gap: 18px; }
.ev-card { background: #fff; border: 1px solid #ece4dd; border-radius: 24px; padding: 26px 28px; box-shadow: 0 14px 34px rgba(60, 40, 20, .07); }
.ev-card h3 { font-size: 1.45rem; font-weight: 800; letter-spacing: -.01em; }
.ev-card .when { margin: 4px 0 12px; font-size: .86rem; color: var(--accent); font-weight: 700; }
.ev-card p:last-child { color: #4a423b; }
.fam-skills .sub-title { margin-top: 0; font-size: 1.25rem; }
.fam-skills .bars { margin-top: 24px; gap: 16px; }
.fam-skills .bar-row { grid-template-columns: 1fr; gap: 6px; }
.fam-skills .bar-row .ct { text-align: left; }
.jobs-note { padding: clamp(90px, 12vw, 160px) 0; }
.jobs-note .sec-title { margin-bottom: 8px; }

@media (max-width: 860px) {
  .gauges { grid-template-columns: 1fr 1fr; }
  .fam-grid { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 1fr; gap: 6px; }
  .bar-row .ct { text-align: left; }
  .cbars { height: 230px; }
  .cterms span { font-size: .58rem; }
}
@media (prefers-reduced-motion: reduce) {
  .bars .tr i, .cbars .col .b, .gauge .fg { transition: none; }
  .bars .tr i { width: var(--w); } .cbars .col .b { height: var(--h); } .gauges .fg { stroke-dashoffset: var(--off); } .col .v { opacity: 1; transition: none; }
}

/* ======== 照片與 logo（沒有照片檔時，這些元素不會出現） ======== */
.about { max-width: 1120px; margin: 0 auto; }
.about.has-photo { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(32px, 6vw, 84px); align-items: center; text-align: left; }
.about.has-photo .big { margin: 0; font-size: clamp(1.8rem, 3.6vw, 3rem); }
.about.has-photo .small { margin: 28px 0 0; max-width: none; }
.portrait { margin: 0; border-radius: 36px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 34px 70px rgba(60, 40, 20, .28); background: #d9d4ce; }
.portrait img, .cover img, .ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.eyebrow .mini { height: 26px; width: 26px; border-radius: 50%; background: #fff; padding: 3px; vertical-align: -8px; margin-right: 10px; object-fit: contain; }
.brand .mark img { width: 100%; height: 100%; object-fit: cover; border-radius: 13px; display: block; }
.card .cover { margin: -30px -28px 14px; height: 190px; overflow: hidden; position: relative; }
.card .cover::after { content: ""; position: absolute; inset: auto 0 0 0; height: 60%; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .35)); }
.card .clogo { position: absolute; z-index: 2; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 15px; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
.card .clogo img { max-width: 36px; max-height: 36px; object-fit: contain; display: block; }
.card .tag, .card h3, .card .role, .card p { position: relative; z-index: 1; }
.card.has-cover .tag { margin-top: 0; }
.shots { padding-top: clamp(36px, 5vw, 60px); }
.shots figure { flex: 0 0 min(330px, 78vw); margin: 0; scroll-snap-align: start; }
.shots figure.wide { flex-basis: min(620px, 88vw); }
.shots .ph { aspect-ratio: 3 / 4; border-radius: 30px; overflow: hidden; box-shadow: 0 22px 48px rgba(60, 40, 20, .18); background: #d9d4ce; }
.shots figure.wide .ph { aspect-ratio: 3 / 2; }
.shots figcaption { margin-top: 12px; font-size: .92rem; color: var(--mut-l); }
@media (max-width: 860px) {
  .about.has-photo { grid-template-columns: 1fr; text-align: center; }
  .portrait { max-width: 340px; margin: 0 auto; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .portrait img, .ph img { animation: pz linear both; animation-timeline: view(); }
    @keyframes pz { from { transform: scale(1.16) translateY(5%); } to { transform: scale(1.03) translateY(-3%); } }
  }
}

.card .cover img { object-position: 50% 38%; }

/* ======== 能力篩選、獎項徽章、取景（避免切到頭） ======== */
.card[hidden] { display: none; }
.abil { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.abil button { font: inherit; padding: 10px 20px; border-radius: 99px; border: 1px solid rgba(27, 25, 23, .22); background: transparent; color: #1b1917; font-weight: 700; font-size: .98rem; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.abil button:hover { transform: translateY(-2px); }
.abil button[aria-selected="true"] { background: #1b1917; color: #fff; border-color: #1b1917; }
.abil-line { margin-top: 22px; font-size: clamp(1.25rem, 2.6vw, 1.9rem); font-weight: 800; letter-spacing: -.01em; line-height: 1.35; min-height: 1.35em; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.badge { font-weight: 800; font-size: .9rem; padding: 6px 14px; border-radius: 99px; background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .5); }
.badge.gold { background: #f3c85a; color: #3a2a00; border-color: #f3c85a; }
.portrait img { object-position: 50% 8%; }
.shots .ph img { object-position: 50% 22%; }
.card .cover img { object-position: 50% 18%; }
.card[data-photo="pwcwin"] .cover img { object-position: 50% 66%; }
.card[data-photo="tf"] .cover img { object-position: 50% 40%; }
