/* 華文道 · 主頁：一屏一屏吸附滾動。首屏 → 理念 → 委託 → 作品 → 展館 → 問道 */
html.hp-snap { scroll-snap-type: y mandatory; scroll-behavior: smooth; }
@media (max-width: 900px), (max-height: 640px) { html.hp-snap { scroll-snap-type: y proximity; } }
@media (prefers-reduced-motion: reduce) { html.hp-snap { scroll-behavior: auto; } }
.hp { background: var(--ink); }
.hp-s { position: relative; height: 100svh; min-height: 600px; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; isolation: isolate; }
@media (max-width: 900px), (max-height: 640px) { .hp-s { height: auto; min-height: 100svh; scroll-snap-stop: normal; } }
.hp-wrap { position: relative; z-index: 2; width: min(1240px, calc(100% - 2 * max(24px, 5vw))); margin: 0 auto; }
.hp-idx { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font: 700 13px/1 var(--sans); letter-spacing: .3em; }
.hp-idx::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.hp-idx b { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border: 1px solid currentColor; font: 500 12px/1 var(--mono); letter-spacing: .04em; }
.hp-lead { margin: 0; max-width: 34em; font: 400 clamp(15px, 1.25vw, 18px)/1.95 var(--serif); }
.hp-go { display: flex; flex-wrap: wrap; gap: 12px; }
.hp-h2 { margin: 0 0 14px; font: 900 clamp(38px, 4.8vw, 72px)/1.08 var(--disp); letter-spacing: .02em; }
.hp-big { margin: 0 0 16px; font: 900 clamp(44px, min(7.4vw, 11.5vh), 124px)/1 var(--disp); letter-spacing: .01em; }
.hp-big span { display: block; }

/* 進場：每一屏進入視野時，元素依次浮上來 */
.js .hp-s [data-in] { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--d, 0) * 90ms); }
.js .hp-s.is-in [data-in] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .hp-s [data-in] { opacity: 1; transform: none; transition: none; } }

