/*
 * 2026-10-02（issue 175）首頁：九個區塊的版面與動態。只在首頁載入（_Layout 依 IsHome 輸出 link）。
 * 顏色、字級、圓角、緩動全部來自 design-tokens.css；這個檔案不出現色碼。
 * 靜態樣式在最前面且永遠有效（沒有 JS、減少動態、暫停動態都長這樣）；動態包在
 * @media (prefers-reduced-motion: no-preference) 與 html:not([data-motion="off"]) 之內；
 * 只有 JS 啟動後才生效的狀態掛在 html.js 之下。
 */
html:has(.home-main) { overflow-x: clip; }
.home-main { width: auto; margin: 0; padding: 0; min-height: 0; }
/* issue 303：首頁區塊留白收緊（原沿用全站 --section-pad 約 173px，內容間距達 300–394px）；只在首頁範圍覆寫，內頁不受影響。 */
.home-main { --section-pad: clamp(4.5rem, 9vw, 8rem); }
.home-main .catalog-content { width: 100%; margin: 0; }
:where(.home-main) :is(h1, h2, h3, .hero-title) { max-width: none; letter-spacing: inherit; }
:where(.home-main) :is(h2, h3) { margin-block: 0; text-wrap: balance; font-feature-settings: "palt"; }
:where(.home-main) p { margin-block: 0; }
:where(.home-main) :is(ul, ol) { margin: 0; padding: 0; list-style: none; }

/* ---------- 區段骨架：以 padding 對齊內容欄，直接子節點就是標題、清單等小單位 ---------- */
.home-sec { position: relative; padding: var(--section-pad) max(var(--gutter), calc((100% - var(--max)) / 2)); }
.home-sec > .cf-eyebrow { display: flex; }
.home-sec.wash { background: var(--wash); }
.home-sec.dark { background: var(--deeper); color: var(--paper); clip-path: inset(0 round var(--r-top) var(--r-top) 0 0); }
.home-sec:not(.dark) + .home-sec.dark { margin-top: calc(var(--r-top) * -1); }
/* issue 382：作業流程段原本是深色底（.dark），改成暖米白淺底；形狀規則與 .dark 相同，文字與線條色在下面各規則裡換成淺底版。 */
.home-sec.warm { background: var(--warm); color: var(--ink); clip-path: inset(0 round var(--r-top) var(--r-top) 0 0); }
.home-sec:not(.dark, .warm) + .home-sec.warm { margin-top: calc(var(--r-top) * -1); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; }

