/* =========================================================
   Nutrim 新群科技 — Semiconductor Tech Theme
   ========================================================= */
:root {
  --bg-0: #050816;
  --bg-1: #0a1030;
  --bg-2: #111a45;
  --line-d: rgba(120, 170, 255, .14);
  --navy: #161c63;
  --red: #d3122f;
  --cyan: #00b8f0;
  --cyan-2: #7fe3ff;
  --blue: #1a5cff;
  --violet: #7b5cff;
  --pink: #ff4f8b;
  --amber: #ffb547;
  --ink: #0c1430;
  --ink-2: #44506e;
  --paper: #ffffff;
  --paper-2: #eef5ff;
  --line: #d9e4f5;
  --txt-d: #e8eeff;
  --txt-d2: #9fb0d6;
  --grad: linear-gradient(100deg, #00b8f0 0%, #1a5cff 50%, #7b5cff 100%);
  --grad-vivid: linear-gradient(120deg, #0a2fb8 0%, #1a5cff 60%, #00a8e8 130%);
  --hero-bg: radial-gradient(800px 520px at 88% 12%, rgba(0, 184, 240, .28), transparent 62%), radial-gradient(700px 520px at 0% 100%, rgba(123, 92, 255, .2), transparent 60%), radial-gradient(500px 400px at 55% 60%, rgba(255, 79, 139, .08), transparent 70%), linear-gradient(180deg, #f8fbff 0%, #e8f1ff 100%);
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 10px 30px rgba(10, 20, 60, .08), 0 2px 6px rgba(10, 20, 60, .05);
  --shadow-glow: 0 0 0 1px rgba(26, 92, 255, .35), 0 12px 40px rgba(26, 92, 255, .2);
  --font: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', system-ui, sans-serif;
  --font-tech: 'Space Grotesk', 'Noto Sans TC', system-ui, sans-serif;
  --font-display: 'Barlow Condensed', 'Noto Sans TC', system-ui, sans-serif;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.75; font-size: 16px; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
/* 中文標題只在詞界（建置時插入的 <wbr>）換行，並平衡各行長度，避免句尾孤字 */
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; letter-spacing: .01em; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 900; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(860px, 100% - 32px); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn { --b: transparent; display: inline-flex; align-items: center; justify-content: center; gap: .6em; padding: .95em 1.6em; border-radius: 2px; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--b); transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s, border-color .25s; white-space: nowrap; position: relative; overflow: hidden; }
.btn .ico { transition: transform .25s var(--ease); }
.btn:hover .ico:last-child { transform: translateX(3px); }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(100deg, #ff3b5c, #e0103a); color: #fff; box-shadow: 0 8px 24px rgba(255, 59, 92, .35); }
.btn-primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { --b: rgba(26, 92, 255, .35); color: #1a3fbf; background: rgba(255,255,255,.7); backdrop-filter: blur(6px); }
.btn-ghost:hover { --b: var(--blue); color: var(--blue); box-shadow: var(--shadow-glow); }
.hero .btn-ghost, .page-hero .btn-ghost, .section-dark .btn-ghost, .cta-band .btn-ghost { --b: rgba(255,255,255,.55); color: #fff; background: rgba(255,255,255,.12); }
.hero .btn-ghost:hover, .page-hero .btn-ghost:hover, .section-dark .btn-ghost:hover, .cta-band .btn-ghost:hover { --b: #fff; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.btn-ghost-dark { --b: var(--line); color: var(--ink); background: #fff; }
.btn-ghost-dark:hover { --b: var(--navy); }
.btn-sm { padding: .65em 1.15em; font-size: .92rem; }
.btn-line { --b: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { --b: var(--blue); background: var(--blue); color: #fff; }
.btn-block { width: 100%; margin-top: .6em; }

.eyebrow { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .24em; font-size: .9rem; font-weight: 600; color: var(--blue); margin-bottom: .8em; display: inline-flex; align-items: center; gap: .7em; }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--grad); }
.section-dark .eyebrow, .cta-band .eyebrow { color: #bfeeff; }
.section-dark .eyebrow::before, .cta-band .eyebrow::before { background: #bfeeff; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.08rem; color: var(--ink-2); max-width: 62ch; }
.text-link { display: inline-flex; gap: .4em; align-items: center; font-weight: 700; color: #1d6fd0; }
.text-link:hover .ico { transform: translateX(3px); }
.text-link .ico { transition: transform .25s; }
.center-link { text-align: center; margin-top: 2rem; }
.note { color: var(--ink-2); font-size: .88rem; }

/* ---------- Header ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--grad); z-index: 101; }
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); transition: background .3s, box-shadow .3s, height .3s; background: transparent; }
/* 背景模糊放在偽元素上：避免 backdrop-filter 讓 fixed 的手機選單被限制在 header 內 */
.site-header::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px) saturate(1.6); box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(26, 60, 140, .06); opacity: 1; transition: opacity .3s; }
.site-header.scrolled { background: transparent; --header-h: 64px; }
.site-header.scrolled::before { opacity: 1; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand img { height: 38px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: .5em .85em; color: var(--ink); font-size: .95rem; font-weight: 500; border-radius: 8px; position: relative; transition: color .2s; }
.main-nav a::after { content: ''; position: absolute; left: .85em; right: .85em; bottom: .25em; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--blue); }
.main-nav a:hover::after, .main-nav a[aria-current]::after { transform: scaleX(1); }
.nav-contact-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-tel { display: inline-flex; gap: .4em; align-items: center; color: var(--ink); font-family: var(--font-tech); font-weight: 500; font-size: .95rem; }
.header-tel:hover { color: var(--blue); }
.nav-toggle { display: none; background: #fff; border: 1px solid var(--line); color: var(--ink); width: 42px; height: 42px; border-radius: 10px; align-items: center; justify-content: center; }
.nav-toggle .ico { width: 22px; height: 22px; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: 100svh; background: radial-gradient(900px 620px at 74% 42%, rgba(26, 92, 255, .55) 0%, rgba(26, 92, 255, 0) 62%), radial-gradient(600px 400px at 100% 100%, rgba(0, 184, 240, .25), transparent 60%), linear-gradient(180deg, #071232 0%, #040a1f 100%); color: #fff; padding: calc(var(--header-h) + 40px) 0 0; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-glow { position: absolute; width: 60vw; height: 60vw; right: -10vw; top: -10vw; background: radial-gradient(circle, rgba(0,184,240,.18), transparent 60%); filter: blur(20px); z-index: -1; pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-bottom: 28px; }
.hero-copy { max-width: 760px; }
.hero h1 { margin-bottom: .5em; }
.hero-en { display: block; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(3rem, 1.6rem + 6.4vw, 7.2rem); line-height: .92; letter-spacing: .01em; }
.hero-en i { font-style: normal; color: var(--cyan); font-weight: 500; }
.hero-zh { display: block; margin-top: .45em; font-size: clamp(1.25rem, 1rem + 1.2vw, 2rem); font-weight: 700; letter-spacing: .04em; }

.hero .lead { color: rgba(255, 255, 255, .82); font-size: clamp(1rem, .95rem + .3vw, 1.18rem); }
.hero .lead strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.8em 0 1.4em; }
.hero-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0; padding: 18px 0 0; border-top: 1px solid rgba(255, 255, 255, .18); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .14em; font-size: .9rem; color: rgba(255, 255, 255, .7); }
.hero-trust span { width: 4px; height: 4px; background: var(--red); transform: rotate(45deg); }
.scroll-cue { position: absolute; right: 32px; bottom: 28px; display: flex; flex-direction: column; align-items: center; gap: 8px; font: 600 .75rem var(--font-display); letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .7); writing-mode: vertical-rl; }
.scroll-cue i { width: 1px; height: 54px; background: linear-gradient(rgba(255,255,255,.8), transparent); animation: cue 2s infinite var(--ease); transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(60,200,255,.7); animation: pulse 2s infinite; }
.eyebrow:has(.pulse)::before { display: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(60,200,255,0); } 100% { box-shadow: 0 0 0 0 rgba(60,200,255,0); } }

.pf-band { background: #fff; border-bottom: 1px solid var(--line); padding: 44px 0 0; }
.pf-title { display: flex; align-items: baseline; gap: 16px; font-size: 1.25rem; margin: 0 0 20px; }
.pf-title span { font: 600 .9rem var(--font-display); letter-spacing: .24em; text-transform: uppercase; color: var(--red); }
.pf-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.pf-item { position: relative; display: grid; gap: 4px; padding: 24px 48px 30px 0; border-right: 1px solid var(--line); transition: background .3s; }
.pf-item + .pf-item { padding-left: 24px; }
.pf-item:last-child { border-right: 0; }
.pf-item::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.pf-item:hover::before { transform: scaleX(1); }
.pf-item small { font: 600 .85rem var(--font-display); color: var(--ink-2); letter-spacing: .1em; }
.pf-item b { color: var(--ink); font-size: 1.15rem; }
.pf-item span { color: var(--ink-2); font-size: .9rem; line-height: 1.55; }
.pf-item .ico { position: absolute; right: 16px; bottom: 30px; color: var(--blue); transition: transform .3s var(--ease); }
.pf-item:hover b { color: var(--blue); }
.pf-item:hover .ico { transform: translateX(5px); }
.pf-grid.light { border-top: 0; gap: 12px; }
.pf-grid.light .pf-item { padding: 20px 44px 20px 20px; border: 1px solid var(--line); background: var(--paper-2); }

/* ---------- Chapters（SpaceX 全高章節） ---------- */
.chapter { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); }
.chapter:nth-of-type(odd) { background: linear-gradient(180deg, #f5f8ff, #e9f1ff); }
.chapter-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; padding: 80px 0; }
.chapter:nth-of-type(even) .chapter-copy { order: 2; }
.chapter-no { font: 700 1rem var(--font-display); letter-spacing: .2em; color: var(--red); margin-bottom: 18px; }
.chapter-no span { color: var(--ink-2); margin-left: .5em; font-weight: 500; }
.chapter-en { font: 700 clamp(2.6rem, 1.4rem + 4vw, 5.4rem)/0.92 var(--font-display); text-transform: uppercase; color: var(--ink); margin: 0 0 .35em; letter-spacing: .005em; }
.chapter h3 { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.7rem); color: var(--blue); }
.chapter-copy > p:not([class]) { color: var(--ink-2); max-width: 46ch; }
.chapter-copy ul { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 8px; }
.chapter-copy li { padding-left: 1.4em; position: relative; font-weight: 500; }
.chapter-copy li::before { content: ''; position: absolute; left: 0; top: .7em; width: 10px; height: 2px; background: var(--red); }
.chapter-figs { position: relative; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 14px; }
.chapter:nth-of-type(even) .chapter-figs { align-items: flex-start; }
.chapter-bignum { display: block; position: relative; transform: translateY(min(0px, var(--py, 0px))); font: 700 clamp(7rem, 3rem + 9vw, 12.5rem)/.78 var(--font-display); color: transparent; -webkit-text-stroke: 2px rgba(26, 92, 255, .32); background: linear-gradient(180deg, rgba(26, 92, 255, .1), rgba(0, 184, 240, 0)); -webkit-background-clip: text; background-clip: text; letter-spacing: -.02em; pointer-events: none; user-select: none; }
.chapter:nth-of-type(even) .chapter-bignum { text-align: left; }
.chapter-figs dl { position: relative; margin: 0; display: grid; gap: 0; width: min(100%, 420px); background: rgba(255, 255, 255, .78); backdrop-filter: blur(8px); border: 1px solid var(--line); border-top: 3px solid var(--blue); box-shadow: 0 24px 60px rgba(26, 60, 160, .12); }
.chapter-figs dl > div { display: flex; flex-direction: column-reverse; padding: 26px 30px; border-bottom: 1px solid var(--line); }
.chapter-figs dl > div:last-child { border-bottom: 0; }
.chapter-figs dd { margin: 0; font: 700 clamp(3rem, 2.2rem + 2.6vw, 4.6rem)/1 var(--font-display); color: var(--ink); letter-spacing: .01em; }
.chapter-figs dd small { font-size: .42em; font-weight: 600; color: var(--blue); margin-left: .2em; }
.chapter-figs dt { margin-top: 8px; font-size: .92rem; color: var(--ink-2); font-weight: 500; }

/* ---------- Stats ---------- */
.stats { background: var(--grad-vivid); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 20px; text-align: center; border-right: 1px solid rgba(255,255,255,.25); }
.stat:last-child { border-right: 0; }
.stat-num { font-family: var(--font-tech); font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 700; margin: 0; color: #fff; line-height: 1; text-shadow: none; font-family: var(--font-display); font-size: clamp(2.8rem, 2rem + 2.6vw, 4.4rem); }
.stat-label { color: rgba(255,255,255,.85); margin: .3em 0 0; font-size: .92rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 8vw, 112px) 0; position: relative; }
.section-alt { background: var(--paper-2); }
.section-dark { --txt-d2: #dce7ff; --line-d: rgba(255, 255, 255, .22); background: radial-gradient(700px 420px at 90% 10%, rgba(0, 220, 255, .35), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(255, 79, 139, .25), transparent 60%), linear-gradient(135deg, #1440d8 0%, #2b55ff 45%, #6a4dff 100%); color: #fff; }
.section-dark .lead { color: var(--txt-d2); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lead { margin-inline: auto; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { position: relative; display: flex; flex-direction: column; padding: 30px 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.pillar::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.pillar:hover::before { transform: scaleX(1); }
.pillar:hover { border-color: #b9d6f5; box-shadow: 0 20px 50px rgba(20, 60, 140, .14); }
.pillar-no { font-family: var(--font-tech); font-weight: 700; font-size: 2.6rem; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 14px; }
.pillar h3 { font-size: 1.3rem; }
.pillar p { color: var(--ink-2); }
.pillar ul { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 6px; }
.pillar li { font-size: .92rem; padding-left: 1.3em; position: relative; }
.pillar li::before { content: ''; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border: 2px solid var(--cyan); transform: rotate(45deg); }
.more { margin-top: auto; display: inline-flex; gap: .4em; align-items: center; font-weight: 700; color: #1d6fd0; }
.more .ico { transition: transform .25s; }
a:hover .more .ico, .more:hover .ico { transform: translateX(4px); }

/* ---------- TBDB Lab ---------- */
.tbdb-lab { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: stretch; }
.tbdb-stage { --line-d: rgba(120, 170, 255, .16); position: relative; border-radius: var(--radius-lg); background: linear-gradient(180deg, #0f1f66, #0a1440); box-shadow: 0 30px 70px rgba(10, 20, 90, .35); border: 1px solid var(--line-d); padding: 18px; overflow: hidden; }
.tbdb-stage::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--line-d) 1px, transparent 1px), linear-gradient(90deg, var(--line-d) 1px, transparent 1px); background-size: 24px 24px; opacity: .45; mask-image: radial-gradient(circle at 50% 60%, #000 30%, transparent 80%); }
.stage-hud { position: relative; font-family: var(--font-tech); font-size: .78rem; letter-spacing: .14em; color: var(--cyan-2); display: flex; align-items: center; gap: 8px; }
.hud-dot { width: 7px; height: 7px; border-radius: 50%; background: #3dff9a; box-shadow: 0 0 10px #3dff9a; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.tbdb-svg { position: relative; width: 100%; height: auto; display: block; }
.tbdb-svg .lbl { font: 600 11px var(--font-tech); fill: #9fb0d6; transition: opacity .4s; }
.stage-progress { position: relative; height: 3px; background: rgba(255,255,255,.08); border-radius: 3px; overflow: hidden; }
.stage-progress span { position: absolute; inset: 0; background: var(--grad); transform-origin: left; transform: scaleX(0); }
.tbdb-lab.playing .stage-progress span { animation: prog var(--dur, 4.2s) linear forwards; }
@keyframes prog { to { transform: scaleX(1); } }

.tbdb-svg g, .tbdb-svg rect { transform-box: fill-box; }
.tbdb-svg .wafer-pos, .tbdb-svg .wafer-thick, .tbdb-svg .glue, .tbdb-svg [class^='fx-'] { transition: transform .9s var(--ease), opacity .6s; }
.tbdb-svg .wafer-thick { transform-origin: 50% 100%; }
.tbdb-svg .wafer-pos { transform-origin: 0% 100%; }
.tbdb-svg .glue { transform-origin: 50% 50%; }
.tbdb-svg [class^='fx-'] { opacity: 0; }
.fx-heat path { fill: none; stroke: #ff6b4a; stroke-width: 3; stroke-linecap: round; opacity: .8; animation: rise 1.4s var(--d, 0s) infinite ease-in; }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } 40% { opacity: .9; } to { transform: translateY(-16px); opacity: 0; } }
.fx-press path { fill: none; stroke: var(--cyan-2); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; animation: press 1.1s infinite var(--ease); }
@keyframes press { 50% { transform: translateY(10px); } }
.fx-nozzle .drip { animation: drip 1s infinite ease-in; }
@keyframes drip { from { transform: translateY(-8px); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(70px); opacity: 0; } }
.fx-nozzle .spin { transform-origin: 50% 0%; animation: spinw .9s linear infinite; }
@keyframes spinw { to { stroke-dashoffset: -32; } }
.fx-grind .grinder { animation: grind 2.4s infinite alternate var(--ease); }
@keyframes grind { to { transform: translateX(280px); } }
.fx-laser .beam { filter: drop-shadow(0 0 6px #ff3d6e); }
.fx-clean circle { fill: rgba(127,227,255,.25); stroke: var(--cyan-2); animation: bubble 1.6s var(--d, 0s) infinite ease-out; }
@keyframes bubble { from { transform: translateY(10px) scale(.6); opacity: 0; } 40% { opacity: 1; } to { transform: translateY(-40px) scale(1.2); opacity: 0; } }
.fx-residue circle { fill: #ffb547; opacity: 0; transition: opacity .6s; }

/* states */
[data-step='coat'] .wafer-pos { transform: translateY(-90px); opacity: 0; }
[data-step='coat'] .glue { animation: coat 2.4s var(--ease) infinite; }
@keyframes coat { 0% { transform: scaleX(.05); } 60%, 100% { transform: scaleX(1); } }
[data-step='coat'] .fx-nozzle { opacity: 1; }
[data-step='coat'] .lbl-wafer { opacity: 0; }
[data-step='bake'] .wafer-pos { transform: translateY(-90px); opacity: 0; }
[data-step='bake'] .fx-heat { opacity: 1; }
[data-step='bake'] .lbl-wafer { opacity: 0; }
[data-step='bond'] .wafer-pos { animation: bondDown 2.2s var(--ease) both; }
@keyframes bondDown { from { transform: translateY(-80px); } 55%, to { transform: translateY(0); } }
[data-step='bond'] .fx-press { opacity: 1; }
[data-step='thin'] .wafer-thick { transform: scaleY(.38); }
[data-step='thin'] .fx-grind { opacity: 1; }
[data-step='debond'] .wafer-thick, [data-step='clean'] .wafer-thick { transform: scaleY(.38); }
[data-step='debond'][data-method='thermal'] .wafer-pos { animation: slide 2.6s var(--ease) infinite; }
@keyframes slide { 0%, 20% { transform: translateX(0); } 70%, 100% { transform: translateX(110px); opacity: .9; } }
[data-step='debond'][data-method='thermal'] .fx-heat { opacity: 1; }
[data-step='debond'][data-method='mech'] .wafer-pos { animation: peel 2.6s var(--ease) infinite; }
@keyframes peel { 0%, 20% { transform: rotate(0); } 70%, 100% { transform: translateY(-14px) rotate(-12deg); } }
[data-step='debond'][data-method='laser'] .fx-laser { opacity: 1; }
[data-step='debond'][data-method='laser'] .fx-laser .beam { animation: scan 2.6s linear infinite; }
@keyframes scan { from { transform: translateX(0); } to { transform: translateX(330px); } }
[data-step='debond'][data-method='laser'] .wafer-pos { animation: lift 2.6s var(--ease) infinite; }
@keyframes lift { 0%, 75% { transform: translateY(0); } 100% { transform: translateY(-30px); } }
[data-step='debond'] .fx-residue circle { opacity: .9; }
[data-step='clean'] .wafer-pos { transform: translateY(-46px); }
[data-step='clean'] .glue { opacity: 0; }
[data-step='clean'] .lbl-glue { opacity: 0; }
[data-step='clean'] .fx-clean { opacity: 1; }

.tbdb-panel { display: flex; flex-direction: column; gap: 16px; }
.tbdb-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tbdb-steps button { width: 100%; display: flex; gap: 10px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.1); border: 1px solid var(--line-d); color: var(--txt-d2); transition: all .25s var(--ease); }
.tbdb-steps b { font-family: var(--font-tech); color: #bfeeff; font-size: .9rem; }
.tbdb-steps span { display: grid; line-height: 1.3; font-weight: 700; color: #fff; font-size: .95rem; }
.tbdb-steps small { font-weight: 400; color: var(--txt-d2); font-size: .72rem; font-family: var(--font-tech); }
.tbdb-steps button:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.16); }
.tbdb-steps button[aria-selected='true'] { background: #fff; border-color: #fff; box-shadow: 0 12px 30px rgba(0, 20, 90, .25); }
.tbdb-steps button[aria-selected='true'] b { color: var(--blue); }
.tbdb-steps button[aria-selected='true'] span { color: var(--ink); }
.tbdb-steps button[aria-selected='true'] small { color: var(--ink-2); }
.tbdb-desc { flex: 1; padding: 20px 22px; border-radius: var(--radius); background: rgba(255,255,255,.1); backdrop-filter: blur(6px); border: 1px solid var(--line-d); min-height: 220px; }
.tbdb-desc h3 { color: #fff; }
.tbdb-desc h3 small { color: var(--txt-d2); font-family: var(--font-tech); font-weight: 500; font-size: .8rem; }
.tbdb-desc p { color: var(--txt-d2); }
.tbdb-desc-item:not([hidden]) { animation: fadeUp .45s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
.method-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.method-tabs button { padding: .4em .9em; border-radius: 999px; border: 1px solid var(--line-d); background: none; color: var(--txt-d2); font-size: .85rem; }
.method-tabs button[aria-pressed='true'] { background: #fff; color: var(--blue); border-color: #fff; font-weight: 700; }
.method-info ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: .9rem; color: var(--txt-d2); }
.method-info b { color: #ffd27a; margin-right: .6em; font-size: .8rem; }
.tbdb-controls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }

/* ---------- Warpage simulator ---------- */
.warp-sim { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 36px); box-shadow: var(--shadow); }
.warp-visual { background: linear-gradient(160deg, #142c8f, #0b1650); border-radius: var(--radius); padding: 18px; position: relative; overflow: hidden; }
.warp-visual::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--line-d) 1px, transparent 1px), linear-gradient(90deg, var(--line-d) 1px, transparent 1px); background-size: 20px 20px; opacity: .5; }
.warp-visual svg { position: relative; width: 100%; }
.warp-visual .baseline { stroke: rgba(160,190,255,.35); stroke-dasharray: 4 6; }
.warp-visual .dim { stroke: var(--amber); stroke-width: 2; }
.warp-visual .dim-lbl { fill: var(--amber); font: 700 18px var(--font-tech); }
.warp-visual .pad { fill: #3a4a7c; }
.warp-visual path { transition: d .35s var(--ease); filter: drop-shadow(0 0 8px rgba(60,200,255,.6)); }
.warp-label { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 8px; }
.warp-label output { font-family: var(--font-tech); color: #1d6fd0; font-size: 1.2rem; }
input[type='range'] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 8px; background: linear-gradient(90deg, #22d38a 0 20%, #1a9dff 20% 66.6%, #ff7a45 66.6%); outline-offset: 6px; }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--navy); box-shadow: 0 4px 12px rgba(0,0,0,.25); cursor: grab; }
input[type='range']::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--navy); cursor: grab; }
.warp-scale { display: flex; justify-content: space-between; font: 500 .78rem var(--font-tech); color: var(--ink-2); margin: 6px 0 16px; }
.warp-scale span:nth-child(2) { margin-left: 8%; } .warp-scale span:nth-child(3) { margin-left: 30%; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin-bottom: 16px; }
.seg button { border: 0; background: none; padding: .4em 1em; border-radius: 999px; font-size: .88rem; color: var(--ink-2); }
.seg button[aria-pressed='true'] { background: var(--blue); color: #fff; }
.warp-verdict { border-radius: var(--radius); padding: 16px 18px; background: #ecfbf3; border: 1px solid #b6ecd0; transition: background .3s, border-color .3s; }
.warp-verdict.mid { background: #eaf6ff; border-color: #b4dcfb; }
.warp-verdict.high { background: #fff3ea; border-color: #ffd0b0; }
.v-tag { font-weight: 900; margin: 0 0 .2em; }
.v-text { margin: 0; color: var(--ink-2); font-size: .95rem; }
.v-text a { color: #1d6fd0; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.warp-legend { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 4px; font-size: .85rem; color: var(--ink-2); }
.warp-legend b { display: inline-block; min-width: 5.5em; font-family: var(--font-tech); color: var(--ink); }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.product-card { border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: box-shadow .3s, border-color .3s, transform .3s var(--ease); transform-style: preserve-3d; }
.product-card:hover { box-shadow: 0 24px 60px rgba(20, 60, 140, .16); border-color: #b9d6f5; }
.product-link { display: flex; flex-direction: column; height: 100%; }
.product-media { position: relative; aspect-ratio: 4/3; background: radial-gradient(circle at 50% 60%, #ffffff 0%, #e9f2ff 75%); overflow: hidden; }
.product-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(60,200,255,.18) 50%, transparent 60%); transform: translateX(-100%); transition: transform .9s var(--ease); }
.product-card:hover .product-media::after { transform: translateX(100%); }
.product-media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.05); }
.product-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: .75rem; font-weight: 700; color: #1d7fd0; letter-spacing: .06em; margin-bottom: .4em; }
.product-body h3 { margin-bottom: .1em; }
.product-en { font-family: var(--font-tech); font-size: .85rem; color: var(--ink-2); margin-bottom: .7em; }
.product-sum { font-size: .9rem; color: var(--ink-2); line-height: 1.65; }

.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.why > div { padding: 22px; border-left: 3px solid var(--cyan); background: #fff; border-radius: 0 var(--radius) var(--radius) 0; }
.why p { color: var(--ink-2); margin: 0; font-size: .95rem; }

/* ---------- Flow ---------- */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: f; position: relative; }
.flow::before { content: ''; position: absolute; top: 26px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--violet)); opacity: .35; }
.flow li { position: relative; text-align: center; padding: 0 6px; }
.flow b { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; background: var(--grad); border: 0; font-family: var(--font-tech); color: #fff; position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--paper); }
.section-alt .flow b { box-shadow: 0 0 0 6px var(--paper-2); }
.flow h3 { font-size: 1.05rem; margin-bottom: .3em; }
.flow p { font-size: .88rem; color: var(--ink-2); }

/* ---------- Two col, clients, facts ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.two-col-wide { grid-template-columns: 1fr 1.4fr; align-items: start; }
.clients { margin: 0; background: #fff; border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow); }
.facts { --line-d: rgba(255, 255, 255, .22); background: radial-gradient(400px 300px at 100% 0%, rgba(0, 220, 255, .35), transparent 60%), linear-gradient(160deg, #1a5cff, #6a4dff); color: #fff; box-shadow: 0 24px 60px rgba(26, 92, 255, .25); border-radius: var(--radius-lg); padding: 28px; position: sticky; top: calc(var(--header-h) + 20px); border: 1px solid var(--line-d); }
.facts-title { font-size: 1.2rem; color: #fff; margin-bottom: 1em; display: flex; align-items: center; gap: .5em; }
.facts-title::before { content: ''; width: 10px; height: 10px; background: #fff; transform: rotate(45deg); }
.facts dl { margin: 0; display: grid; gap: 0; }
.facts dl > div { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-d); font-size: .9rem; }
.facts dt { color: #cdeeff; font-weight: 700; }
.facts dd { margin: 0; color: #fff; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; margin-bottom: 1.2em; }
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .25s, box-shadow .25s; }
.faq[open] { border-color: #a9cdf3; box-shadow: var(--shadow); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px; font-weight: 700; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: transform .3s var(--ease), background .3s; }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s; }
.faq[open] summary i { background: var(--blue); border-color: var(--blue); transform: rotate(180deg); }
.faq[open] summary i::before, .faq[open] summary i::after { background: #fff; }
.faq[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a { padding: 0 20px 6px; color: var(--ink-2); }

/* ---------- Page hero ---------- */
.page-hero { position: relative; min-height: min(68vh, 640px); display: flex; flex-direction: column; justify-content: flex-end; background: radial-gradient(800px 520px at 80% 30%, rgba(26, 92, 255, .55), rgba(26, 92, 255, 0) 62%), radial-gradient(520px 360px at 100% 100%, rgba(0, 184, 240, .22), transparent 60%), linear-gradient(180deg, #071232 0%, #040a1f 100%); color: #fff; padding: calc(var(--header-h) + 48px) 0 clamp(40px, 5vw, 64px); overflow: hidden; isolation: isolate; }
.page-hero::after { content: ''; position: absolute; z-index: -1; right: -8vw; top: 50%; width: min(52vw, 640px); aspect-ratio: 1; transform: translateY(-46%); border-radius: 50%; border: 1px solid rgba(127, 227, 255, .35); background: radial-gradient(circle at 35% 30%, rgba(60, 130, 255, .35), rgba(10, 30, 90, .15) 70%), repeating-linear-gradient(0deg, rgba(127, 227, 255, .14) 0 1px, transparent 1px 26px), repeating-linear-gradient(90deg, rgba(127, 227, 255, .14) 0 1px, transparent 1px 26px); -webkit-mask: radial-gradient(circle, #000 69%, transparent 70%); mask: radial-gradient(circle, #000 69%, transparent 70%); animation: waferSpin 90s linear infinite; }
@keyframes waferSpin { to { transform: translateY(-46%) rotate(360deg); } }
.page-hero.product-hero::after { display: none; }
.ph-en { font: 700 clamp(2.6rem, 1.2rem + 5vw, 6rem)/.92 var(--font-display); text-transform: uppercase; letter-spacing: .005em; color: #fff; margin: 0 0 .28em; max-width: 14ch; }
.product-hero .ph-en { font-size: clamp(1rem, .9rem + .4vw, 1.2rem); letter-spacing: .24em; color: var(--cyan-2); max-width: none; font-weight: 600; }
.grid-bg { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(127, 170, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(127, 170, 255, .07) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(to top, #000 0%, transparent 90%); animation: gridMove 20s linear infinite; }
@keyframes gridMove { to { background-position: 40px 40px; } }
.page-hero-inner { position: relative; }
.page-hero-inner.has-aside { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
.page-hero h1 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem); font-weight: 900; letter-spacing: .02em; }
.page-hero h1 .grad { background: linear-gradient(100deg, #7fe3ff, #9fb8ff); -webkit-background-clip: text; background-clip: text; }
.page-hero .lead { color: rgba(255, 255, 255, .8); }
.hero-aside { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); border-left: 3px solid var(--red); border-radius: var(--radius-lg); padding: 24px; backdrop-filter: blur(10px); color: #fff; }
.hero-aside .aside-k { color: var(--cyan-2); }
.aside-k { font-family: var(--font-tech); text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; color: var(--blue); font-weight: 700; margin-bottom: .6em; }
.hero-aside p { color: #fff; }
.check { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 6px; }
.check li { padding-left: 1.6em; position: relative; }
.check li::before { content: '✓'; position: absolute; left: 0; color: var(--blue); font-weight: 900; }
.crumbs ol { list-style: none; padding: 0; margin: 0 0 1.2em; display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: rgba(255, 255, 255, .7); font-family: var(--font-display); letter-spacing: .08em; }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: .5; }
.crumbs a:hover { color: #fff; }

/* product hero */
.product-hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.h1-en { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; font-size: .62em; font-weight: 600; color: var(--cyan-2); margin-top: .3em; }
.chips { list-style: none; padding: 0; margin: 0 0 1.6em; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: .35em .9em; border-radius: 999px; font-size: .85rem; border: 1px solid #cfe0ff; background: #fff; color: #1a3fbf; }
.page-hero .chips li { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); color: #fff; }
.chips-light li { background: var(--paper-2); color: var(--ink); border-color: var(--line); }
.product-figure { position: relative; margin: 0; border-radius: var(--radius-lg); background: radial-gradient(circle at 50% 55%, #fff 0%, #e4eeff 75%); padding: 20px; box-shadow: 0 30px 80px rgba(26, 60, 160, .2); }
.product-figure img { margin: auto; max-height: 420px; width: auto; mix-blend-mode: multiply; }
.spot { position: absolute; inset: -2px; border-radius: inherit; background: conic-gradient(from var(--a, 0deg), transparent 0 70%, var(--cyan) 80%, transparent 90%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; padding: 2px; animation: spin 6s linear infinite; }
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --a: 360deg; } }

.spec-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.specs { margin: 0 0 2.5em; display: grid; gap: 0; border-top: 1px solid var(--line); }
.spec { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-weight: 700; color: var(--navy); }
.spec dd { margin: 0; }
.spec ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); }
.sticky-card { position: sticky; top: calc(var(--header-h) + 20px); padding: 24px; border-radius: var(--radius-lg); background: var(--paper-2); border: 1px solid var(--line); }
.sticky-card .aside-k { color: #1d7fd0; }

/* table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.cmp { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .93rem; }
.cmp th, .cmp td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.cmp thead th { background: var(--blue); color: #fff; font-weight: 700; }
.cmp tbody th { color: var(--navy); white-space: nowrap; }
.cmp tbody tr:hover { background: #f5f9ff; }

/* issues */
.issues { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.issue { position: relative; padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; }
.issue-no { position: absolute; right: 18px; top: 8px; font: 700 3.6rem var(--font-tech); color: transparent; -webkit-text-stroke: 1px #d3def0; }
.issue p { font-size: .95rem; color: var(--ink-2); }
.issue b { display: inline-block; font-size: .75rem; padding: .1em .6em; border-radius: 4px; margin-right: .6em; color: #fff; }
.issue-p b { background: #ff3b5c; }
.issue-s b { background: var(--blue); }

/* figure, article */
.figure { margin: 48px auto 0; max-width: 900px; text-align: center; }
.figure img { margin: auto; border-radius: var(--radius); }
.figure figcaption { font-size: .85rem; color: var(--ink-2); margin-top: 8px; }
.article-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; }
.toc { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
.toc .aside-k { color: #1d7fd0; }
.toc ol { padding-left: 1.2em; margin: 0; display: grid; gap: 6px; font-size: .92rem; }
.toc a:hover, .toc a.active { color: #1d6fd0; font-weight: 700; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; padding-top: .4em; }
.prose h3 { margin-top: 1.4em; }
.prose p { color: #2b3655; }
.tldr { background: var(--paper-2); border-left: 4px solid var(--cyan); padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0; }
.tldr h2 { font-size: 1.1rem; margin: 0 0 .5em; padding: 0; }
.tldr ul { margin: 0; display: grid; gap: 4px; }
.yield-list { display: grid; gap: 14px; }
.yield { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.yield h3 { margin: 0 0 .4em; display: flex; gap: .6em; align-items: center; }
.yield h3 span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--navy); color: #fff; font: 700 .9rem var(--font-tech); }
.yield p { margin-bottom: .4em; font-size: .95rem; }
.yield ul { margin: 0; color: var(--ink-2); font-size: .92rem; }
.next-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.next { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); font-weight: 700; transition: border-color .25s, transform .25s; }
.next:hover { border-color: var(--cyan); transform: translateY(-2px); }

/* products filter */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; position: sticky; top: calc(var(--header-h) + 8px); z-index: 5; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); padding: 10px; border-radius: 999px; border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.filter button { border: 0; background: none; padding: .5em 1em; border-radius: 999px; font-weight: 700; color: var(--ink-2); font-size: .9rem; transition: background .25s, color .25s; }
.filter button small { font-family: var(--font-tech); opacity: .6; margin-left: .2em; }
.filter button[aria-pressed='true'] { background: var(--blue); color: #fff; }
.cat-block { margin-bottom: 56px; transition: opacity .35s; }
.cat-block[hidden] { display: none; }
.cat-title { display: flex; align-items: baseline; gap: .6em; font-size: 1.5rem; padding-bottom: .5em; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.cat-title small { font-family: var(--font-tech); font-size: .85rem; color: var(--ink-2); font-weight: 500; }

/* timeline */
.timeline { list-style: none; padding: 0 0 0 28px; margin: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline::after { content: ''; position: absolute; left: 6px; top: 6px; width: 2px; height: calc(var(--tl, 0) * (100% - 12px)); background: var(--grad); }
.timeline li { position: relative; padding: 0 0 22px; }
.timeline li::before { content: ''; position: absolute; left: -28px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--cyan); z-index: 1; }
.timeline time { font: 700 1.05rem var(--font-tech); color: var(--navy); }
.timeline p { margin: .2em 0 0; color: var(--ink-2); font-size: .95rem; }

/* contact */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.c-card { display: grid; gap: 4px; padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.c-card .ico { width: 30px; height: 30px; color: #1d7fd0; margin-bottom: 8px; }
.c-k { font-size: .85rem; color: var(--ink-2); }
.c-v { font: 700 1.15rem var(--font-tech); color: var(--ink); word-break: break-word; }
.c-s { font-size: .85rem; color: var(--ink-2); }
.c-card:hover { border-color: var(--cyan); box-shadow: var(--shadow-glow); transform: translateY(-3px); }
.contact-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.inquiry { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 36px); box-shadow: var(--shadow); }
.inquiry fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.inquiry legend { font-weight: 900; margin-bottom: 10px; }
.inquiry legend small { font-weight: 400; color: var(--ink-2); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip-opt input { position: absolute; opacity: 0; pointer-events: none; }
.chip-opt span { display: inline-block; padding: .5em 1em; border-radius: 999px; border: 1px solid var(--line); font-size: .92rem; cursor: pointer; transition: all .2s; }
.chip-opt input:checked + span { background: var(--blue); color: #fff; border-color: var(--blue); }
.chip-opt input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 12px; }
.inquiry label { display: grid; gap: 6px; font-size: .88rem; font-weight: 500; margin-bottom: 12px; }
.inquiry input:not([type='radio']):not([type='checkbox']), .inquiry textarea { width: 100%; font: inherit; padding: .7em .9em; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-2); transition: border-color .2s, box-shadow .2s, background .2s; }
.inquiry input:focus, .inquiry textarea:focus { outline: 0; border-color: var(--cyan); background: #fff; box-shadow: 0 0 0 4px rgba(60,200,255,.18); }
.inquiry [aria-invalid='true'] { border-color: #e0213e !important; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form-msg { min-height: 1.4em; font-weight: 700; color: #1d7fd0; }
.form-msg.err { color: #e0213e; }
.map { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; background: var(--paper-2); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; }
.mini-facts { margin: 16px 0 0; }
.mini-facts div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.mini-facts dt { font-weight: 700; font-size: .85rem; color: var(--ink-2); }
.mini-facts dd { margin: 0; }

/* ---------- CTA band & footer ---------- */
.cta-band { background: radial-gradient(500px 300px at 15% 120%, rgba(0, 220, 255, .45), transparent 60%), var(--grad-vivid); color: #fff; padding: clamp(48px, 6vw, 80px) 0; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; width: 520px; height: 520px; right: -120px; top: -200px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 0 0 60px rgba(255,255,255,.03), 0 0 0 120px rgba(255,255,255,.02); }
.cta-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band h2 { font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.site-footer { background: #0c1747; color: #b8c6ea; padding: 64px 0 24px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 36px; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 16px; }
.footer-note { color: var(--cyan-2); font-size: .85rem; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: #7fe3ff; }
.site-footer address { font-style: normal; display: grid; gap: 10px; }
.site-footer address > * { display: flex; gap: .6em; align-items: flex-start; }
.site-footer address .ico { margin-top: .3em; color: var(--cyan); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line-d); margin-top: 48px; padding-top: 20px; font-size: .82rem; }
.footer-bottom p { margin: 0; }
.mobile-dock { display: none; }

/* ---------- Motion: reveal & tilt ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--rd, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.tilt { transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) translateY(var(--ty, 0)); }
.js .reveal.tilt.in { transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .header-tel span { display: none; }
  .main-nav a { padding: .5em .6em; font-size: .9rem; }
  .tbdb-lab, .warp-sim { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: inline-flex; }
  .header-tel { display: none; }
  .main-nav { position: fixed; inset: var(--header-h) 0 0; background: rgba(255,255,255,.98); backdrop-filter: blur(14px); padding: 24px 20px; transform: translateX(100%); transition: transform .4s var(--ease); overflow-y: auto; margin: 0; }
  .main-nav.open { transform: none; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { font-size: 1.15rem; padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav a::after { display: none; }
  .nav-contact-mobile { display: grid; gap: 14px; margin-top: 28px; color: var(--blue); font-weight: 700; }
  .nav-contact-mobile a { display: flex; gap: .6em; align-items: center; }
  .header-actions .btn { display: none; }
  .header-actions { margin-left: auto; }
  .pf-grid { grid-template-columns: 1fr 1fr; }
  .pf-item, .pf-item + .pf-item { padding: 20px 44px 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .pf-item:nth-child(odd) { padding-right: 52px; border-right: 1px solid var(--line); }
  .pf-item:nth-child(even) { padding-left: 18px; }
  .chapter { min-height: 0; }
  .chapter-inner { grid-template-columns: 1fr; gap: 24px; padding: 64px 0; }
  .chapter:nth-of-type(even) .chapter-copy { order: 0; }
  .chapter-figs, .chapter:nth-of-type(even) .chapter-figs { align-items: flex-start; }
  .chapter-bignum { font-size: 6rem; }
  .scroll-cue { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.25); }
  .pillars, .why, .issues, .contact-cards, .next-links { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow::before { left: 26px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .flow li { text-align: left; display: grid; grid-template-columns: 54px 1fr; column-gap: 16px; padding-bottom: 18px; }
  .flow b { grid-row: span 2; margin: 0; }
  .flow h3 { align-self: end; margin: 0; }
  .page-hero { min-height: 0; }
  .page-hero::after { width: 80vw; right: -36vw; opacity: .6; }
  .two-col, .two-col-wide, .page-hero-inner.has-aside, .product-hero-inner, .spec-layout, .contact-layout, .article-layout { grid-template-columns: 1fr; }
  .facts, .toc, .sticky-card { position: static; }
  .spec { grid-template-columns: 1fr; gap: 6px; }
  .tbdb-steps { grid-template-columns: repeat(2, 1fr); }
  .mobile-dock { display: grid; grid-template-columns: 1fr 1fr 1.3fr; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(26, 60, 160, .18); border-radius: 16px; padding: 6px; transform: translateY(140%); transition: transform .4s var(--ease); }
  .mobile-dock.show { transform: none; }
  .mobile-dock a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; color: var(--ink); font-size: .78rem; border-radius: 12px; }
  .mobile-dock .dock-cta { background: linear-gradient(100deg, #ff3b5c, #e0103a); color: #fff; flex-direction: row; justify-content: center; gap: 6px; font-size: .92rem; font-weight: 700; }
  .site-footer { padding-bottom: 100px; }
  .filter { border-radius: var(--radius); }
}
@media (max-width: 560px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-item:nth-child(n), .pf-item + .pf-item { padding: 18px 44px 20px 0; border-right: 0; }
  .hero { min-height: auto; }
  .hero-actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .facts dl > div { grid-template-columns: 1fr; gap: 2px; }
  .cta-actions .btn { flex: 1 1 100%; }
}

/* ---------- Knowledge ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.footer-h-gap { margin-top: 1.6em; }
.k-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 20px; }
.k-card { position: relative; display: flex; flex-direction: column; padding: 26px 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.k-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; border: 1px dashed #c6d7ef; transition: transform .8s var(--ease); }
.k-card:hover::after { transform: rotate(90deg) scale(1.15); }
.k-card:hover { border-color: #b9d6f5; box-shadow: 0 20px 50px rgba(20, 60, 140, .14); }
.k-tag { align-self: flex-start; font: 700 .75rem var(--font-tech); letter-spacing: .06em; color: #1d6fd0; background: #eaf4ff; padding: .2em .7em; border-radius: 999px; margin-bottom: 14px; }
.k-card p { color: var(--ink-2); font-size: .93rem; }

.g-tools { position: sticky; top: calc(var(--header-h) + 8px); z-index: 5; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 16px; margin-bottom: 28px; display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: center; box-shadow: var(--shadow); }
.g-search { display: flex; align-items: center; gap: 10px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; transition: border-color .2s, box-shadow .2s; }
.g-search:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(60,200,255,.18); background: #fff; }
.g-search .ico { color: var(--ink-2); }
.g-search input { flex: 1; border: 0; background: none; font: inherit; padding: .75em 0; outline: 0; min-width: 0; }
.g-count { margin: 0; font: 500 .9rem var(--font-tech); color: var(--ink-2); }
.g-az { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px; }
.g-az a { min-width: 28px; text-align: center; padding: 2px 6px; border-radius: 6px; font: 700 .82rem var(--font-tech); color: var(--ink-2); transition: background .2s, color .2s; }
.g-az a:hover { background: var(--blue); color: #fff; }
.g-az a.off { opacity: .25; pointer-events: none; }
.g-group { margin-bottom: 32px; scroll-margin-top: calc(var(--header-h) + 150px); }
.g-letter { font: 700 1.6rem var(--font-tech); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0 0 10px; }
.g-list { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 8px; }
.g-item { padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; transition: border-color .2s, transform .2s; }
.g-item:hover { border-color: #a9cdf3; transform: translateY(-1px); }
.g-item dt { font-weight: 700; color: var(--navy); font-family: var(--font-tech); }
.g-item dd { margin: 2px 0 0; color: var(--ink-2); font-size: .93rem; }
.g-item dd small { display: block; color: #6b7792; font-size: .82rem; margin-top: 2px; }
.g-item mark { background: #fff1a8; color: inherit; border-radius: 3px; padding: 0 1px; }
.g-empty { text-align: center; color: var(--ink-2); padding: 40px 0; }

.conv-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.conv-tabs button { border: 1px solid var(--line); background: #fff; padding: .55em 1.2em; border-radius: 999px; font-weight: 700; color: var(--ink-2); transition: all .2s; }
.conv-tabs button[aria-selected='true'] { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(26, 92, 255, .3); }
.conv-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 32px); box-shadow: var(--shadow); animation: fadeUp .4s var(--ease); }
.conv-row { display: grid; grid-template-columns: 1.1fr 1fr auto 1fr 1.4fr; gap: 10px; align-items: end; }
.conv-in { display: grid; gap: 4px; font-size: .82rem; color: var(--ink-2); }
.conv-row input, .conv-row select { width: 100%; font: 500 1rem var(--font-tech); padding: .7em .8em; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-2); }
.conv-row input:focus, .conv-row select:focus { outline: 0; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(60,200,255,.18); background: #fff; }
.conv-swap { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.1rem; transition: transform .35s var(--ease), border-color .2s; }
.conv-swap:hover { transform: rotate(180deg); border-color: var(--cyan); }
.conv-out { display: block; padding: .55em .9em; border-radius: 10px; background: var(--grad-vivid); color: #fff; font: 700 1.25rem var(--font-tech); word-break: break-all; min-height: 2.6em; }
.conv-out.flash { animation: flash .5s var(--ease); }
@keyframes flash { from { box-shadow: 0 0 0 0 rgba(60,200,255,.6); } to { box-shadow: 0 0 0 12px rgba(60,200,255,0); } }
.conv-all { width: 100%; margin-top: 22px; border-collapse: collapse; font-size: .95rem; }
.conv-all caption { text-align: left; font-weight: 700; color: var(--ink-2); font-size: .85rem; margin-bottom: 6px; }
.conv-all td { padding: 9px 4px; border-bottom: 1px solid var(--line); }
.conv-all td:first-child { color: var(--ink-2); width: 40%; }
.conv-all td:last-child { font-family: var(--font-tech); font-weight: 700; text-align: right; }
.conv-all tr.cur td { color: #1d6fd0; }

.r-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.r-jump a { padding: .45em 1em; border-radius: 999px; border: 1px solid var(--line); font-size: .9rem; font-weight: 700; color: var(--ink-2); }
.r-jump a:hover { border-color: var(--navy); color: var(--navy); }
.r-sec { margin-bottom: 48px; scroll-margin-top: calc(var(--header-h) + 20px); }
.r-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 14px; }
.r-card { height: 100%; display: grid; gap: 6px; align-content: start; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.r-card b { color: var(--navy); }
.r-card span { font-size: .9rem; color: var(--ink-2); }
.r-card small { font: 500 .8rem var(--font-tech); color: #1d7fd0; }
.r-card:hover { border-color: var(--cyan); box-shadow: var(--shadow-glow); transform: translateY(-2px); }

.job { padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); margin-bottom: 28px; }
.job h3 small { font-weight: 500; color: var(--ink-2); font-size: .85rem; margin-left: .4em; }
.job h4 { margin: 1em 0 .3em; font-size: .95rem; color: var(--navy); }
.job ul { margin: 0; color: var(--ink-2); }
.job-apply { margin-top: 20px; padding: 20px 22px; border-radius: var(--radius); background: var(--paper-2); border-left: 4px solid var(--pink); }
.job-apply a:not(.btn) { color: #1d6fd0; font-weight: 700; }

@media (max-width: 900px) {
  .conv-row { grid-template-columns: 1fr 1fr; }
  .conv-in, .conv-out { grid-column: 1 / -1; }
  .conv-swap { display: none; }
  .g-tools { grid-template-columns: 1fr; position: static; }
  .g-group { scroll-margin-top: calc(var(--header-h) + 16px); }
}

/* ---------- TBDB applications ---------- */
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); background: #fff; }
.app { position: relative; padding: clamp(28px, 3vw, 44px); overflow: hidden; }
.app + .app { border-left: 1px solid var(--line); }
.app::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.app:hover::before { transform: scaleX(1); }
.app-no { position: absolute; right: 20px; top: -10px; font: 700 8rem/1 var(--font-display); color: transparent; -webkit-text-stroke: 2px rgba(26, 92, 255, .18); pointer-events: none; }
.app h3 { font-size: 1.5rem; margin: 0; }
.app-en { font: 600 1rem var(--font-display); letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin: .2em 0 1em; }
.app > p:not([class]) { color: var(--ink-2); max-width: 48ch; }
.app ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.app li { padding-left: 1.4em; position: relative; font-weight: 500; }
.app li::before { content: ''; position: absolute; left: 0; top: .7em; width: 10px; height: 2px; background: var(--blue); }
@media (max-width: 900px) { .apps { grid-template-columns: 1fr; } .app + .app { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- Responsive safety ----------
   grid 子項預設 min-width:auto，內含寬表格或不換行按鈕時會撐破單欄版面 */
.article-layout > *, .spec-layout > *, .contact-layout > *, .two-col > *, .page-hero-inner > *,
.product-hero-inner > *, .chapter-inner > *, .tbdb-lab > *, .warp-sim > *, .footer-grid > *, .prose { min-width: 0; }
.prose .table-wrap { max-width: 100%; }
.issue h3 { position: relative; z-index: 1; padding-right: 4.6rem; }
.issue p { position: relative; z-index: 1; }
@media (max-width: 560px) {
  .btn { white-space: normal; text-align: center; }
  .c-v, .r-card small, .footer-grid a { overflow-wrap: anywhere; }
}
/* 電話／Email 按鈕不轉大寫，避免 SALES@… 難讀，並收窄字距 */
.sticky-card .btn, .job-apply .btn, .btn[href^="mailto:"], .btn[href^="tel:"] { text-transform: none; letter-spacing: .02em; font-family: var(--font); font-weight: 700; font-size: .95rem; }

/* 手機版首頁：上方保留空間給晶圓貼合動畫，不與標題重疊 */
@media (max-width: 560px) {
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 232px); }
  .hero-inner { gap: 28px; }
}

/* 320px：術語頁工具列與設備頁聯絡按鈕不撐破版面 */
.g-tools > * { min-width: 0; }
.g-search input { width: 100%; }
.sticky-card .btn { padding-inline: .7em; overflow-wrap: anywhere; white-space: normal; }
@media (max-width: 360px) { .page-hero h1 { font-size: 1.32rem; } .ph-en { font-size: 2.3rem; } }

/* ---------- TBDB 打樣流程圖（原生繪製） ---------- */
.pmap { margin: 56px 0 0; }
.pm-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 28px; }
.pm-stage, .pm-debond { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.pm-stage::before, .pm-debond::before { content: ''; position: absolute; inset: 0 auto auto 0; width: 100%; height: 3px; background: var(--grad); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.pm-stage:not(:last-child)::after { content: ''; position: absolute; top: 50%; right: -21px; width: 10px; height: 10px; border-top: 2.5px solid var(--blue); border-right: 2.5px solid var(--blue); transform: translateY(-50%) rotate(45deg); }
.pm-customer { background: var(--paper-2); border-style: dashed; border-color: #9db8ee; box-shadow: none; }
.pm-customer::before { background: none; }
.pmap header { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 12px; }
.pmap header h3 { margin: 0; font-size: 1.12rem; }
.pmap header p { margin: 0 0 0 auto; font-size: .86rem; color: var(--ink-2); }
.pm-n { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pm-en { font-family: var(--font-tech); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.pm-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pm-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pm-item { text-align: center; min-width: 0; }
.pm-pair .pm-item, .pm-methods .pm-item { background: var(--paper-2); border-radius: var(--radius); padding: 12px 10px 14px; }
.pm-svg { display: block; width: 100%; max-width: 190px; height: auto; margin: 0 auto 6px; overflow: visible; }
.pm-item p { margin: 0; display: grid; gap: 2px; }
.pm-item b { font-size: 1rem; color: var(--ink); }
.pm-item b i { font-style: normal; font-weight: 500; font-size: .72rem; color: var(--ink-2); border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; margin-left: 4px; vertical-align: middle; background: var(--paper); white-space: nowrap; }
.pm-item span { font-family: var(--font-tech); font-size: .78rem; color: var(--blue); letter-spacing: .02em; }
.pm-item small { font-size: .82rem; color: var(--ink-2); }
.pm-debond { margin-top: 44px; }
.pm-debond::after { content: ''; position: absolute; top: -31px; left: 50%; width: 10px; height: 10px; border-bottom: 2.5px solid var(--blue); border-right: 2.5px solid var(--blue); transform: translateX(-50%) rotate(45deg); }
.pm-legend { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 20px 0 0; padding: 0; font-size: .84rem; color: var(--ink-2); }
.pm-legend li { display: flex; align-items: center; gap: 8px; }
.pm-legend i { width: 14px; height: 14px; border-radius: 3px; border: 1px solid rgba(12, 20, 48, .12); }
@media (prefers-reduced-motion: no-preference) {
  .pm-drop { animation: pm-drop 1.6s ease-in infinite; }
  .pm-slide { animation: pm-slide 3s var(--ease) infinite alternate; }
  .pm-heat { animation: pm-pulse 1.4s ease-in-out infinite; }
  .pm-laser path { stroke-dasharray: 6 6; animation: pm-dash .7s linear infinite; }
}
@keyframes pm-drop { 0% { opacity: 0; transform: translateY(-6px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(6px); } }
@keyframes pm-slide { from { transform: translateX(-12px); } to { transform: translateX(6px); } }
@keyframes pm-pulse { 50% { opacity: .35; transform: translateY(-2px); } }
@keyframes pm-dash { to { stroke-dashoffset: -12; } }
@media (max-width: 900px) {
  .pm-row { grid-template-columns: 1fr; gap: 34px; }
  .pm-stage:not(:last-child)::after { top: auto; bottom: -23px; right: 50%; transform: translateX(50%) rotate(135deg); }
  .pm-debond { margin-top: 34px; }
  .pm-debond::after { top: -25px; }
  .pmap header p { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 560px) {
  .pm-methods { grid-template-columns: 1fr; }
  .pm-methods .pm-item { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 12px; text-align: left; }
  .pm-methods .pm-svg { margin: 0; }
  .pm-stage, .pm-debond { padding: 16px; }
}

.pm-stage { display: flex; flex-direction: column; }
.pm-stage > .pm-item, .pm-stage > .pm-pair { margin-block: auto; }