/* 章節點 */
.hp-dots { position: fixed; right: 18px; top: 50%; z-index: 40; display: flex; flex-direction: column; gap: 10px; transform: translateY(-50%); }
.hp-dots a { position: relative; display: block; width: 22px; height: 3px; background: rgba(243,238,228,.35); transition: width .3s, background .3s; }
.hp-dots a.is-on { width: 34px; background: var(--zhu); }
.hp-dots a span { position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%); font: 500 12px/1 var(--sans); letter-spacing: .2em; white-space: nowrap; opacity: 0; transition: opacity .2s; color: var(--paper); text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.hp-dots a:hover span, .hp-dots a:focus-visible span { opacity: 1; }
.hp-dots.is-light a { background: rgba(20,18,15,.3); }
.hp-dots.is-light a.is-on { background: var(--zhu); }
.hp-dots.is-light a span { color: #1b1915; text-shadow: none; }
@media (max-width: 760px) { .hp-dots { display: none; } }

/* ---------------------------------------------------------------- 01 首屏 */
.hp-hero { background: radial-gradient(120% 90% at 72% 50%, #12131a 0%, #07080c 60%); display: flex; flex-direction: column; justify-content: center; padding: calc(var(--top) + clamp(16px, 4vh, 48px)) 0 clamp(56px, 9vh, 96px); box-sizing: border-box; }
.hp-sky { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.hp-hero__in { position: relative; z-index: 2; margin-left: max(28px, 8vw); width: min(640px, 48vw); }
.hp-eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; font: 700 13px/1 var(--sans); letter-spacing: .4em; color: var(--gold); }
.hp-eyebrow .tag { font-family: var(--mono); letter-spacing: .2em; }
.hp-title { margin: 0; line-height: 0; }
.hp-title__svg { width: min(600px, 44vw, 64vh); height: auto; display: block; overflow: visible; }
/* 大標題：先用金線描出空心的「華文道」，再上色（與原版主頁一致） */
.hp-title__g { fill: #f3ead9; }
.js-anim .hp-title__g { fill-opacity: 0; stroke: #e6c47f; stroke-width: 7; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: var(--len, 4000); stroke-dashoffset: var(--len, 4000); animation: hp-draw 2.2s cubic-bezier(.55, .08, .3, 1) calc(var(--i) * .32s + .15s) forwards, hp-fill 1.1s ease calc(var(--i) * .32s + 1.5s) forwards; }
@keyframes hp-draw { to { stroke-dashoffset: 0; } }
@keyframes hp-fill { to { fill-opacity: 1; stroke-width: 1.5; stroke-opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .js-anim .hp-title__g { animation: none; fill-opacity: 1; stroke: none; } }
.hp-motto { margin: clamp(14px, 3vh, 26px) 0 clamp(10px, 2vh, 16px); font: 900 clamp(20px, 2.1vw, 32px)/1.3 var(--disp); letter-spacing: .42em; color: var(--gold2); }
.hp-hero .hp-lede { margin: 0 0 clamp(16px, 3.2vh, 30px); max-width: 30em; font: 400 clamp(15px, 1.2vw, 18px)/1.95 var(--serif); color: rgba(243,238,228,.84); }
.hp-hud { position: absolute; z-index: 2; right: max(24px, 3vw); top: calc(var(--top) + 18px); text-align: right; }
.hp-hud__geo { margin: 0 0 10px; font: 500 12px/1 var(--mono); letter-spacing: .24em; color: var(--dim); }
.hp-hud__read { display: inline-grid; grid-template-columns: repeat(3, auto); margin: 0; border: 1px solid var(--line); text-align: left; }
.hp-hud__read div { padding: 9px 14px; border-left: 1px solid var(--line); }
.hp-hud__read div:first-child { border-left: 0; }
.hp-hud__read dt { font: 500 10px/1 var(--sans); letter-spacing: .24em; color: var(--dim); }
.hp-hud__read dd { margin: 6px 0 0; font: 700 14px/1 var(--mono); color: var(--paper); white-space: nowrap; }
.hp-vert { position: absolute; z-index: 2; left: 18px; top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; display: flex; align-items: center; gap: 14px; margin: 0; font: 700 12px/1 var(--sans); letter-spacing: .5em; color: rgba(243,238,228,.42); }
.hp-vert i { width: 1px; height: 80px; background: rgba(227,194,122,.5); }
.hp-vert span { flex: none; white-space: nowrap; }
.hp-vert span[data-no-translation] { font-family: var(--mono); letter-spacing: .3em; font-size: 10px; }
.hp-hero__stats { position: relative; z-index: 2; align-self: flex-start; display: flex; gap: 0; margin: clamp(22px, 5vh, 56px) 0 0 max(28px, 8vw); border-top: 1px solid rgba(227,194,122,.45); }
.hp-hero__stats div { padding: 10px 26px 0 0; }
.hp-hero__stats dt { font: 500 11px/1 var(--sans); letter-spacing: .24em; color: var(--dim); }
.hp-hero__stats dd { margin: 6px 0 0; font: 500 28px/1 var(--mono); }
.hp-down { position: absolute; z-index: 2; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; font: 500 12px/1 var(--sans); letter-spacing: .4em; color: var(--dim); }
.hp-down span { width: 1px; height: 38px; background: linear-gradient(var(--gold), transparent); animation: hp-drop 2.2s infinite; transform-origin: top; }
@keyframes hp-drop { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.hp-note { position: absolute; z-index: 2; right: max(24px, 3vw); bottom: 30px; margin: 0; font: 400 12px/1 var(--sans); letter-spacing: .14em; color: rgba(243,238,228,.4); }
@media (max-width: 900px) {
	.hp-hero { justify-content: flex-end; padding-bottom: 28px; }
	.hp-hero__in { margin: 0 22px; width: auto; }
	.hp-title__svg { width: min(520px, 82vw, 60vh); }
	.hp-motto { letter-spacing: .24em; margin-top: 18px; }
	.hp-hud { top: calc(var(--top) + 10px); left: 22px; right: auto; text-align: left; }
	.hp-hud__read { display: none; }
	.hp-vert, .hp-note { display: none; }
	.hp-hero__stats { margin: 24px 22px 0; }
	.hp-down { display: none; }
}

@media (max-height: 600px) and (min-width: 901px) { .hp-hud, .hp-note, .hp-vert { display: none; } .hp-down { display: none; } }

/* ---------------------------------------------------------------- 02 理念 */
.hp-idea { background: var(--paper); color: #1b1915; display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; column-gap: clamp(28px, 5vw, 90px); padding: calc(var(--top) + 3vh) max(24px, 6vw) 0; }
.hp-idea::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
	radial-gradient(circle at 12% 18%, rgba(178,69,44,.06), transparent 40%),
	repeating-linear-gradient(0deg, rgba(27,25,21,.035) 0 1px, transparent 1px 34px),
	repeating-linear-gradient(90deg, rgba(27,25,21,.035) 0 1px, transparent 1px 34px); }
.hp-idea__col { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.hp-idea .hp-idx { color: #8a3a22; }
.hp-vtitle { margin: 6px 0 0; writing-mode: vertical-rl; display: flex; flex-direction: column; gap: .22em; font: 900 clamp(54px, 8.6vh, 112px)/1.04 var(--disp); letter-spacing: .06em; }
.hp-vtitle span:last-child { color: #b2452c; }
.hp-by { margin: 14px 0 0; font: 500 13px/1 var(--sans); letter-spacing: .3em; color: #6b645a; }
.hp-by::before { content: "—— "; }
.hp-idea__main { align-self: center; padding-top: 8px; min-width: 0; }
.hp-idea .hp-lead { font-size: clamp(17px, 1.5vw, 22px); color: #2b2822; max-width: 30em; }
.hp-creed { max-width: 40em; }
.hp-creed p { margin: 0 0 .9em; font: 400 clamp(14px, 1.08vw, 16px)/1.95 var(--serif); color: #3a362f; }
.hp-creed .hp-lead { margin-bottom: .75em; font-size: clamp(17px, 1.42vw, 21px); line-height: 1.85; color: #1b1915; }
.hp-creed strong { font-weight: 700; color: #8a3a22; }
.hp-idea .hp-three { margin-top: 22px; }
.hp-three { display: grid; grid-template-columns: repeat(3, 1fr); margin: 34px 0 20px; border-top: 2px solid #1b1915; }
.hp-three > div { padding: 20px 22px 0 0; border-right: 1px solid rgba(27,25,21,.15); margin-right: 22px; }
.hp-three > div:last-child { border-right: 0; margin-right: 0; }
.hp-three span { font: 500 12px/1 var(--mono); color: #b2452c; }
.hp-three h3 { margin: 12px 0 8px; font: 900 clamp(24px, 2.2vw, 32px)/1 var(--disp); letter-spacing: .3em; color: #b2452c; }
.hp-three p { margin: 0; font: 400 14px/1.85 var(--serif); color: #4a453d; }
.hp-more { display: flex; flex-wrap: wrap; gap: 14px 30px; margin: 10px 0 0; }
.hp-more a { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; font: 700 14px/1.4 var(--sans); letter-spacing: .14em; color: #8a3a22; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.hp-more a i { font-style: normal; font-family: var(--mono); }
.hp-sws { grid-column: 1 / -1; min-width: 0; margin: 18px calc(-1 * max(24px, 6vw)) 0; }
.hp-sws__k { display: flex; justify-content: space-between; margin: 0; padding: 0 max(24px, 6vw) 10px; font: 700 12px/1 var(--sans); letter-spacing: .3em; color: #6b645a; }
.hp-sws__k i { font: 500 11px/1 var(--mono); font-style: normal; letter-spacing: .1em; }
.hp-swatch { display: grid; grid-template-columns: repeat(10, 1fr); list-style: none; margin: 0; padding: 0; height: clamp(150px, 24vh, 230px); }
.hp-sw { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; padding: 14px 14px 12px; overflow: hidden; text-decoration: none; transition: flex .4s; }
.hp-sw__bg { position: absolute; inset: 0; z-index: -1; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.hp-sw:hover .hp-sw__bg { transform: scale(1.08); }
.hp-sw__c { font: 900 clamp(40px, 4.2vw, 66px)/1 var(--disp); margin-bottom: auto; }
.hp-sw__t { font: 700 13px/1.3 var(--sans); letter-spacing: .14em; }
.hp-sw__n { margin-top: 4px; font: 500 10px/1 var(--mono); letter-spacing: .1em; opacity: .7; }
.hp-sw:focus-visible { outline-offset: -4px; }
/* 十種材質 */
.hp-sw[data-c="天"] { color: #f3eee4; } .hp-sw[data-c="天"] .hp-sw__bg { background: radial-gradient(circle at 70% 30%, transparent 0 30%, rgba(235,230,218,.18) 30.5% 31%, transparent 31.5% 48%, rgba(235,230,218,.14) 48.5% 49%, transparent 49.5%), radial-gradient(1.2px 1.2px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 60% 70%, #fff, transparent), radial-gradient(1.5px 1.5px at 80% 20%, #fff, transparent), radial-gradient(1px 1px at 35% 80%, #ddd, transparent), radial-gradient(1px 1px at 50% 45%, #eee, transparent), #121210; }
.hp-sw[data-c="玄"] { color: #1b1915; } .hp-sw[data-c="玄"] .hp-sw__bg { background: linear-gradient(104deg, transparent 47%, #ff7a1f 47.6%, #2a1408 48.2%, transparent 49%), linear-gradient(24deg, transparent 60%, #ff9a3a 60.4%, transparent 61.2%), radial-gradient(ellipse at 30% 30%, rgba(90,58,34,.35) 0 6%, transparent 7%), radial-gradient(ellipse at 70% 75%, rgba(90,58,34,.35) 0 5%, transparent 6%), linear-gradient(160deg, #efe4cc, #d8c39b); }
.hp-sw[data-c="律"] { color: #f3eee4; } .hp-sw[data-c="律"] .hp-sw__bg { background: radial-gradient(circle at 30% 70%, rgba(200,247,160,.2) 0 10%, transparent 10.5% 20%, rgba(200,247,160,.12) 20.5% 21%, transparent 21.5% 32%, rgba(200,247,160,.08) 32.5% 33%, transparent 33.5%), linear-gradient(170deg, #12302b, #3f8f78 120%); }
.hp-sw[data-c="海"] { color: #1b1915; } .hp-sw[data-c="海"] .hp-sw__bg { background: repeating-conic-gradient(from 0deg at 70% 35%, rgba(8,163,166,.32) 0 .6deg, transparent .6deg 15deg), radial-gradient(circle at 70% 35%, transparent 0 22%, rgba(8,163,166,.5) 22.4% 23%, transparent 23.4%), #efe6d1; }
.hp-sw[data-c="字"] { color: #1b1915; } .hp-sw[data-c="字"] .hp-sw__bg { background: radial-gradient(circle at 80% 30%, #d42a1e 0 21%, transparent 21.5%), #f3eee4; }
.hp-sw[data-c="陶"] { color: #1b1915; } .hp-sw[data-c="陶"] .hp-sw__bg { background: repeating-linear-gradient(63deg, transparent 0 22px, rgba(40,70,60,.18) 22px 23px), repeating-linear-gradient(-31deg, transparent 0 31px, rgba(40,70,60,.14) 31px 32px), radial-gradient(ellipse at 40% 20%, #f4fffa, #a9d8c3 55%, #6fa892); }
.hp-sw[data-c="信"] { color: #1b1915; } .hp-sw[data-c="信"] .hp-sw__bg { background: repeating-radial-gradient(circle at 60% 40%, rgba(12,74,58,.22) 0 1px, transparent 1px 6px), linear-gradient(100deg, rgba(126,240,210,.35), rgba(159,180,255,.3), rgba(255,211,138,.35)), #e6efe1; }
.hp-sw[data-c="雅"] { color: #1b1915; } .hp-sw[data-c="雅"] .hp-sw__bg { background: linear-gradient(transparent 55%, rgba(95,148,120,.55) 55.5%, rgba(61,110,140,.6) 75%, #e8dcc4 75.5%), linear-gradient(160deg, #efe4cc, #e2d3b2); clip-path: none; }
.hp-sw[data-c="南"] { color: #f3eee4; } .hp-sw[data-c="南"] .hp-sw__bg { background: radial-gradient(circle at 70% 35%, rgba(255,61,154,.45), transparent 45%), radial-gradient(circle at 20% 90%, rgba(45,226,230,.35), transparent 40%), #0b0a1e; }
.hp-sw[data-c="機"] { color: #f3eee4; } .hp-sw[data-c="機"] .hp-sw__bg { background: repeating-linear-gradient(0deg, rgba(255,176,0,.08) 0 2px, transparent 2px 4px), radial-gradient(ellipse at 50% 40%, #2a1a00, #0b0700 70%); }
@media (max-width: 900px) {
	.hp-idea { grid-template-columns: 1fr; padding-top: calc(var(--top) + 24px); }
	.hp-vtitle { writing-mode: horizontal-tb; flex-direction: column; font-size: clamp(42px, 12vw, 64px); }
	.hp-three { grid-template-columns: 1fr; }
	.hp-three > div { border-right: 0; margin-right: 0; border-bottom: 1px solid rgba(27,25,21,.12); padding-bottom: 16px; }
	.hp-swatch { display: flex; height: auto; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
	.hp-swatch li { flex: 0 0 132px; scroll-snap-align: start; }
	.hp-sw { height: 156px; }
	.hp-sw__c { font-size: 44px; }
}

/* ---------------------------------------------------------------- 03 委託 */
.hp-svc { background: #0b0a0c; color: var(--paper); display: flex; align-items: flex-start; padding: calc(var(--top) + 3.2vh) 0 2vh; }
.hp-svc__bg { position: absolute; right: -4vw; top: 50%; transform: translateY(-50%); z-index: 0; font: 900 min(80vh, 62vw)/1 var(--disp); color: #1c0d0a; pointer-events: none; user-select: none; }
.hp-svc .hp-idx { color: var(--gold); }
.hp-svc .hp-big { font-size: clamp(40px, min(5.4vw, 9.6vh), 96px); margin-bottom: 1.4vh; }
.hp-zhu { color: var(--zhu); }
.hp-lead--ink { color: rgba(243,238,228,.8); }
.hp-pipe { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; list-style: none; margin: 2.6vh 0 2.4vh; padding: 0; }
.hp-pipe li { position: relative; padding: 14px 18px 0 0; border-top: 1px solid rgba(243,238,228,.22); }
.hp-pipe li::before { content: ""; position: absolute; left: 0; top: -4px; width: 7px; height: 7px; background: var(--zhu); }
.hp-pipe__n { font: 500 11px/1 var(--mono); color: var(--dim); }
.hp-pipe b { display: block; margin: 8px 0 4px; font: 900 clamp(20px, 1.8vw, 26px)/1 var(--disp); letter-spacing: .1em; }
.hp-pipe em { display: block; font: 700 12px/1 var(--mono); font-style: normal; color: var(--gold); letter-spacing: .06em; }
.hp-pipe p { margin: 6px 0 0; font: 400 12.5px/1.65 var(--sans); color: rgba(243,238,228,.66); }
.hp-cats { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; list-style: none; margin: 0 0 2.6vh; padding: 0; background: rgba(243,238,228,.14); border: 1px solid rgba(243,238,228,.14); }
.hp-cat { position: relative; display: flex; flex-direction: column; height: 100%; padding: 0 0 10px; background: #0b0a0c; text-decoration: none; transition: background .2s; }
.hp-cat:hover { background: #17120f; }
.hp-cat__img { display: block; aspect-ratio: 16 / 7; overflow: hidden; margin-bottom: 8px; background: #15131a; }
.hp-cat__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.85); transition: transform .5s, filter .3s; }
.hp-cat:hover img { transform: scale(1.06); filter: none; }
.hp-cat__blank { display: grid; place-items: center; height: 100%; font: 900 22px/1 var(--disp); color: rgba(243,238,228,.25); }
.hp-cat b { padding: 0 10px; font: 700 13.5px/1.35 var(--sans); letter-spacing: .04em; }
.hp-cat em { padding: 4px 10px 0; font: 700 11.5px/1 var(--mono); font-style: normal; color: var(--gold); }
.hp-cat small { padding: 4px 10px 0; font: 400 11px/1.4 var(--sans); color: var(--dim); }
.hp-cats li:last-child { grid-column: span 1; }
@media (max-height: 1000px) and (min-width: 901px) { .hp-pipe p { display: none; } .hp-cat__img { aspect-ratio: 16 / 6; } }
@media (max-height: 920px) and (min-width: 901px) {
	.hp-svc .hp-lead { display: none; }
	.hp-pipe { margin: 2vh 0 1.8vh; } .hp-pipe p { display: none; }
	.hp-cat__img { aspect-ratio: 16 / 6; } .hp-cat small { display: none; }
}
@media (max-width: 1100px) { .hp-cats { grid-template-columns: repeat(5, 1fr); } }
@media (max-height: 820px) and (min-width: 901px) and (max-width: 1100px) { .hp-cat__img { display: none; } .hp-cat { padding-top: 10px; } }
@media (max-width: 900px) {
	.hp-svc { padding: calc(var(--top) + 24px) 0 40px; }
	.hp-svc__bg { display: none; }
	.hp-pipe { grid-template-columns: 1fr; } .hp-pipe li { padding: 14px 0 12px 20px; border-top: 0; border-left: 1px solid rgba(243,238,228,.22); } .hp-pipe li::before { left: -4px; top: 18px; }
	.hp-cats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------------------------------------------------------- 04 作品：按需求分三欄，每欄都通到目錄裡的一組 */
.hp-works { background: var(--ehuang); color: #111; display: grid; grid-template-columns: auto minmax(0, 1fr); padding: calc(var(--top) + 2vh) 0 2.6vh; }
.hp-giant { margin: 0; padding: 0 1.4vw 0 max(16px, 2vw); writing-mode: vertical-rl; font: 900 min(40vh, 22vw)/1 var(--sans); font-family: 'HW Sans', 'PingFang TC', 'Microsoft JhengHei', sans-serif; letter-spacing: -.02em; color: #111; align-self: center; }
.hp-works__main { display: flex; flex-direction: column; min-width: 0; padding: 0 max(56px, 5vw) 0 0; }
.hp-works__head { max-width: 980px; }
.hp-works .hp-idx { color: #111; }
.hp-works .hp-h2 { margin-bottom: 0; }
.hp-needs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 2.4vh 0 0; border-top: 2px solid #111; flex: 1 1 auto; min-height: 0; }
.hp-need { display: flex; flex-direction: column; min-width: 0; padding: 2.2vh clamp(14px, 1.6vw, 26px) 0; border-left: 2px solid #111; }
.hp-need:first-child { border-left: 0; padding-left: 0; }
.hp-need__t { margin: 0 0 1.2vh; font: 900 clamp(24px, min(2.5vw, 4.4vh), 40px)/1.2 var(--disp); letter-spacing: .02em; }
.hp-need__t a { color: inherit; text-decoration: none; }
.hp-need__t a:hover { color: var(--zhu); }
.hp-need__t i { font-style: normal; opacity: .4; letter-spacing: 0; }
.hp-need__d { margin: 0 0 1.4vh; font: 400 clamp(13px, 1vw, 15px)/1.8 var(--serif); color: #2a2410; }
.hp-need__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 1.6vh; padding: 0; list-style: none; }
.hp-need__tags li { padding: 5px 9px 6px; border: 1.5px solid #111; font: 700 12px/1 var(--sans); letter-spacing: .06em; }
.hp-need__works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 1.8vh; padding: 0; list-style: none; }
.hp-need__works a { display: block; color: #111; text-decoration: none; }
.hp-need__works img { display: block; width: 100%; height: auto; aspect-ratio: 720 / 422; object-fit: cover; background: #111; border: 2px solid #111; box-sizing: border-box; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.hp-need__works a:hover img { transform: translateY(-3px); }
.hp-need__works b { display: -webkit-box; margin-top: 6px; font: 700 12.5px/1.4 var(--sans); -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hp-need__go { align-self: flex-start; margin-top: 0; margin-bottom: 2.4vh; display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; background: #111; color: var(--ehuang); font: 700 13.5px/1 var(--sans); letter-spacing: .1em; text-decoration: none; }
.hp-need__go:hover { background: var(--zhu); color: #fff; }
.hp-need__go i { font-style: normal; font-family: var(--mono); }
.hp-works__note { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin: 2.2vh 0 0; padding-top: 1.4vh; border-top: 1px solid rgba(17,17,17,.35); font: 500 13.5px/1.6 var(--sans); color: #2a2410; }
.hp-works__note a { color: #111; font-weight: 700; letter-spacing: .08em; text-decoration: none; border-bottom: 1.5px solid #111; }
.hp-works__note a i { font-style: normal; font-family: var(--mono); }
@media (min-height: 980px) and (min-width: 1200px) { .hp-need__works { grid-template-columns: 1fr 1fr; } .hp-need__works li:first-child { grid-column: 1 / -1; } }
@media (max-height: 820px) and (min-width: 901px) { .hp-need__d { display: none; } }
@media (max-height: 700px) and (min-width: 901px) { .hp-need__works b { display: none; } }
@media (max-width: 1100px) and (min-width: 901px) { .hp-need__works { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hp-need__works li:nth-child(3) { display: none; } }
@media (max-width: 900px) {
	.hp-works { grid-template-columns: minmax(0, 1fr); padding: calc(var(--top) + 20px) 20px 32px; }
	.hp-giant { writing-mode: horizontal-tb; font-size: 26vw; padding: 0; line-height: .9; margin-bottom: 18px; }
	.hp-works__main { padding: 0; }
	.hp-needs { grid-template-columns: minmax(0, 1fr); border-top: 0; }
	.hp-need, .hp-need:first-child { padding: 22px 0 26px; border-left: 0; border-top: 2px solid #111; }
	.hp-need__go { margin-top: 4px; }
}

/* ---------------------------------------------------------------- 05 展館 */
.hp-museum { background: #05070d; }
.hp-map { position: absolute; inset: 0; z-index: 0; display: block; overflow: hidden; background: linear-gradient(90deg, #03050c 0%, #08080e 20%, #141013 40%, #201818 60%, #281d1b 80%, #241b1a 100%) top / 100% 50% no-repeat, #0a1f35; }
.hp-map picture, .hp-map img { display: block; width: 100%; height: 100%; }
/* 館圖按寬度鋪滿：更寬的屏只裁上下，橫向比例不變，所以左邊的文字壓不到館裡的字；比 4:3 更高的視窗，上下補天色和海色 */
.hp-map img { object-fit: cover; object-position: 50% 50%; transform-origin: 74% 50%; animation: hp-drift 38s ease-in-out infinite alternate; }
@media (min-width: 901px) and (max-aspect-ratio: 4/3) { .hp-map img { object-fit: contain; } }
/* 一屏比視口高時（矮屏），按這一屏自己的長寬比判斷 */
@media (min-width: 901px) { .hp-map { container-type: size; } @container (max-aspect-ratio: 4/3) { .hp-map img { object-fit: contain; } } }
@keyframes hp-drift { from { transform: scale(1); } to { transform: scale(1.04) translateX(-.8%); } }
@media (prefers-reduced-motion: reduce) { .hp-map img { animation: none; } }
.hp-map__hint { position: absolute; z-index: 2; right: max(24px, 3vw); bottom: 28px; padding: 8px 14px; font: 500 12px/1 var(--sans); letter-spacing: .24em; color: var(--paper); background: rgba(5,7,13,.6); border: 1px solid rgba(242,214,142,.45); transition: background .2s, color .2s; }
.hp-map:hover .hp-map__hint, .hp-map:focus-visible .hp-map__hint { background: var(--ehuang); color: #15120c; }
.hp-museum::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(5,7,13,.92) 0%, rgba(5,7,13,.72) 28%, rgba(5,7,13,0) 50%); }
.hp-museum__in { position: absolute; z-index: 3; left: max(28px, 6vw); top: 50%; transform: translateY(-46%); width: min(470px, 40vw); }
.hp-museum .hp-idx { color: var(--gold); }
.hp-museum .hp-lead { color: rgba(243,238,228,.84); font-size: 15px; }
.hp-codes { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 2px; list-style: none; margin: 22px 0 24px; padding: 0; } /* 八格等寬，館名太長就折成兩行 */
.hp-codes a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0 6px; text-decoration: none; background: rgba(243,238,228,.04); border: 1px solid rgba(243,238,228,.08); transition: background .2s, border-color .2s; }
.hp-codes a:hover, .hp-codes a:focus-visible { background: rgba(243,238,228,.1); border-color: rgba(255,210,63,.6); }
.hp-codes b { font: 900 24px/1 var(--disp); color: #f6efe0; }
.hp-codes span { font: 500 10px/1.25 var(--sans); letter-spacing: .02em; color: var(--dim); text-align: center; word-break: keep-all; overflow-wrap: anywhere; min-height: 2.5em; max-width: 100%; padding: 0 3px; box-sizing: border-box; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
@media (max-width: 900px) {
	.hp-museum { display: flex; flex-direction: column; }
	.hp-map { position: relative; height: 64svh; min-height: 380px; }
	.hp-map img { object-position: 50% 40%; animation: none; }
	.hp-map__hint { display: none; }
	.hp-museum::after { display: none; }
	.hp-museum__in { position: relative; left: auto; top: auto; transform: none; width: auto; padding: 0 22px 40px; margin-top: -40px; }
	.hp-codes { grid-template-columns: repeat(8, 1fr); }
	.hp-codes span { display: none; }
}

/* ---------------------------------------------------------------- 06 問道 */
.hp-ask { background: var(--zhu); color: #120c0a; display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: var(--top) max(24px, 6vw) 0; }
.hp-ask .hp-idx { color: #120c0a; }
.hp-ask .hp-big { font-size: clamp(48px, 6.6vw, 110px); }
.hp-ask .hp-lead--ink { color: #2a0d07; font-size: clamp(16px, 1.5vw, 21px); margin-bottom: 28px; }
.hp-ask .hw-btn { color: #120c0a; }
.hp-ask .hw-btn--ink { color: var(--paper); }
.hp-ask .hw-btn:not(.hw-btn--ink):hover { background: #120c0a; color: var(--zhu); border-color: #120c0a; }
.hp-small { margin: 22px 0 0; font: 400 14px/1.7 var(--sans); }
.hp-small a { color: inherit; font-weight: 700; }
/* 「問」：門開，口入 */
.hp-wen { position: relative; width: min(42vh, 36vw); aspect-ratio: 1; justify-self: center; }
.hp-wen__men { position: absolute; inset: 0; }
.hp-wen__men::before, .hp-wen__men::after { content: ""; position: absolute; top: 12%; bottom: 0; width: 13%; background: #120c0a; transition: transform 1.1s cubic-bezier(.7,0,.2,1); }
.hp-wen__men::before { left: 0; transform-origin: top; }
.hp-wen__men::after { right: 0; top: 4%; border-top: 0; }
.hp-wen::before { content: ""; position: absolute; left: 0; right: 0; top: 4%; height: 12%; background: #120c0a; clip-path: polygon(30% 0, 100% 0, 100% 100%, 38% 100%); }
.hp-wen::after { content: ""; position: absolute; left: 4%; top: -6%; width: 10%; height: 14%; background: #120c0a; transform: rotate(-30deg); }
.hp-wen__kou { position: absolute; left: 31%; top: 40%; width: 38%; height: 36%; border: min(4.6vh, 3.6vw) solid #120c0a; box-sizing: border-box; transition: transform 1.2s cubic-bezier(.3,1.4,.4,1) .35s, opacity .4s .35s; }
.js .hp-ask:not(.is-in) .hp-wen__kou { transform: translateY(-140%); opacity: 0; }
.hp-foot { grid-column: 1 / -1; align-self: end; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 26px; padding: 18px 0 22px; border-top: 1px solid rgba(18,12,10,.3); font: 400 13px/1.5 var(--sans); }
.hp-foot p { margin: 0; }
.hp-foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.hp-foot a { text-decoration: none; }
.hp-foot a:hover { text-decoration: underline; }
.hp-foot .hud { color: rgba(18,12,10,.6); }
@media (max-width: 900px) {
	.hp-ask { grid-template-columns: 1fr; padding-top: calc(var(--top) + 30px); }
	.hp-wen { width: 46vw; margin: 0 0 30px; justify-self: start; }
}
/* 收費功能「即將開放」期間，流程裡的幾步加個小標 */
.hp-soon { display: inline-block; margin: 6px 0 0; padding: 2px 7px; border: 1px solid rgba(255,210,63,.55); color: #ffd23f; font: 700 10px/1.3 var(--sans); font-style: normal; letter-spacing: .14em; }

/* ---------------------------------------------------------------- 第十二輪之二：代表作
 * 第一件大圖佔滿一欄，後兩件並排；圖上寫明是什麼作品（形式 + 名字，大圖再加一句話）。圖取作品裡最有特色的一角（/app/assets/feat/）。 */
.hp-need__works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hp-need__works li:first-child { grid-column: 1 / -1; }
.hp-need__works li:nth-child(3) { display: block; }
.hp-need__works a { position: relative; overflow: hidden; border: 2px solid #111; background: #111; color: #fff; }
.hp-need__works img { aspect-ratio: 3 / 2; border: 0; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.hp-need__works li:first-child img { aspect-ratio: 2 / 1; }
.hp-need__works a:hover img { transform: scale(1.04); }
.hp-rep__k { position: absolute; left: 6px; top: 6px; z-index: 1; padding: 4px 6px 5px; background: var(--ehuang); color: #111; font: 700 11px/1 var(--sans); letter-spacing: .06em; }
.hp-rep__t { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 26px 8px 7px; background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.8) 60%); }
.hp-need__works .hp-rep__t b { display: -webkit-box; margin: 0; font: 700 12px/1.35 var(--sans); color: #fff; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.hp-rep__t small { display: none; }
.hp-need__works li:first-child .hp-rep__t { padding: 34px 11px 9px; }
.hp-need__works li:first-child .hp-rep__t b { font-size: 14.5px; -webkit-line-clamp: 1; }
.hp-need__works li:first-child .hp-rep__t small { display: block; margin-top: 3px; font: 400 12px/1.5 var(--serif); color: rgba(255,255,255,.86); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 桌面上一屏放得下：圖的高度跟著視口高度封頂（寬屏、矮屏都不把下面的小注擠出這一屏） */
@media (min-width: 901px) {
	.hp-need__works li:first-child img { max-height: 16vh; max-height: 16svh; }
	.hp-need__works img { max-height: 10.5vh; max-height: 10.5svh; }
}
@media (max-height: 760px) and (min-width: 901px) {
	.hp-need__works li:first-child img { aspect-ratio: 5 / 2; }
	.hp-need__works img { aspect-ratio: 16 / 9; }
	.hp-need__works li:first-child .hp-rep__t small { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hp-need__works img { transition: none; } .hp-need__works a:hover img { transform: none; } }
/* 第十二轮之七：搜索引擎渲染时把窗口拉得极高（几千到上万像素），按屏高算的版块会跟着拉长、首屏只剩黑底；加一个真实屏幕碰不到的上限 */
.hp-s { max-height: min(280vw, 2400px); }
@media (max-width: 900px), (max-height: 640px) { .hp-s { max-height: none; min-height: min(100svh, 280vw, 2400px); } .hp-map { max-height: 1000px; } }

/* 最新作品（第十五轮）：首屏下面一屏，总是列最近上展的三件 */
.hp-new { background: #0c111c; color: var(--paper); display: flex; align-items: center; padding: calc(var(--top) + 3vh) 0 4vh; }
.hp-new::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse 60% 70% at 85% 20%, rgba(227,194,122,.10), rgba(227,194,122,0) 70%); }
.hp-new__in { position: relative; z-index: 1; width: min(1240px, calc(100% - 2 * max(24px, 5vw))); margin: 0 auto; }
.hp-new__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; margin-bottom: clamp(18px, 3.4vh, 40px); }
.hp-new .hp-idx { color: var(--gold); }
.hp-new .hp-h2 { margin: 0; }
.hp-new__all { flex: none; color: var(--paper); font: 500 14px/1.5 var(--sans); letter-spacing: .08em; text-decoration: none; border-bottom: 1px solid rgba(243,238,228,.35); padding-bottom: 3px; }
.hp-new__all:hover { border-color: var(--gold); color: var(--gold); }
.hp-new__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.2vw, 30px); }
.hp-new__list a { display: block; color: inherit; text-decoration: none; }
.hp-new__img { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #000; border: 1px solid rgba(227,194,122,.28); }
.hp-new__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.hp-new__list a:hover .hp-new__img img { transform: scale(1.04); }
.hp-new__k { position: absolute; left: 10px; top: 10px; z-index: 1; padding: 4px 7px 5px; background: var(--ehuang); color: #111; font: 700 11px/1 var(--sans); letter-spacing: .06em; }
.hp-new__m { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin: 14px 0 6px; font: 500 12px/1.3 var(--mono); color: var(--gold); letter-spacing: .05em; }
.hp-new__t { display: block; font: 900 clamp(19px, 1.8vw, 27px)/1.28 var(--disp); }
.hp-new__s { display: -webkit-box; margin-top: 8px; font: 400 14px/1.7 var(--serif); color: rgba(243,238,228,.72); -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hp-new__list a:hover .hp-new__t { color: var(--gold); }
@media (max-height: 780px) and (min-width: 901px) { .hp-new__img { aspect-ratio: 16 / 9; } .hp-new__s { -webkit-line-clamp: 1; } }
@media (max-height: 660px) and (min-width: 901px) { .hp-new__s { display: none; } .hp-new__img { aspect-ratio: 2 / 1; } }
@media (max-width: 1100px) and (min-width: 901px) { .hp-new__s { display: none; } }
@media (max-width: 900px) {
	.hp-new { padding: calc(var(--top) + 28px) 0 52px; align-items: flex-start; }
	.hp-new__list { grid-template-columns: 1fr; gap: 18px; }
	.hp-new__list a { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 14px; align-items: start; }
	.hp-new__m { margin-top: 2px; }
	.hp-new__t { font-size: 18px; }
	.hp-new__s { font-size: 13px; -webkit-line-clamp: 3; }
}
@media (max-width: 420px) { .hp-new__k { left: 6px; top: 6px; font-size: 10px; padding: 3px 5px 4px; } .hp-new__s { -webkit-line-clamp: 2; } }