/* ---------- 1. 首屏 ---------- */
.hero { position: relative; display: grid; grid-template-columns: [full-start] minmax(var(--gutter), 1fr) [content-start] minmax(0, var(--max)) [content-end] minmax(var(--gutter), 1fr) [full-end]; align-content: end; min-height: 100svh; overflow: hidden; background: radial-gradient(70rem 44rem at 80% 35%, color-mix(in srgb, var(--cta) 20%, transparent), transparent 60%), radial-gradient(50rem 38rem at 5% 95%, color-mix(in srgb, var(--cloudforce-blue) 12%, transparent), transparent 60%), var(--deeper); color: var(--paper); }
.hero > * { grid-column: content; min-width: 0; }
.hero-fx, .radar { position: absolute; z-index: 0; grid-column: full; pointer-events: none; }
.hero-fx { inset: 0; }
.hero .hero-title, .hero-eyebrow, .hero-row, .hero-proof, .hero-stage, .hero-trust, .hero-marquee { position: relative; z-index: 1; }
/* 網路畫布在文字那一側壓淡（遮罩只改畫布本身的不透明度）：亮點與連線經過文字底下時，文字對比仍達 AA。 */
.hero-net { width: 100%; height: 100%; -webkit-mask-image: linear-gradient(90deg, color-mix(in srgb, black 38%, transparent), color-mix(in srgb, black 38%, transparent) 45%, black 85%), linear-gradient(180deg, black, black 50%, color-mix(in srgb, black 38%, transparent) 72%); mask-image: linear-gradient(90deg, color-mix(in srgb, black 38%, transparent), color-mix(in srgb, black 38%, transparent) 45%, black 85%), linear-gradient(180deg, black, black 50%, color-mix(in srgb, black 38%, transparent) 72%); -webkit-mask-composite: source-in; mask-composite: intersect; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(color-mix(in srgb, var(--paper) 3.5%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--paper) 3.5%, transparent) 1px, transparent 1px); background-size: 3.5rem 3.5rem; -webkit-mask-image: radial-gradient(ellipse at 65% 40%, black 15%, transparent 72%); mask-image: radial-gradient(ellipse at 65% 40%, black 15%, transparent 72%); }
.hero-eyebrow { order: -1; margin: 10.625rem 0 1.75rem; }
.hero .hero-title { max-width: 13ch; margin: 0; font-size: var(--fs-xl); font-weight: 900; line-height: 1.02; letter-spacing: -.025em; text-wrap: balance; font-feature-settings: "palt"; overflow-wrap: normal; }
/* issue 375：視覺版是 .hero-title 裡的段落（h1 只放視覺隱藏的完整句子），字級與間距沿用原本 h1 的規則。 */
.hero-heading-visual { display: block; margin: 0; }
.hero-heading-sentence { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span { display: block; }
.hero-rotator { position: relative; display: inline-grid; height: 1.06em; vertical-align: bottom; overflow: hidden; color: var(--hero-em); }
.hero-gap { word-spacing: 1em; }
.hero-rotator-word { grid-area: 1 / 1; opacity: 0; }
.hero-rotator-word.is-active { opacity: 1; }
.hero-rotator::after { content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .06em; background: linear-gradient(90deg, var(--cta), var(--soft)); transform-origin: left; }
/* issue 189（C7）：導言與按鈕在任何寬度都是同一欄靠左，按鈕緊接在導言下方（原本 1024～1599px 被 space-between 推到右下角）。 */
.hero-row { display: flex; flex-direction: column; align-items: flex-start; gap: 2rem; margin-top: 2.5rem; }
.hero .lead { max-width: 52ch; margin: 0; color: var(--on-dark-card-body); font-size: var(--fs-lead); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2rem; color: var(--muted-on-dark); font-size: .875rem; }
.hero-proof li::before { content: "\2713"; margin-right: .5rem; color: var(--soft); }
.hero-stage { margin-top: 3rem; border-radius: var(--r-card); overflow: hidden; box-shadow: inset 0 0 0 1px var(--deep-line); }
.hero-stage img { display: block; width: 100%; height: auto; max-height: 28rem; object-fit: cover; }
.hero-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.5rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--deep-line); }
.hero-trust-title { margin-bottom: .25rem; color: var(--paper); font-weight: 800; }
.hero-trust p:not(.hero-trust-title) { color: var(--muted-on-dark); font-size: .875rem; line-height: 1.7; }
.hero-marquee { grid-column: full; margin-top: 4rem; padding-block: 1.375rem; overflow: hidden; border-top: 1px solid var(--deep-line); -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent); mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent); }
.marquee-track { display: flex; gap: 4rem; width: max-content; color: color-mix(in srgb, var(--paper) 62%, transparent); font-size: clamp(1.125rem, 2vw, 1.625rem); font-weight: 700; white-space: nowrap; }
.marquee-track b { color: var(--paper); font-weight: 800; }
/* issue 302：跑馬燈有白色 Logo 的原廠＝Logo＋淡色第一個標籤；沒有 Logo 的原廠維持上面的文字樣式。 */
.marquee-track > span { display: inline-flex; align-items: center; gap: 1rem; }
.marquee-logo { display: block; width: auto; height: 1.5rem; max-width: 9rem; object-fit: contain; }
.marquee-tag { font-size: clamp(.875rem, 1.3vw, 1.0625rem); font-weight: 600; }

/* 雷達：圈、掃描、核心共 6 個 i，訊號字從第 7 個子節點開始（用 nth-child 避開前 6 個）；最上面的一個放在 26%，避開導覽與標題。 */
.radar { right: max(-7.5rem, calc((100vw - var(--max)) / 2 - 10rem)); top: 50%; translate: 0 -58%; width: min(47.5rem, 62vw); aspect-ratio: 1; }
.radar-ring { position: absolute; inset: 0; border: 1px solid color-mix(in srgb, var(--soft) 18%, transparent); border-radius: 50%; }
.radar-ring:nth-of-type(2) { inset: 12%; border-style: dashed; }
.radar-ring:nth-of-type(3) { inset: 26%; border-color: color-mix(in srgb, var(--soft) 28%, transparent); }
.radar-ring:nth-of-type(4) { inset: 40%; border-color: color-mix(in srgb, var(--cta) 45%, transparent); box-shadow: inset 0 0 3.75rem color-mix(in srgb, var(--cta) 25%, transparent); }
.radar-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, color-mix(in srgb, var(--cta) 32%, transparent), transparent 18%, transparent 100%); -webkit-mask-image: radial-gradient(circle, black 0 70%, transparent 71%); mask-image: radial-gradient(circle, black 0 70%, transparent 71%); }
.radar-core { position: absolute; inset: 46%; border-radius: 50%; background: radial-gradient(circle, var(--paper) 0 18%, var(--cta) 40%, transparent 72%); }
.blip { position: absolute; width: .625rem; height: .625rem; margin: -.3125rem; border-radius: 50%; background: var(--soft); box-shadow: 0 0 1.125rem var(--cta); opacity: 0; }
.blip b { position: absolute; left: 1.125rem; top: -.5rem; color: var(--soft); font-size: .6875rem; font-weight: 700; letter-spacing: .14em; white-space: nowrap; }
.blip:nth-child(7) { left: 72%; top: 30%; }
.blip:nth-child(8) { left: 80%; top: 62%; }
.blip:nth-child(9) { left: 58%; top: 84%; }
.blip:nth-child(10) { left: 50%; top: 26%; }
.blip:nth-child(11) { left: 30%; top: 70%; }
.blip:nth-child(12) { left: 24%; top: 34%; }

