/* /v5 additions on top of ai.css: generated photography (workspace/v5-art, made with Codex image_gen) placed as
   editorial image blocks. Images sit in boxes sized before they load (aspect-ratio + ink background), so a late
   image only fills its own box and nothing moves. */

/* ---- /ai pain points: one wide photo, the four pain points pinned to its corners ---- */
/* Cut-out look: no frame; the photo's background is the page ink, and a soft mask melts its edges into the page */
.pain-stage { position: relative; aspect-ratio: 21 / 9; }
.pain-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    -webkit-mask-image: radial-gradient(ellipse 72% 90% at 50% 45%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 72% 90% at 50% 45%, #000 62%, transparent 100%); }
.pain-cards { position: absolute; inset: 0; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; grid-auto-flow: column; padding: clamp(1.2rem, 3vw, 2.4rem); gap: 1rem; list-style: none; margin: 0; }
.pain-cards li { align-self: center; max-width: 17rem; padding: 1rem 1.2rem 1.1rem; border-radius: 14px; background: rgba(10,14,26,0.72); border: 1px solid rgba(235,162,78,0.28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pain-cards li:nth-child(-n+2) { justify-self: start; }
.pain-cards li:nth-child(n+3) { justify-self: end; }
.pain-cards .n { display: block; font-family: var(--serif); font-weight: 900; font-style: italic; font-size: 1.9rem; line-height: 1; color: var(--gold); margin-bottom: 0.45rem; }
.pain-cards p { font-family: var(--serif); font-weight: 700; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.45; color: #fff; margin: 0; }

/* ---- /ai method: a photo band introducing the on-site first step ---- */
.photo-band { position: relative; margin: 0 0 clamp(2.5rem, 6vw, 4.5rem); aspect-ratio: 16 / 7; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-dark-2); background: #0D1220; }
.photo-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.photo-band::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(10,14,26,0.88) 0%, rgba(10,14,26,0.5) 40%, transparent 70%); }
.photo-band figcaption { position: absolute; left: clamp(1.4rem, 4vw, 3rem); right: clamp(1.4rem, 4vw, 3rem); bottom: clamp(1.4rem, 4vw, 3rem); z-index: 1; max-width: 30rem; }
.photo-band figcaption b, .photo-band figcaption span { text-wrap: balance; }
.photo-band figcaption b { display: block; font-family: var(--serif); font-weight: 900; font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.25; color: #fff; margin: 0.8rem 0 0.6rem; }
.photo-band figcaption span:not(.label) { color: var(--on-dark-2); line-height: 1.8; }

/* ---- /portfolio hero: jump links instead of counts (counts read as "only 11 clients") ---- */
.pf-jumps { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: clamp(2rem, 4vw, 2.8rem); }
.pf-jumps a { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.1rem; border-radius: 999px; border: 1px solid var(--line-dark-2); color: var(--on-dark); font-size: 0.92rem; transition: border-color 0.25s ease, color 0.25s ease; }
.pf-jumps a svg { color: var(--gold); }
@media (hover: hover) and (pointer: fine) { .pf-jumps a:hover { border-color: rgba(235,162,78,0.6); color: #fff; } }
.pf-anchor { scroll-margin-top: 6.5rem; }

@media (max-width: 760px) {
    .pain-stage { aspect-ratio: auto; }
    .pain-stage > img { position: static; display: block; aspect-ratio: 4 / 3; object-position: 50% center;
        -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 60%, transparent 100%); mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 60%, transparent 100%); }
    .pain-cards { position: static; display: grid; grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; padding: 1rem 0 0; gap: 0.7rem; }
    .pain-cards li, .pain-cards li:nth-child(-n+2), .pain-cards li:nth-child(n+3) { justify-self: stretch; max-width: none; display: grid; grid-template-columns: 2.6rem 1fr; align-items: baseline; }
    .pain-cards .n { font-size: 1.5rem; margin: 0; }
    .photo-band { aspect-ratio: 4 / 5; }
    .photo-band img { object-position: 72% center; }
    .photo-band::after { background: linear-gradient(0deg, rgba(10,14,26,0.92) 0%, rgba(10,14,26,0.4) 45%, transparent 70%); }
}

/* ---- /about "為什麼叫米花": italic numerals with a slash, a rendered illustration per statement ---- */
.v5-story .statement { grid-template-columns: 5.5rem clamp(8rem, 15vw, 12.5rem) 1fr; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); }
.v5-story .statement > .mono { position: relative; font-family: var(--serif); font-style: italic; font-weight: 900; font-size: clamp(2.1rem, 3.4vw, 2.9rem); letter-spacing: 0; line-height: 1; padding-bottom: 0.9rem; }
.v5-story .statement > .mono::after { content: ''; position: absolute; left: 1.6em; top: 0.55em; width: 1px; height: 1.3em; background: rgba(235,162,78,0.6); transform: rotate(40deg); transform-origin: top; }
/* the renders sit on the page's ink colour; the mask feathers any edge so no square shows */
.stmt-art { display: block; width: 100%; height: auto; aspect-ratio: 1; -webkit-mask-image: radial-gradient(circle at center, #000 52%, transparent 71%); mask-image: radial-gradient(circle at center, #000 52%, transparent 71%); }
@media (max-width: 560px) {
    .v5-story .statement { grid-template-columns: 3.6rem 6.5rem 1fr; }
    .v5-story .statement p { grid-column: 1 / -1; }
}

/* /services hero (page-hero--art) paragraph: no single-character last line */
.page-hero--art p { text-wrap: balance; }

/* ---- Home "客戶怎麼說": a featured carousel. Left, the line that matters, big; right, the messages it came from on a
   phone, popping in like a live conversation. One slide shows at a time once JS runs (v5-voices.js). ---- */
.vq { position: relative; display: grid; padding: clamp(1.4rem, 4vw, 3.4rem); border: 1px solid var(--line-dark-2); border-radius: 28px; overflow: hidden; text-align: left; isolation: isolate;
    background: linear-gradient(160deg, rgba(255,255,255,0.03), rgba(255,255,255,0.005)); }
.vq:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.vq-glow { position: absolute; z-index: -1; right: -18%; bottom: -45%; width: 70%; height: 110%; pointer-events: none;
    background: radial-gradient(closest-side, rgba(235,162,78,0.28), rgba(235,120,60,0.12) 45%, transparent 75%); filter: blur(30px); }
.vq-slide { grid-area: 1 / 1; display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(1.6rem, 5vw, 4.5rem); align-items: center; }
.vq-slide + .vq-slide { margin-top: 3rem; } /* no JS: slides stack as a list */
.js .vq-slide + .vq-slide { margin-top: 0; }
.js .vq-slide:not(.is-active) { visibility: hidden; pointer-events: none; }
.vq-quote { margin: 0; min-height: 21rem; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.vc-tag { font-size: 0.74rem; color: var(--gold); border: 1px solid rgba(235,162,78,0.4); border-radius: 999px; padding: 0.15rem 0.7rem; }
.vq-quote blockquote { margin: 1.4rem 0 1.6rem; }
.vq-quote blockquote p { position: relative; font-family: var(--serif); font-weight: 900; font-size: clamp(1.7rem, 3.3vw, 3rem); line-height: 1.3; color: #fff; text-wrap: pretty; }
.vq-quote blockquote p::before { content: '「'; color: var(--gold); margin-left: -0.5em; }
.vq-tail { white-space: nowrap; }
html[lang="en"] .vq-quote blockquote p::before { content: '“'; }
.vq-translated { margin: -0.9rem 0 1.2rem; font-size: 0.78rem; letter-spacing: 0.04em; color: var(--on-dark-2); }
.vq-mark { font-style: normal; color: var(--gold); }
.vq-quote figcaption { display: grid; gap: 0.3rem; font-size: 0.92rem; color: var(--on-dark-2); }
.vq-quote figcaption b { color: #fff; font-weight: 600; font-size: 1rem; }
.vq-quote figcaption a { color: var(--gold); }

/* the phone */
.vq-phone { justify-self: center; width: min(330px, 100%); height: 400px; display: flex; flex-direction: column; border-radius: 34px; padding: 10px; background: #05070D; border: 1px solid var(--line-dark-2); box-shadow: 0 40px 80px -30px rgba(0,0,0,0.9); }
.vq-phone-bar { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 0.8rem; border-radius: 24px 24px 0 0; background: #121828; border-bottom: 1px solid var(--line-dark); }
.vq-phone-bar b { display: block; font-size: 0.86rem; color: #fff; font-weight: 600; }
.vq-phone-bar small { display: block; font-size: 0.7rem; color: var(--on-dark-2); }
.vq-av { width: 30px; height: 30px; flex: none; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #F2C98D, #B7742F); }
.vq-thread { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.5rem; padding: 0.9rem 0.8rem 1rem; border-radius: 0 0 24px 24px; background: #0C111D; overflow: hidden; }
/* English messages run longer than the Chinese originals: the phone grows instead of cutting the first bubble */
html[lang="en"] .vq-phone { height: auto; min-height: 400px; }
.vq-b { align-self: flex-start; max-width: 88%; margin: 0; padding: 0.55rem 0.85rem; border-radius: 4px 16px 16px 16px; background: #222A3D; color: var(--on-dark); font-size: 0.88rem; line-height: 1.6; }

/* controls */
.vq-nav { grid-area: 2 / 1; display: flex; align-items: center; gap: 0.8rem; margin-top: clamp(1.4rem, 3vw, 2rem); }
html:not(.js) .vq-nav { display: none; }
.vq-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark-2); background: transparent; color: var(--on-dark); cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease, transform 0.15s ease; }
.vq-btn:active { transform: scale(0.94); }
.vq-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .vq-btn:hover { border-color: var(--gold); color: var(--gold); } }
.vq-count { font-size: 0.8rem; color: var(--on-dark-2); letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.vq-count b { color: #fff; font-weight: 500; }
.vq-progress { flex: 1; max-width: 220px; height: 2px; margin-left: 0.6rem; background: var(--line-dark-2); border-radius: 2px; overflow: hidden; }
.vq-progress i { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.vq.is-playing .vq-progress i { animation: vq-run var(--vq-dur, 7s) linear forwards; }
.vq.is-paused .vq-progress i { animation-play-state: paused; }
@keyframes vq-run { to { transform: scaleX(1); } }

/* entering slide: the quote rises in, then the messages arrive one by one (only after the first change, never on load) */
.vq-slide.is-entering .vq-quote > * { animation: vq-up 0.6s cubic-bezier(0.23, 1, 0.32, 1) both; }
.vq-slide.is-entering .vq-quote blockquote { animation-delay: 0.06s; }
.vq-slide.is-entering .vq-quote figcaption { animation-delay: 0.12s; }
.vq-slide.is-entering .vq-b { animation: vq-pop 0.45s cubic-bezier(0.34, 1.4, 0.64, 1) both; animation-delay: calc(0.35s + var(--j) * 0.55s); transform-origin: left bottom; }
@keyframes vq-up { from { opacity: 0; transform: translateY(14px); } }
@keyframes vq-pop { from { opacity: 0; transform: translateY(8px) scale(0.92); } }

@media (max-width: 860px) {
    .vq-slide { grid-template-columns: 1fr; gap: 1.6rem; }
    .vq-quote { min-height: 0; }
    .vq-phone { height: 340px; }
    html[lang="en"] .vq-phone { height: auto; min-height: 340px; }
}
@media (prefers-reduced-motion: reduce) {
    .vq-slide.is-entering .vq-quote > *, .vq-slide.is-entering .vq-b { animation: none; }
}

/* ---- Contact: LINE is the one alternative to the form; its name in LINE green ---- */
.btn-line .line-word { color: #06C755; }
@media (hover: hover) and (pointer: fine) { .btn-line:hover { border-color: rgba(6,199,85,0.55); } }

/* ---- /ai hero board, large cards: icon, title, two-line description, rendered art, gold links between cards.
   Same classes as ai-scan.css, so the scan sequence (sweep, pick, open into the report) is unchanged. ---- */
.scan-board--v5 { width: min(1180px, 100%); height: 440px; }
.scan-board--v5 .scan-card {
    width: 30%; height: 41%; display: block; padding: 1.1rem 1.2rem; border-radius: 18px; overflow: visible;
    background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)); box-shadow: 0 24px 50px -30px rgba(0,0,0,0.9);
}
.scan-board--v5 .sc-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold); margin-bottom: 0.75rem; position: relative; z-index: 1; }
.scan-board--v5 .scan-card b { display: block; position: relative; z-index: 1; font-family: var(--serif); font-weight: 900; font-size: clamp(1.1rem, 1.55vw, 1.45rem); line-height: 1.25; }
.scan-board--v5 .sc-desc { display: block; position: relative; z-index: 1; max-width: 58%; margin-top: 0.55rem; font-size: 0.86rem; line-height: 1.65; color: var(--on-dark-2); }
.scan-board--v5 .sc-short { display: none; }
.scan-board--v5 .sc-art { position: absolute; right: 0.4rem; bottom: 0.3rem; width: 37%; height: auto; aspect-ratio: 1; pointer-events: none;
    -webkit-mask-image: radial-gradient(circle at center, #000 55%, transparent 72%); mask-image: radial-gradient(circle at center, #000 55%, transparent 72%); }
.scan-board--v5 .scan-tag { top: -1.9rem; left: 0.2rem; }
/* 回答客人同樣的問題: the longest title, so a smaller render keeps it clear of the text */
.scan-board--v5 > .scan-card:nth-of-type(3) .sc-art { width: 29%; bottom: 0.6rem; }
.scan-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; transition: opacity 0.4s ease; }
.scan-links path { fill: none; stroke: rgba(235,162,78,0.55); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.is-focus .scan-links { opacity: 0.2; }
/* the art shows with the copy, once the hero is ready, rather than whenever each file lands */
.js-motion:not(.motion-fallback) .scan-hero:not(.hero-ready) .scan-board--v5 .sc-art { visibility: hidden; }

@media (max-width: 1180px) {
    .scan-board--v5 .sc-desc { max-width: 62%; font-size: 0.8rem; }
}
@media (max-width: 900px) {
    .scan-board--v5 { height: 380px; }
    .scan-board--v5 .sc-art { display: none; }
    .scan-board--v5 .sc-desc { max-width: none; }
}
/* phones: the compact cards from before (title + one short note), no art, no links */
@media (max-width: 640px) {
    .scan-board--v5 { height: 290px; }
    .scan-board--v5 .scan-card { width: auto; height: auto; padding: 0.7rem 0.85rem; border-radius: 12px; }
    .scan-board--v5 .sc-ic, .scan-board--v5 .sc-desc, .scan-links { display: none; }
    .scan-board--v5 .scan-card b { font-family: inherit; font-weight: 700; font-size: 0.88rem; white-space: nowrap; }
    .scan-board--v5 .sc-short { display: block; margin-top: 0.25rem; font-size: 0.68rem; color: var(--on-dark-2); letter-spacing: 0.06em; }
    .scan-board--v5 .scan-tag { top: -1.75rem; }
}
/* the one named client: name and links instead of a context line */
.vc-named::before { content: none; }
.vc-named b { color: #fff; font-weight: 600; }
.vc-named a { color: var(--gold); }
.voice2 .voices { margin-top: 0; }
.voice2 .sec-intro { text-align: left; }

/* ---- Section headings: title centred on the page; the "—— label" eyebrow at the left, vertically centred on the title
   line itself (not on title + subtitle, so it never drifts with the subtitle's length). Three columns 1fr | title | 1fr
   keep the title centred; everything else in the block spans the full width below. ---- */
.sec-intro, .method-head, .self2 > .container, .cta2 > .container, .cta-plain > .container {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto) minmax(0, 1fr); column-gap: 1.5rem; align-items: center; text-align: center; }
.sec-intro > div, .method-head > div { display: contents; }
.sec-intro > .label, .method-head > .label, .self2 > .container > .label, .cta2 > .container > .label, .cta-plain > .container > .label {
    grid-column: 1; grid-row: 1; justify-self: start; white-space: nowrap; }
.sec-intro h2, .method-head h2, .self2 > .container > h2, .cta2 > .container > h2, .cta-plain > .container > h2 { grid-column: 2; grid-row: 1; margin-top: 0; margin-bottom: 0; }
.sec-intro p, .method-head p, .self2 > .container > :not(.label):not(h2), .cta2 > .container > :not(.label):not(h2), .cta-plain > .container > :not(.label):not(h2) { grid-column: 1 / -1; }
.sec-intro p, .method-head p { margin: 1rem auto 0; }
/* English headings are too long for the label | title | label row: stack the label above the title instead */
html[lang="en"] :is(.sec-intro, .method-head, .self2 > .container, .cta2 > .container, .cta-plain > .container) { grid-template-columns: minmax(0, 1fr); row-gap: 1rem; }
html[lang="en"] :is(.sec-intro, .method-head, .self2 > .container, .cta2 > .container, .cta-plain > .container) > .label { grid-row: 1; justify-self: center; }
html[lang="en"] :is(.sec-intro h2, .method-head h2, .self2 > .container > h2, .cta2 > .container > h2, .cta-plain > .container > h2) { grid-column: 1; grid-row: 2; }
.self2 > .container > h2 + p, .cta2 > .container > h2 + p, .cta-plain > .container > h2 + p { margin-top: 1.2rem; }
.voice2 .sec-intro p { max-width: 42rem; }
.scan-wrap > .scan-label { align-self: flex-start; }
/* phones: no room beside the title, so the eyebrow sits on its own line above it, at the left */
@media (max-width: 760px) {
    .sec-intro, .method-head, .self2 > .container, .cta2 > .container, .cta-plain > .container { grid-template-columns: minmax(0, 1fr); row-gap: 1rem; }
    .sec-intro > .label, .method-head > .label, .self2 > .container > .label, .cta2 > .container > .label, .cta-plain > .container > .label { grid-row: 1; }
    .sec-intro h2, .method-head h2, .self2 > .container > h2, .cta2 > .container > h2, .cta-plain > .container > h2 { grid-column: 1; grid-row: 2; }
    .sec-intro p, .method-head p { margin-top: 0; }
}

/* ---- /ai method panels: the line drawing stays clear of the big outlined step number ---- */
@media (min-width: 981px) {
    .panel svg.illus { width: 48%; right: 2%; top: 6%; }
}

/* ---- /security: why it matters (three facts) ---- */
.why-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.why-grid li { padding: 1.4rem 1.5rem; border: 1px solid var(--line-dark); border-radius: 18px; background: rgba(255,255,255,0.02); display: grid; gap: 0.4rem; }
.why-grid b { font-family: var(--serif); font-size: 1.25rem; color: #fff; }
.why-grid span { color: var(--on-dark-2); line-height: 1.7; font-size: 0.95rem; }

/* ---- /security: the eight measures as glass bubbles orbiting the shield ---- */
.orbit { --orb: clamp(150px, 15.5vw, 205px); position: relative; aspect-ratio: 3 / 2; max-width: 1180px; margin: 0 auto; padding-block: 1rem; }
.orbit-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.orbit-ring ellipse { fill: none; stroke: rgba(110,160,255,0.28); stroke-width: 1; stroke-dasharray: 2 5; vector-effect: non-scaling-stroke; }
.orbit::before { content: ''; position: absolute; left: 50%; top: 50%; width: 60%; height: 70%; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, rgba(46,92,255,0.22), transparent 75%); filter: blur(10px); }
.orbit-core, .orb { position: absolute; border-radius: 50%; text-align: center; display: grid; place-content: center; justify-items: center;
    background: radial-gradient(circle at 32% 24%, rgba(150,190,255,0.30), rgba(46,92,255,0.16) 38%, rgba(12,22,52,0.78) 72%);
    border: 1px solid rgba(130,175,255,0.42);
    box-shadow: inset 0 2px 10px rgba(190,215,255,0.22), inset 0 -18px 30px rgba(8,14,40,0.55), 0 0 40px -6px rgba(46,92,255,0.45); }
.orbit-core { left: 50%; top: 50%; width: calc(var(--orb) * 1.45); aspect-ratio: 1; transform: translate(-50%, -50%); gap: 0.4rem; z-index: 1;
    box-shadow: inset 0 2px 12px rgba(190,215,255,0.25), inset 0 -24px 40px rgba(8,14,40,0.6), 0 0 70px -6px rgba(46,92,255,0.6); }
.orbit-shield { color: #9CC0FF; filter: drop-shadow(0 0 10px rgba(80,140,255,0.6)); }
.orbit-core img { width: 72%; height: auto; mix-blend-mode: screen; } /* the logo file has a black ground; screen drops it */
.orbit-sub { font-size: 0.78rem; letter-spacing: 0.14em; color: #B9CCF5; }
.orbit-list { list-style: none; margin: 0; padding: 0; }
/* slot k sits at angle -90° + 45°·k on an ellipse (36% × 34% of the stage) */
.orb { --a: calc(-90deg + var(--k) * 45deg); width: var(--orb); aspect-ratio: 1; padding: 1.1rem;
    left: calc(50% + cos(var(--a)) * 36%); top: calc(50% + sin(var(--a)) * 34%); transform: translate(-50%, -50%);
    transition: box-shadow 0.3s ease, border-color 0.3s ease; animation: orb-float 7s ease-in-out infinite; animation-delay: calc(var(--k) * -0.9s); }
.orb-ic { color: #8DB6FF; margin-bottom: 0.45rem; filter: drop-shadow(0 0 8px rgba(80,140,255,0.55)); }
.orb h3 { font-family: inherit; font-size: clamp(0.92rem, 1.15vw, 1.08rem); font-weight: 700; color: #fff; margin: 0 0 0.35rem; }
.orb p { font-size: clamp(0.7rem, 0.8vw, 0.8rem); line-height: 1.55; color: #B9CCF5; margin: 0; max-width: 11.5em; }
@keyframes orb-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@media (hover: hover) and (pointer: fine) {
    .orb:hover { border-color: rgba(170,205,255,0.75); box-shadow: inset 0 2px 10px rgba(190,215,255,0.3), inset 0 -18px 30px rgba(8,14,40,0.5), 0 0 55px -4px rgba(70,120,255,0.7); }
}
@media (prefers-reduced-motion: reduce) { .orb { animation: none; } }

/* narrower screens: the shield on top, the bubbles in a grid */
@media (max-width: 900px) {
    .why-grid { grid-template-columns: 1fr; }
    .orbit { aspect-ratio: auto; --orb: 100%; }
    .orbit-ring, .orbit::before { display: none; }
    .orbit-core { position: relative; left: auto; top: auto; transform: none; width: min(260px, 70%); margin: 0 auto 1.6rem; }
    .orbit-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
    .orb { position: relative; left: auto; top: auto; transform: none; width: auto; aspect-ratio: auto; border-radius: 24px; padding: 1.2rem 0.9rem; animation: none; }
    .orb h3 { font-size: 0.98rem; }
    .orb p { font-size: 0.8rem; max-width: none; }
}

/* ---- Home contact: the LINE button centred under the form ---- */
.contact2 .contact-alt { justify-content: center; }

/* ---- /ai method panels: the step text starts at the same height in every card (no longer bottom-aligned, which
   let the extra note in step 1 push its title up) ---- */
@media (min-width: 981px) {
    .method-track .panel { justify-content: flex-start; }
    .method-track .panel > div { margin-top: clamp(5rem, 9vw, 8rem); }
}

/* ---- /ai capability marquee: white and gold alternate ---- */
.marquee-item:nth-child(even) { color: var(--gold); }
.marquee-item svg { color: inherit; } /* the cross takes its item's colour, so the white/gold alternation runs through icon and text */

/* ---- /ai hero cards, English: titles wrap inside the card (the zh titles are 4–9 characters and stay on one line) ---- */
html[lang="en"] .scan-board--v5 .scan-card b { white-space: normal; max-width: 72%; font-size: clamp(1rem, 1.35vw, 1.3rem); }
@media (max-width: 640px) {
    html[lang="en"] .scan-board--v5 .scan-card b { white-space: normal; max-width: 9.5em; font-size: 0.82rem; line-height: 1.3; }
}
@media (min-width: 641px) and (max-width: 900px) {
    /* Tablet: the cards are short and the English title takes two lines, so tighten title and description to stay inside */
    html[lang="en"] .scan-board--v5 .scan-card b { font-size: 0.95rem; max-width: none; }
    html[lang="en"] .scan-board--v5 .sc-desc { font-size: 0.74rem; line-height: 1.45; margin-top: 0.35rem; }
    html[lang="en"] .scan-board--v5 .scan-card { padding: 0.85rem 0.95rem; }
    html[lang="en"] .scan-board--v5 .sc-ic { width: 34px; height: 34px; margin-bottom: 0.5rem; }
}
