/* 專案旅程限定在本區塊，預設為完整的無 WebGL／無 JavaScript 閱讀版本。 */
.project_journey {
    --journey_ink: #eaf6f5;
    --journey_muted: #b2c6c8;
    --journey_teal: #00a8a8;
    --journey_mint: #2dd4bf;
    --journey_ice: #8bdde8;
    position: relative;
    width: 100%;
    margin: 0;
    background: #02090b;
    color: var(--journey_ink);
    isolation: isolate;
    text-align: left;
    overflow: clip;
}
.project_journey.is_enhanced {
    height: var(--journey_scroll_height, 700svh);
}
@media (prefers-reduced-motion: reduce) {
    .project_journey.is_enhanced { height: auto; }
}

/* GSAP 只固定內層舞台，外層保留捲動距離；fallback 不留下空白長頁。 */
.project_journey_stage {
    position: relative;
    width: 100%;
    min-height: 100svh;
    padding: clamp(84px, 8vw, 150px) 9%;
    overflow: hidden;
    background: radial-gradient(ellipse at 90% 15%, rgba(15, 76, 92, .12), transparent 60%), #02090b;
    isolation: isolate;
}
.project_journey.is_enhanced .project_journey_stage {
    height: 100svh;
    min-height: 0;
    padding: 0;
}
@media (max-width: 767px) {
    .project_journey_stage { padding: 76px 8% 100px; }
}
@media (prefers-reduced-motion: reduce) {
    .project_journey.is_enhanced .project_journey_stage { height: auto; min-height: 100svh; padding: 84px 9%; }
}

/* 畫布沒有互動攔截，HTML 文字、Menu 與既有聯絡入口維持可點擊。 */
.journey_canvas {
    position: absolute;
    inset: 0;
    display: none;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}
.project_journey.is_enhanced .journey_canvas { display: block; }
@media (prefers-reduced-motion: reduce) {
    .project_journey.is_enhanced .journey_canvas { display: none; }
}