/* ---------- 2. 業務線大卡 ---------- */
.tracks { display: flex; gap: 1rem; min-height: 35rem; margin-top: 4rem; }
.tracks:has(> :nth-child(3)) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 0; }
.track { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: 2.75rem; border-radius: var(--r-card); overflow: hidden; background: var(--card-wash); color: var(--ink); transition: box-shadow .6s var(--ease); }
.track:nth-child(odd) { background: var(--deep); color: var(--paper); }
/* issue 189（C6）：hover 不再改變卡片寬度（另一張跟著縮、整段文字重新折行），改成外圈亮線與光暈；軌道轉速與箭頭仍在內層變化。 */
.track:is(:hover, :focus-within) { box-shadow: 0 0 0 1px color-mix(in srgb, var(--cta) 55%, transparent), 0 1.5rem 3.5rem color-mix(in srgb, var(--cta) 22%, transparent); }
.track-num { color: var(--muted); font-size: .8125rem; font-weight: 700; letter-spacing: .2em; }
.track:nth-child(odd) .track-num { color: var(--on-dark-card-number); }
.track h3 { max-width: 13ch; margin-block: 1.125rem .875rem; font-size: clamp(1.75rem, 3vw, 2.875rem); font-weight: 900; line-height: 1.12; letter-spacing: -.01em; }
.track-summary { max-width: 36ch; color: var(--muted); }
.track:nth-child(odd) .track-summary { color: var(--on-dark-card-body); }
.track-orbit { position: absolute; right: -8.75rem; top: -8.75rem; display: grid; place-items: center; width: 28.75rem; height: 28.75rem; border: 1px solid color-mix(in srgb, var(--soft) 30%, transparent); border-radius: 50%; pointer-events: none; }
.track-orbit::before { content: ""; position: absolute; inset: 3.5rem; border: 1px dashed color-mix(in srgb, var(--soft) 30%, transparent); border-radius: 50%; }
.track-orbit::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; background: radial-gradient(circle at 50% 0, var(--soft) 0 5px, transparent 6px); }
.track:nth-child(even) .track-orbit { border-color: color-mix(in srgb, var(--action) 14%, transparent); }
.track:nth-child(even) .track-orbit::before { border-color: color-mix(in srgb, var(--action) 14%, transparent); }
.track:nth-child(even) .track-orbit::after { background: radial-gradient(circle at 50% 0, var(--action) 0 5px, transparent 6px); }
.track-orbit b { position: relative; translate: -22% 22%; color: color-mix(in srgb, var(--soft) 50%, transparent); font-size: 1.5rem; font-weight: 900; line-height: 1.3; letter-spacing: .08em; text-align: center; }
.track:nth-child(even) .track-orbit b { color: color-mix(in srgb, var(--action) 60%, transparent); }
.track-go { display: inline-flex; align-items: center; gap: .75rem; align-self: flex-start; color: inherit; font-weight: 800; text-decoration: none; }
.track-go::after { content: ""; position: absolute; inset: 0; }
.track-go i { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; box-shadow: inset 0 0 0 1px currentColor; font-style: normal; transition: transform .6s var(--ease), background .3s, color .3s; }
.track:is(:hover, :focus-within) .track-go i { transform: rotate(-45deg); background: var(--cta); box-shadow: none; color: var(--on-accent); }
.track-go:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; }
.track:nth-child(odd) .track-go:focus-visible { outline-color: var(--soft); }

/* ---------- 3. 作業流程（捲動敘事） ---------- */
.home-story { padding-block: var(--section-pad); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6.25rem); }
.story-sticky { display: flex; flex-direction: column; align-self: start; }
/* issue 189：標題依標點分片語（不從詞中間斷），寬度交給欄寬；原本 11ch 會把「也要有可交付的營運」擠成兩行、整句變三行。 */
.story-sticky h2 { max-width: 16ch; }
.story-sub { margin-top: 1.25rem; color: var(--ink); font-weight: 700; }
.story-visual { position: relative; width: 100%; max-width: 31.25rem; margin-top: 2.75rem; aspect-ratio: 1; max-height: 46svh; }
.story-visual svg { width: 100%; height: 100%; overflow: visible; }
.node { fill: var(--deep); stroke: var(--action); stroke-width: 2; }
.halo { fill: none; stroke: var(--cta); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.edge { fill: none; stroke: var(--action); stroke-width: 2; }
.vlabel { fill: var(--muted-on-dark); font-size: 15px; font-weight: 800; text-anchor: middle; }
.node.lit { stroke: var(--cta); fill: var(--deep); }
.edge.lit { stroke: var(--ink); }
.vlabel.lit { fill: var(--paper); }
.halo.lit { opacity: .5; }
.bignum { position: absolute; right: -.625rem; top: -1.875rem; width: 1.3em; text-align: right; font-variant-numeric: tabular-nums; color: color-mix(in srgb, var(--action) 14%, transparent); font-family: "Inter Tight", var(--font-body); font-size: clamp(8.75rem, 17vw, 16.25rem); font-weight: 800; line-height: .85; pointer-events: none; }
.story-logo { width: 11rem; margin-top: 1.5rem; }
.story-logo img { display: block; width: 100%; height: auto; }
.steps-rail { position: relative; }
.steps { padding-block: 2rem 3rem; }
.step { display: flex; flex-direction: column; justify-content: center; padding-block: 2.5rem; padding-left: 2.75rem; }
/* issue 195：左欄釘住、右欄每步佔大半個視窗高的捲動敘事，只在桌機、JS 就緒且允許動態時才有；沒有 JS、減少動態、暫停動態時步驟緊湊堆疊（原本空白數百 px）。 */
@media (min-width: 61.3125rem) and (prefers-reduced-motion: no-preference) {
  html.js:not([data-motion="off"]) {
    .story-sticky { position: sticky; top: 0; align-self: auto; justify-content: center; height: 100svh; }
    .steps { padding-block: 32svh 20svh; }
    .step { min-height: 72svh; padding-block: 0; }
  }
}
.step .k { color: var(--action); font-size: .8125rem; font-weight: 700; letter-spacing: .22em; }
.step h3 { margin-block: .875rem 1.125rem; font-size: clamp(2.25rem, 4.2vw, 4rem); font-weight: 900; line-height: 1.08; }
.step p:not(.k) { max-width: 40ch; color: var(--muted); font-size: 1.125rem; }
.progress { position: absolute; left: 0; top: 0; width: 2px; height: 100%; background: var(--line); }
.progress i { display: block; width: 100%; height: 0; background: linear-gradient(var(--action), var(--cta)); box-shadow: 0 0 .75rem var(--cta); }
html.js .step:not(.on) { opacity: .62; }

/* ---------- 4. 安全課題 ---------- */
.ch-list { margin-top: 4rem; border-top: 1px solid var(--line); }
.ch { position: relative; display: grid; grid-template-columns: 6.875rem minmax(0, 1fr) minmax(0, 1.15fr) 4rem; gap: 2rem; align-items: center; padding: 2.75rem 1.5rem; border-bottom: 1px solid var(--line); isolation: isolate; }
.ch::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 1.5rem; background: var(--wash); transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease); }
.ch:is(:hover, :focus-within)::before { transform: scaleY(1); }
.ch-n { color: color-mix(in srgb, var(--ink) 38%, transparent); font-family: "Inter Tight", var(--font-body); font-size: 3.75rem; font-weight: 800; line-height: 1; transition: color .5s; }
.ch:is(:hover, :focus-within) .ch-n { color: var(--ink); }
.ch h3 { font-size: clamp(1.375rem, 2.3vw, 2.125rem); font-weight: 900; line-height: 1.22; }
.ch h3 a { color: inherit; text-decoration: none; }
.ch h3 a::after { content: ""; position: absolute; inset: 0; }
.ch-body p { color: var(--muted); }
.ch-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.ch-tags li { padding: .25rem .75rem; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line); color: var(--tag-text); font-size: .8125rem; font-weight: 700; }
.ch-arrow { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ink); transition: background .6s var(--ease), color .6s var(--ease), transform .6s var(--ease); }
.ch:is(:hover, :focus-within) .ch-arrow { background: var(--ink); color: var(--paper); transform: rotate(-45deg); }
.ch-peek { position: fixed; left: 0; top: 0; z-index: 40; width: 18.75rem; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 1.25rem; box-shadow: 0 1.875rem 3.75rem color-mix(in srgb, var(--deeper) 30%, transparent); opacity: 0; pointer-events: none; scale: .6; translate: var(--px, 55vw) var(--py, 40vh); transition: opacity .4s, scale .5s var(--ease), translate .35s var(--ease); }
.ch-peek img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (pointer: fine) { .ch:is(:hover, :focus-within) .ch-peek { opacity: 1; scale: 1; } }