/* 局部漸層只保護文案閱讀區域，讓粒子仍保有全幅空間感。 */
.journey_readability {
    display: none;
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(2, 9, 11, .74), rgba(2, 9, 11, .3) 29%, transparent 52%);
    z-index: 1;
}
.project_journey.is_enhanced .journey_readability { display: block; }
@media (max-width: 767px) {
    .journey_readability { background: linear-gradient(180deg, transparent 31%, rgba(2, 9, 11, .24) 46%, rgba(2, 9, 11, .9) 64%, #02090b 87%); }
}
@media (prefers-reduced-motion: reduce) {
    .project_journey.is_enhanced .journey_readability { display: none; }
}

/* 角落編號延續全站克制的 Editorial 字距與細線。 */
.journey_brand {
    position: relative;
    z-index: 3;
    margin-bottom: 64px;
    pointer-events: none;
}
.journey_brand p {
    display: flex;
    gap: 18px;
    align-items: center;
    margin: 0;
    color: #b2d0d4;
    font-size: clamp(10px, .7vw, 13px);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: .22em;
}
.journey_brand p > span:first-child { color: var(--journey_ice); }
.journey_brand p > span:nth-child(2) { opacity: .48; }
.journey_brand_rule {
    display: block;
    width: 40px;
    height: 1px;
    margin-top: 27px;
    background: rgba(139, 221, 232, .34);
}
.project_journey.is_enhanced .journey_brand { position: absolute; left: 9%; top: 10.5%; margin: 0; }
@media (max-width: 767px) {
    .journey_brand { margin-bottom: 42px; }
    .journey_brand p { font-size: 9px; gap: 12px; letter-spacing: .18em; }
    .journey_brand_rule { width: 28px; margin-top: 18px; }
    .project_journey.is_enhanced .journey_brand { left: 8%; top: 7.5%; }
}
@media (prefers-reduced-motion: reduce) {
    .project_journey.is_enhanced .journey_brand { position: relative; inset: auto; margin-bottom: 60px; }
}

/* 未啟用 WebGL 時呈現清楚的順序內容，所有中文都是可索引的 HTML。 */
.journey_content { position: relative; z-index: 2; max-width: 1080px; }
.journey_panel {
    position: relative;
    max-width: 720px;
    padding: 46px 0 58px;
    border-top: 1px solid rgba(139, 221, 232, .13);
}
.journey_panel:first-child { border-top: 0; padding-top: 0; }
.project_journey.is_enhanced .journey_content { position: static; max-width: none; }
.project_journey.is_enhanced .journey_panel {
    position: absolute;
    left: 9%;
    top: 39%;
    width: 35%;
    max-width: 650px;
    padding: 0;
    border: 0;
    opacity: 0;
    z-index: 2;
}
.project_journey.is_enhanced .journey_panel:first-child { opacity: 1; }
.project_journey.is_enhanced .journey_panel[aria-hidden="true"] { pointer-events: none; }
/* 可按段落改為右對齊；設定仍由 PHP Config 維護。 */
.project_journey.is_enhanced .journey_panel[data-journey-align="right"] { left: auto; right: 9%; text-align: right; }
.project_journey.is_enhanced .journey_panel[data-journey-align="center"] { left: 25%; width: 50%; max-width: none; text-align: center; }
@media (min-width: 768px) and (max-width: 1199px) {
    .project_journey.is_enhanced .journey_panel { left: 7%; width: 41%; top: 40%; }
}
@media (max-width: 767px) {
    .journey_panel { padding: 36px 0 46px; }
    .project_journey.is_enhanced .journey_panel { left: 8%; top: auto; bottom: 23%; width: 84%; max-width: none; }
    .project_journey.is_enhanced .journey_panel[data-journey-align] { left: 8%; right: auto; width: 84%; text-align: left; }
}
@media (max-height: 650px) and (min-width: 768px) {
    .project_journey.is_enhanced .journey_panel { top: 32%; }
}
@media (prefers-reduced-motion: reduce) {
    .project_journey.is_enhanced .journey_content { position: relative; max-width: 1080px; }
    .project_journey.is_enhanced .journey_panel { position: relative; inset: auto; width: 100%; max-width: 720px; padding: 46px 0 58px; border-top: 1px solid rgba(139, 221, 232, .13); opacity: 1 !important; transform: none !important; filter: none !important; pointer-events: auto; }
    .project_journey.is_enhanced .journey_panel:first-child { border-top: 0; padding-top: 0; }
}

/* 階段、標題與敘述分層，不使用實心資訊卡遮住主體。 */
.journey_eyebrow {
    margin: 0 0 23px;
    color: var(--journey_ice);
    font-size: clamp(10px, .74vw, 13px);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: .21em;
}
.journey_title {
    margin: 0;
    color: var(--journey_ink);
    font-family: inherit;
    font-size: clamp(35px, 3.05vw, 60px);
    font-weight: 300;
    line-height: 1.48;
    letter-spacing: .04em;
    text-wrap: balance;
    overflow-wrap: anywhere;
}
.journey_description {
    max-width: 38em;
    margin: 29px 0 0;
    color: var(--journey_muted);
    font-size: clamp(14px, 1vw, 18px);
    font-weight: 300;
    line-height: 2;
    letter-spacing: .055em;
    overflow-wrap: anywhere;
}
@media (min-width: 768px) and (max-width: 1199px) {
    .journey_title { font-size: clamp(30px, 3.7vw, 43px); }
    .journey_description { font-size: 14px; line-height: 1.9; }
}
@media (max-width: 767px) {
    .journey_eyebrow { margin-bottom: 13px; font-size: 9px; letter-spacing: .17em; }
    .journey_title { font-size: clamp(27px, 7.6vw, 36px); line-height: 1.43; letter-spacing: .025em; }
    .journey_description { margin-top: 17px; font-size: 13px; line-height: 1.85; letter-spacing: .025em; }
}
@media (max-height: 650px) and (min-width: 768px) {
    .journey_title { font-size: clamp(30px, 2.7vw, 42px); }
    .journey_description { margin-top: 18px; font-size: 13px; }
    .journey_eyebrow { margin-bottom: 15px; }
}

/* 六個刻度是原生按鈕，滑鼠與鍵盤皆可選擇階段。 */
.journey_progress { display: none; }
.project_journey.is_enhanced .journey_progress {
    display: flex;
    position: absolute;
    z-index: 4;
    left: 9%;
    bottom: 10%;
    align-items: center;
    gap: clamp(13px, 1.6vw, 28px);
}
.journey_progress button {
    display: grid;
    place-content: center;
    gap: 11px;
    min-width: 38px;
    min-height: 46px;
    padding: 7px 5px;
    border: 0;
    border-radius: 0;
    color: #889c9f;
    background: transparent;
    font: inherit;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: .1em;
    cursor: pointer;
    transition: color .3s ease;
}
.journey_step_line { display: block; width: 23px; height: 1px; background: rgba(139, 221, 232, .2); transform-origin: left center; transition: background .3s ease, transform .3s ease; }
.journey_progress button:hover, .journey_progress button:focus-visible, .journey_progress button.is_active, .journey_progress button[aria-current="step"] { color: var(--journey_mint); }
.journey_progress button.is_active .journey_step_line, .journey_progress button[aria-current="step"] .journey_step_line { background: var(--journey_mint); transform: scaleX(1.18); }
.journey_progress button:focus-visible { outline: 1px solid var(--journey_ice); outline-offset: 4px; }
@media (min-width: 768px) and (max-width: 1199px) {
    .project_journey.is_enhanced .journey_progress { left: 7%; gap: 15px; }
}
@media (max-width: 767px) {
    .project_journey.is_enhanced .journey_progress { left: 8%; bottom: 11%; gap: clamp(7px, 3vw, 18px); }
    .journey_progress button { min-width: 31px; min-height: 44px; font-size: 10px; gap: 8px; }
    .journey_step_line { width: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .project_journey.is_enhanced .journey_progress { display: none; }
    .journey_progress button, .journey_step_line { transition: none; }
}

/* 捲動提示只在互動場景開場顯示，之後交給時間軸淡出。 */
.journey_scroll_hint { display: none; }
.project_journey.is_enhanced .journey_scroll_hint {
    display: flex;
    position: absolute;
    z-index: 3;
    left: 9%;
    bottom: 5.5%;
    align-items: center;
    gap: 14px;
    margin: 0;
    color: #9db7ba;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: .2em;
    pointer-events: none;
}
.journey_scroll_hint > span { font-size: 17px; line-height: 1; color: var(--journey_ice); }
@media (max-width: 767px) {
    .project_journey.is_enhanced .journey_scroll_hint { left: 8%; bottom: 7.5%; gap: 9px; font-size: 8px; letter-spacing: .12em; }
}
@media (prefers-reduced-motion: reduce) {
    .project_journey.is_enhanced .journey_scroll_hint { display: none; }
}

/* 結尾 CTA 指向既有合作流程，不建立新的表單或頁面。 */
.journey_contact {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 46px;
    min-height: 54px;
    margin-top: 31px;
    padding: 13px 23px;
    border: 1px solid rgba(139, 221, 232, .56);
    border-radius: 999px;
    color: var(--journey_ink);
    background: transparent;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: .12em;
    transition: color .3s ease, border-color .3s ease, background .3s ease;
}
.journey_contact > span:last-child { font-size: 23px; font-weight: 300; line-height: 1; transition: transform .3s ease; }
.journey_contact:hover, .journey_contact:focus-visible { color: #effffc; background: rgba(15, 76, 92, .22); border-color: var(--journey_mint); text-decoration: none; }
.journey_contact:hover > span:last-child { transform: translate(2px, -2px); }
.journey_contact:focus-visible { outline: 2px solid var(--journey_ice); outline-offset: 5px; }
@media (max-width: 767px) {
    .journey_contact { min-height: 46px; padding: 10px 19px; margin-top: 21px; gap: 35px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .journey_contact, .journey_contact > span:last-child { transition: none; }
}

/* 除錯面板預設隱藏，僅由設定開啟，不加入正式介面的裝飾。 */
.journey_debug {
    position: absolute;
    right: 20px;
    top: 100px;
    z-index: 8;
    max-width: min(400px, 85vw);
    padding: 12px 16px;
    border: 1px solid rgba(139, 221, 232, .22);
    color: #d9eff0;
    background: rgba(2, 9, 11, .88);
    font: 11px/1.7 monospace;
    white-space: pre-wrap;
    pointer-events: none;
}
.journey_debug[hidden] { display: none; }