/* ---------- 焦點推播 ---------- */
.topic-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr)); gap: 1.5rem; margin-top: 4rem; }
.topic { display: flex; flex-direction: column; gap: .75rem; padding: 2rem; border-radius: var(--r-card); background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.topic:first-child { background: var(--deep); color: var(--paper); box-shadow: none; }
.topic-kind { color: var(--action); font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.topic:first-child .topic-kind { color: var(--soft); }
.topic h3 { font-size: 1.375rem; font-weight: 900; line-height: 1.35; }
.topic p:not(.topic-kind) { color: var(--muted); }
.topic:first-child p:not(.topic-kind) { color: var(--muted-on-dark); }
.topic .cf-link { margin-top: auto; padding-top: .75rem; color: var(--action); }
.topic:first-child .cf-link { color: var(--soft); }
.topic:first-child :focus-visible, .bcard :focus-visible { outline-color: var(--soft); }

/* ---------- 5. 代理品牌（橫向 pin 捲動）---------- */
.home-brands { padding-inline: 0; padding-block: var(--section-pad); background: var(--paper); }
/* issue 303：安全課題與品牌區同為白底且相鄰，後一區上方只留半份，讀起來是延續而非斷開（橫向釘住時本來就無上下留白）。 */
.home-solutions + .home-brands:not(.hz-pinned) { padding-top: calc(var(--section-pad) / 2); }
.hz-pin { display: flex; flex-direction: column; justify-content: center; }
.hz-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }
.hz-head h2 { max-width: 15ch; }
.hz-count { color: var(--muted); font-family: "Inter Tight", var(--font-body); font-size: .9375rem; font-weight: 700; letter-spacing: .1em; }
/* issue 290：軌道左右內距與標題、進度線同一條內容邊界，第一張卡與標題左緣對齊。 */
.hz-track { display: flex; gap: 1.75rem; margin-top: 3rem; padding: 0 max(var(--gutter), (100% - var(--max)) / 2) 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.bcard { position: relative; flex: 0 0 min(33.75rem, 80vw); display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 4 / 5; max-height: 62svh; overflow: hidden; border-radius: var(--r-card); background: var(--deep); color: var(--paper); scroll-snap-align: center; }
.bcard-image { position: absolute; inset: -6%; width: 112%; height: 112%; max-width: none; object-fit: cover; transition: scale 1.4s var(--ease); }
.bcard:is(:hover, :focus-within) .bcard-image { scale: 1.06; }
.bcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 8%, color-mix(in srgb, var(--deeper) 88%, transparent) 38%, color-mix(in srgb, var(--deeper) 96%, transparent) 100%); pointer-events: none; }
.bcard-in { position: relative; z-index: 1; padding: 2.375rem; }
.bcard .k { color: var(--soft); font-size: .75rem; font-weight: 700; letter-spacing: .22em; }
.bcard h3 { margin-block: .75rem .875rem; font-family: "Inter Tight", var(--font-body); font-size: clamp(2.5rem, 4vw, 4rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.bcard h3 a { color: inherit; text-decoration: none; }
/* issue 302：有白色 Logo 時標題連結內放 Logo 圖、品牌名視覺隱藏（仍在連結內給螢幕閱讀器）。 */
.bcard .brand-logo { display: block; width: auto; height: clamp(2.5rem, 3.4vw, 3.25rem); max-width: min(16rem, 75%); object-fit: contain; object-position: left center; }
.bcard .brand-name { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.bcard h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.bcard-in p:not(.k) { max-width: 40ch; color: var(--muted-on-dark); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.tags li { padding: .4375rem .875rem; border-radius: var(--r-pill); background: color-mix(in srgb, var(--paper) 12%, transparent); font-size: .8125rem; font-weight: 700; }
.bcard-more { display: inline-block; margin-top: 1.25rem; color: var(--soft); font-weight: 800; }
.hz-bar { display: none; position: relative; width: min(var(--max), 100% - var(--gutter) * 2); height: 2px; margin: 2.5rem auto 0; background: var(--line); }
.hz-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ink); }
/* 桌機、允許動態且 JS 就緒（home.js 加 hz-pinned）：section 拉高，內容 sticky 釘住，捲動時橫向位移。拉高的量＝卡片橫移距離（issue 283）。
   issue 307：只有軌道是合成層；卡片圖片不再各自 will-change、標籤不用背景模糊（底下已是深色漸層），部分瀏覽器才不會畫不及而白畫面。 */
.home-brands.hz-pinned { height: calc(100svh + var(--hz-reach, 0px)); padding-block: 0; }
.hz-pinned .hz-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.hz-pinned .hz-track { overflow: visible; scroll-snap-type: none; will-change: transform; }
.hz-pinned .hz-bar { display: block; }

/* ---------- 6. 宣傳影片 ---------- */
.home-video { overflow: hidden; }
.vid-frame { margin-top: 3.5rem; border-radius: var(--r-card); overflow: hidden; background: var(--deep); aspect-ratio: 16 / 9; box-shadow: 0 3.125rem 7.5rem color-mix(in srgb, var(--ink) 28%, transparent); transform-origin: center top; }
.vid-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.vid-frame video:focus-visible { outline: 3px solid var(--soft); outline-offset: -6px; }

/* ---------- 7、8. 事實數字、營運數字、案例 ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin-top: 4rem; border-top: 1px solid var(--line); }
.fact { padding: 2.5rem 1.75rem 0; border-left: 1px solid var(--line); }
.fact b { display: block; font-family: "Inter Tight", var(--font-body); font-size: clamp(4rem, 7vw, 7.5rem); font-weight: 800; line-height: .9; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.fact-value { display: inline-block; }
.fact-unit { margin-left: .25rem; font-size: .4em; letter-spacing: 0; }
.fact-label { display: block; margin-top: 1.125rem; font-size: 1.125rem; font-weight: 800; }
.fact small { display: block; margin-top: .375rem; color: var(--muted); font-size: .875rem; }
.home-facts + .home-metrics { padding-top: 0; }
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.case { padding: 2rem; border-radius: var(--r-card); background: var(--deep); color: var(--paper); }
.case-label { margin-bottom: .75rem; color: var(--soft); font-size: .75rem; font-weight: 700; letter-spacing: .16em; }
.case h3 { font-size: 1.25rem; font-weight: 900; line-height: 1.4; }
.case-description { margin-top: .75rem; color: var(--muted-on-dark); }
.case-period { margin-top: 1rem; color: var(--on-dark-card-body); font-size: .8125rem; }

/* ---------- 9. 洞察與新聞（預設等大；.ins-grid--featured 為一大兩小，issue 188）---------- */
.article-directory-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.ins-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 4rem; }
.ins-grid--featured { grid-template-columns: repeat(51, 1fr); }
.ins-grid--featured > li { grid-column: span 15; }
.ins-grid--featured > li:first-child { grid-column: span 21; }
.ins-grid--featured > li:nth-child(n+4) { grid-column: span 17; }
.ins-grid > li { display: flex; }
.post { position: relative; display: flex; flex: 1; flex-direction: column; overflow: hidden; border-radius: var(--r-card); background: var(--paper); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .7s var(--ease); }
/* issue 189（B3）：上浮掛在不會動的外層 li 上偵測 hover——卡片往上移時 li 仍在原位，游標停在卡片下緣也不會反覆進出。 */
.ins-grid > li:is(:hover, :focus-within) > .post { box-shadow: 0 2.125rem 4.375rem color-mix(in srgb, var(--ink) 16%, transparent); }
.post-ph { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.ins-grid--featured > li:first-child .post-ph { aspect-ratio: 16 / 11; }
.post-ph img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease); }
.ins-grid > li:is(:hover, :focus-within) .post-ph img { scale: 1.06; }
.post-thumb { display: grid; align-items: end; padding: 1.25rem; color: var(--paper); font-size: .8125rem; font-weight: 800; }
.post-body { padding: 1.75rem; }
.post-meta { color: var(--action); font-size: .8125rem; font-weight: 800; letter-spacing: .06em; }
.post h3 { margin-block: .625rem; font-size: 1.25rem; font-weight: 900; line-height: 1.45; }
.ins-grid--featured > li:first-child h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); }
.post h3 a { color: inherit; text-decoration: none; }
.post h3 a::after { content: ""; position: absolute; inset: 0; }
.post p:not(.post-meta) { color: var(--muted); font-size: .9375rem; }
.post-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.post-tags a { position: relative; z-index: 3; display: inline-flex; align-items: center; min-height: 2rem; padding: .25rem .875rem; border-radius: var(--r-pill); background: var(--chip-bg); color: var(--tag-text); font-size: .8125rem; font-weight: 700; line-height: 1.3; text-decoration: none; transition: background .3s var(--ease), color .3s var(--ease); }
.post-tags a:is(:hover, :focus-visible) { background: var(--ink); color: var(--paper); }
.post-tags a:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; }
.home-insights-notice { margin-top: 1.5rem; color: var(--muted); font-size: .875rem; }

/* ---------- 結尾 CTA ---------- */
.home-cta { position: relative; overflow: hidden; padding: var(--section-pad) max(var(--gutter), calc((100% - var(--max)) / 2)); background: var(--deeper); color: var(--paper); text-align: center; clip-path: inset(0 round var(--r-top) var(--r-top) 0 0); }
.home-sec:not(.dark) + .home-cta, .catalog-content > :not(.home-sec):not(.home-cta) ~ .home-cta { margin-top: calc(var(--r-top) * -1); }
.home-cta::before { content: ""; position: absolute; left: 50%; top: 55%; width: 62.5rem; height: 62.5rem; translate: -50% -50%; background: radial-gradient(circle, color-mix(in srgb, var(--cta) 32%, transparent), transparent 62%); pointer-events: none; }
.cta-mq { position: absolute; left: 0; right: 0; top: 50%; translate: 0 -50%; overflow: hidden; pointer-events: none; }
.cta-mq div { display: flex; gap: 3rem; width: max-content; color: color-mix(in srgb, var(--soft) 9%, transparent); font-family: "Inter Tight", var(--font-body); font-size: clamp(5.625rem, 15vw, 15rem); font-weight: 800; letter-spacing: -.04em; white-space: nowrap; }
.home-cta-copy { position: relative; }
.home-cta .cf-eyebrow { justify-content: center; }
.home-cta h2 { max-width: 15ch; margin: 1.5rem auto 0; }
.home-cta .cf-lead { margin-inline: auto; }
.cta-group { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; margin-top: 3.25rem; }
.cta-mag { display: inline-grid; place-items: center; width: 13.125rem; height: 13.125rem; padding: 1rem; border-radius: 50%; background: var(--cta); color: var(--on-accent); font-size: 1.0625rem; font-weight: 900; line-height: 1.4; text-decoration: none; transition: box-shadow .5s, transform .35s var(--ease); }
.cta-mag:is(:hover, :focus-visible) { color: var(--on-accent); box-shadow: 0 0 0 1.25rem color-mix(in srgb, var(--cta) 16%, transparent), 0 0 5.625rem color-mix(in srgb, var(--cta) 60%, transparent); }
.cta-mag:focus-visible { outline-color: var(--paper); }
.cta-second { color: var(--soft); font-weight: 700; }

/* 舊版區塊（重點先看、內文、常見問題、文章建議…）：在滿版首頁裡收回內容欄寬。 */
.home-main .catalog-content > :is(.content-section, .prose, .article-suggestions, .secondary-nav) { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }
.home-main .catalog-content > .content-section:first-of-type { margin-top: var(--section-pad); }

/* ---------- 窄螢幕 ---------- */
@media (max-width: 61.25rem) {
  .hero-eyebrow { margin-top: 9rem; }
  .hero .hero-title { max-width: none; }
  .radar { right: -55vw; top: 14%; width: 120vw; opacity: .25; }
  .blip b { display: none; }
  .tracks { flex-direction: column; min-height: 0; }
  .tracks:has(> :nth-child(3)) { display: flex; }
  .track, .track:is(:hover, :focus-within) { flex: none; min-height: 26rem; padding: 2rem; }
  .home-sec.dark, .home-sec.warm, .home-cta { clip-path: inset(0 round 2rem 2rem 0 0); }
  .story-grid { grid-template-columns: 1fr; }
  .story-sticky { position: sticky; top: 0; z-index: 2; height: auto; padding-block: 5.5rem 1rem; background: var(--warm); }
  .story-visual { max-width: 15rem; margin-top: 1.25rem; max-height: none; }
  .bignum { font-size: 7.5rem; }
  .steps { padding-block: 1rem 3rem; }
  .step { padding-block: 2.5rem; padding-left: 1.75rem; }
  .ch { grid-template-columns: 3.5rem minmax(0, 1fr); gap: .625rem 1.125rem; padding: 2rem .5rem; }
  .ch-body { grid-column: 2; }
  .ch-arrow, .ch-peek { display: none; }
  .ch-n { font-size: 2.375rem; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { padding: 2rem 1rem; border-bottom: 1px solid var(--line); }
  .ins-grid, .ins-grid--featured { grid-template-columns: 1fr; }
  .ins-grid--featured > li, .ins-grid--featured > li:first-child, .ins-grid--featured > li:nth-child(n+4) { grid-column: auto; }
  .bcard { aspect-ratio: auto; min-height: 34rem; max-height: none; }
  .hz-count { display: none; }
}
@media (max-width: 40rem) {
  .hero-row { align-items: stretch; }
  .hero-actions .cf-btn { flex: 1 1 100%; }
  .facts { grid-template-columns: 1fr; }
  .home-main .catalog-content > .content-section:first-of-type { margin-top: 5rem; }
}

/* ---------- 初始狀態與動態（只在 JS 就緒且允許動態時）---------- */
/* issue 189（C10）：大標是 LCP 候選，起始狀態不能完全藏起來（完全被 .line 裁掉就不算繪製，LCP 要等進場播完）。
   起手只往下推 35%，第一次繪製就看得到上半部；進場時再升到定位。導言同樣只位移、不淡入。 */
html.js:not(.ready) .hero .line > span { transform: translateY(35%); animation: cf-show 0.01s 3s forwards; }
html.js:not(.ready) :is(.hero-eyebrow, .hero-actions, .hero-proof, .hero-trust, .hero-stage) { opacity: 0; transform: translateY(1.5rem); animation: cf-show 0.01s 3s forwards; }
html.js:not(.ready) .hero .lead { transform: translateY(1.5rem); animation: cf-show 0.01s 3s forwards; }
@keyframes cf-show { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  html.js:not([data-motion="off"]) {
    .hero .line > span { transition: transform 1.3s var(--ease); }
    .hero .line:nth-child(2) > span { transition-delay: .12s; }
    :is(.hero-eyebrow, .hero-actions, .hero-proof, .hero-trust, .hero-stage) { transition: opacity 1.2s var(--ease) .5s, transform 1.2s var(--ease) .5s; }
    .hero .lead { transition: transform 1.2s var(--ease) .5s; }
    .hero-rotator-word { opacity: 1; transform: translateY(105%); }
    .hero-rotator-word:is(.is-active, .is-leaving) { transition: transform 1s var(--ease); }
    .hero-rotator-word.is-active { transform: none; }
    .hero-rotator-word.is-leaving { transform: translateY(-105%); }
    .hero-rotator::after { animation: cf-uline 2.6s var(--ease) infinite; }
    .radar-ring:nth-of-type(2) { animation: cf-spin 60s linear infinite; }
    .radar-sweep { animation: cf-spin 7s linear infinite; }
    .radar-core { animation: cf-pulse 3.2s var(--ease) infinite; }
    .blip { animation: cf-blip 7s linear infinite; }
    .blip:nth-child(7) { animation-delay: .6s; }
    .blip:nth-child(8) { animation-delay: 2.1s; }
    .blip:nth-child(9) { animation-delay: 3.7s; }
    .blip:nth-child(10) { animation-delay: 5.2s; }
    .blip:nth-child(11) { animation-delay: 1.4s; }
    .blip:nth-child(12) { animation-delay: 4.4s; }
    .marquee-track { animation: cf-mq 40s linear infinite; }
    .hero-marquee:hover .marquee-track { animation-play-state: paused; }
    .track-orbit { animation: cf-spin 40s linear infinite; }
    .track:is(:hover, :focus-within) .track-orbit { animation-duration: 9s; }
    .halo.lit { animation: cf-halo 2.4s var(--ease) infinite; }
    .edge.lit { stroke-dasharray: 6 8; animation: cf-flow 1s linear infinite; }
    .node, .edge, .vlabel, .halo { transition: fill .8s, stroke .8s, opacity .8s; }
    .step { transition: opacity .7s; }
    .home-cta::before { animation: cf-breath 9s ease-in-out infinite; }
    .cta-mq div { animation: cf-mq 30s linear infinite; }
    .vid-frame { transition: scale .1s linear; }
    .post { transition: box-shadow .7s var(--ease), translate .7s var(--ease); }
    .ins-grid > li:is(:hover, :focus-within) > .post { translate: 0 -.5rem; }
  }
}
@keyframes cf-spin { to { transform: rotate(360deg); } }
@keyframes cf-pulse { 50% { transform: scale(1.25); opacity: .8; } }
@keyframes cf-blip { 0%, 4% { opacity: 0; transform: scale(.4); } 6% { opacity: 1; transform: scale(1.3); } 30% { opacity: .85; transform: scale(1); } 60%, 100% { opacity: 0; } }
@keyframes cf-uline { 0% { transform: scaleX(0); } 35%, 80% { transform: scaleX(1); } 100% { transform: scaleX(0); transform-origin: right; } }
@keyframes cf-mq { to { transform: translateX(-50%); } }
@keyframes cf-halo { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes cf-flow { to { stroke-dashoffset: -28; } }
@keyframes cf-breath { 50% { scale: 1.18; opacity: .7; } }

/* ---------- 幕簾（issue 195）：桌機首屏固定，內容區以圓角頂緣升起蓋過首屏 ----------
   純 CSS：首屏 sticky、內容區往上疊 --r-top（首屏底部多留同樣高度，跑馬燈不被蓋到）；圓角頂緣由內容區自己畫（overflow: clip 不會擋 sticky），
   上方陰影在內容區外、頂邊光是一層蓋在最上面的偽元素（不被第一個區段的底色蓋住）。首屏標題隨捲動下沉淡出（捲動時間軸，不支援時只是不淡出）。
   手機（< 62rem）、減少動態、暫停動態：維持靜態堆疊。 */
@media (min-width: 62rem) and (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) .home-main {
    > .hero { position: sticky; top: 0; z-index: 0; padding-bottom: calc(var(--r-top) + .5rem); }
    > .catalog-content { position: relative; z-index: 1; margin-top: calc(var(--r-top) * -1); border-radius: var(--r-top) var(--r-top) 0 0; background: var(--paper); overflow: clip; box-shadow: 0 -1.5rem 3.5rem -1rem color-mix(in srgb, var(--deeper) 70%, transparent); }
    > .catalog-content::before { content: ""; position: absolute; z-index: 5; top: 0; left: 0; right: 0; height: var(--r-top); border-radius: inherit; box-shadow: inset 0 1px 0 color-mix(in srgb, var(--cta) 60%, var(--paper)); pointer-events: none; }
    @supports (animation-timeline: scroll()) {
      > .hero :is(.hero-title, .hero-eyebrow, .hero-row) { animation: home-away linear both; animation-timeline: scroll(root); animation-range: 0 55vh; }
    }
  }
}
@keyframes home-away { to { translate: 0 -3vh; opacity: 0; } }
/* issue 307：首屏被內容完全蓋住時（home.js 加 hero-covered）不繪製、動畫暫停，避免整頁捲動都在重畫墊在底下的全螢幕動畫層。 */
.hero.hero-covered { visibility: hidden; }
/* 動畫宣告在 html:not([data-motion="off"]) 底下（權重 0,3,1），這裡用 :root .home-main 拉到 0,4,0 才蓋得過；偽元素不能放進 :is()，分開列。 */
:root .home-main > .hero.hero-covered *, :root .home-main > .hero.hero-covered *::before, :root .home-main > .hero.hero-covered *::after { animation-play-state: paused; }

/* 結尾 CTA 圓形遮罩轉場（@property 與 cta-iris 在 site.css）：進入視窗時由下方中央展開，播完等同原狀。 */
@supports (animation-timeline: view()) and (mask-image: radial-gradient(circle, black, transparent)) {
  @media (prefers-reduced-motion: no-preference) {
    html:not([data-motion="off"]) .home-cta { --cta-r: 0%; -webkit-mask-image: radial-gradient(circle at 50% 100%, black var(--cta-r), transparent calc(var(--cta-r) + .5%)); mask-image: radial-gradient(circle at 50% 100%, black var(--cta-r), transparent calc(var(--cta-r) + .5%)); animation: cta-iris linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
  }
}

/* 暫停動態／減少動態：靜態版——雷達停在一個畫面並顯示所有訊號字，跑馬燈可以橫向手動捲動。 */
html[data-motion="off"] .blip { opacity: .85; }
html[data-motion="off"] .hero-rotator::after { transform: scaleX(1); }
html[data-motion="off"] .marquee-track { overflow-x: auto; }
html[data-motion="off"] .vid-frame { scale: 1; }
html[data-motion="off"] .halo.lit { opacity: .5; }
html[data-motion="off"] .step { opacity: 1; }
html[data-motion="off"] .ch-peek { transition: none; }
