:root {
  --bg: #030b1e;
  --bg2: #071833;
  --panel: rgba(10, 32, 70, 0.55);
  --panel-strong: rgba(8, 26, 60, 0.82);
  --line: rgba(90, 180, 255, 0.28);
  --line-strong: rgba(110, 200, 255, 0.6);
  --blue: #1e6bff;
  --blue2: #3d8bff;
  --cyan: #22d3ee;
  --cyan2: #7dd3fc;
  --ice: #e0f2fe;
  --text: #e8f1ff;
  --muted: #9cb3d6;
  --warn: #f59e0b;
  --bad: #fb7185;
  --good: #34d399;
  --radius: 18px;
  --font: "Prompt", "Sarabun", "Noto Sans JP", "Noto Sans SC", "Yu Gothic UI", "Meiryo", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); overflow: hidden; }
button { font-family: inherit; }

/* ---------- background ---------- */
.bg-layer { position: fixed; inset: 0; z-index: 0; }
.bg-photo { position: absolute; inset: -4%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease; transform: scale(1.06); animation: kenburns 28s ease-in-out infinite alternate; filter: saturate(1.1) brightness(.75); }
.bg-photo.show { opacity: .55; }
@keyframes kenburns { from { transform: scale(1.06) translate(0, 0); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
.bg-grad { position: absolute; inset: 0; background:
  radial-gradient(1100px 700px at 78% 18%, rgba(34, 211, 238, .18), transparent 60%),
  radial-gradient(900px 700px at 10% 90%, rgba(30, 107, 255, .28), transparent 60%),
  linear-gradient(180deg, rgba(3, 11, 30, .55) 0%, rgba(3, 11, 30, .82) 70%, rgba(3, 11, 30, .96) 100%); }
.bg-grid { position: absolute; inset: 0; background-image:
  linear-gradient(rgba(80, 170, 255, .07) 1px, transparent 1px),
  linear-gradient(90deg, rgba(80, 170, 255, .07) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 85%); animation: gridmove 30s linear infinite; }
@keyframes gridmove { to { background-position: 56px 56px, 56px 56px; } }
#particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.scanline { position: absolute; left: 0; right: 0; height: 160px; background: linear-gradient(180deg, transparent, rgba(34, 211, 238, .06), transparent); animation: scan 7s linear infinite; }
@keyframes scan { from { top: -160px; } to { top: 100%; } }

/* ---------- HUD ---------- */
.hud-top { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 14px 28px; background: linear-gradient(180deg, rgba(3, 11, 30, .85), transparent); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .02em; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--cyan)); box-shadow: 0 0 22px rgba(34, 211, 238, .55); }
.brand small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.hud-title { margin-left: auto; color: var(--muted); font-size: 14px; display: flex; gap: 12px; align-items: center; }
.hud-title b { color: var(--cyan2); font-family: var(--mono); font-weight: 500; }
.toc-btn { background: var(--panel); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 7px 12px; cursor: pointer; font-size: 13px; }
.toc-btn:hover { border-color: var(--line-strong); }

.hud-bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 0 28px 18px; background: linear-gradient(0deg, rgba(3, 11, 30, .95) 30%, transparent); }
.subtitle { max-width: 1040px; margin: 0 auto 12px; padding: 12px 18px; border-radius: 14px; background: rgba(4, 16, 40, .72); border: 1px solid var(--line); backdrop-filter: blur(10px); font-size: 17px; line-height: 1.65; color: #dbeafe; min-height: 52px; transition: opacity .3s; position: relative; }
.subtitle.hidden { opacity: 0; pointer-events: none; }
.subtitle .spoken { color: #fff; text-shadow: 0 0 12px rgba(34, 211, 238, .5); }
.subtitle .unspoken { color: #7e94b8; }
.subtitle .mic { position: absolute; left: -46px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line); }
.mic .bars { display: flex; gap: 2px; align-items: flex-end; height: 14px; }
.mic .bars i { width: 3px; background: var(--cyan); border-radius: 2px; height: 4px; }
.speaking .mic .bars i { animation: eq .8s ease-in-out infinite; }
.speaking .mic .bars i:nth-child(2) { animation-delay: .15s; }
.speaking .mic .bars i:nth-child(3) { animation-delay: .3s; }
.speaking .mic .bars i:nth-child(4) { animation-delay: .45s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 14px; } }

.controls { display: flex; align-items: center; gap: 10px; max-width: 1040px; margin: 0 auto; }
.ctl { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; display: grid; place-items: center; transition: .2s; }
.ctl:hover { border-color: var(--cyan); box-shadow: 0 0 16px rgba(34, 211, 238, .35); }
.ctl.on { background: linear-gradient(135deg, var(--blue), #0ea5e9); border-color: transparent; }
.ctl.play { width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--cyan)); border: none; box-shadow: 0 0 28px rgba(34, 211, 238, .5); }
.ctl svg { width: 20px; height: 20px; }
.progress { flex: 1; display: flex; gap: 6px; align-items: center; }
.progress button { flex: 1; height: 6px; border-radius: 4px; border: none; background: rgba(120, 170, 255, .2); cursor: pointer; position: relative; overflow: hidden; padding: 0; }
.progress button .fill { position: absolute; inset: 0; width: 0; background: linear-gradient(90deg, var(--blue2), var(--cyan)); }
.progress button.done .fill { width: 100%; }
.progress button:hover { background: rgba(120, 170, 255, .4); }
.timecode { font-family: var(--mono); font-size: 12px; color: var(--muted); min-width: 92px; text-align: right; }

/* ---------- stage & scenes ---------- */
.stage { position: fixed; inset: 0; z-index: 10; }
.scene { position: absolute; inset: 0; padding: 92px 64px 190px; display: flex; flex-direction: column; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.scene.active { opacity: 1; visibility: visible; }
.scene .a { opacity: 0; transform: translateY(26px); }
.scene.active .a { animation: rise .9s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--d, 0) * 1s); }
@keyframes rise { to { opacity: 1; transform: none; } }
.scene.active .pop { animation: pop .7s cubic-bezier(.2, 1.4, .4, 1) forwards; animation-delay: calc(var(--d, 0) * 1s); opacity: 0; transform: scale(.6); }
@keyframes pop { to { opacity: 1; transform: none; } }

.wrap { max-width: 1240px; margin: 0 auto; width: 100%; }
.kicker { font-family: var(--mono); font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--cyan); display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.kicker::before { content: ""; width: 36px; height: 2px; background: linear-gradient(90deg, var(--cyan), transparent); }
h1, h2 { margin: 0 0 18px; line-height: 1.18; font-weight: 700; }
h1 { font-size: clamp(38px, 5.4vw, 76px); }
h2 { font-size: clamp(28px, 3.6vw, 50px); }
.grad { background: linear-gradient(90deg, #fff 0%, var(--cyan2) 45%, var(--blue2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(16px, 1.45vw, 21px); color: #c3d4f0; line-height: 1.7; max-width: 760px; font-weight: 300; }
.glass { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(14px); box-shadow: 0 20px 60px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .05); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(30, 107, 255, .12); font-size: 14px; color: var(--ice); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.row { display: flex; gap: 22px; }
.cols-2 { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }

/* ---------- scene 1 intro ---------- */
.hero-robot { width: 100%; max-width: 470px; justify-self: center; filter: drop-shadow(0 0 40px rgba(34, 211, 238, .35)); }
.hero-robot .eye { animation: blink 5s infinite; transform-origin: center; transform-box: fill-box; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.hero-robot .float { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }
.hero-robot .ring { transform-origin: 240px 250px; animation: spin 26s linear infinite; }
.hero-robot .ring2 { transform-origin: 240px 250px; animation: spin 40s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.start-btn { margin-top: 30px; display: inline-flex; align-items: center; gap: 12px; padding: 16px 28px; border-radius: 14px; border: none; cursor: pointer; font-size: 18px; color: #fff; font-weight: 600; background: linear-gradient(135deg, var(--blue), var(--cyan)); box-shadow: 0 10px 40px rgba(34, 211, 238, .4); transition: transform .2s; }
.start-btn:hover { transform: translateY(-2px); }
.start-hint { margin-top: 14px; color: var(--muted); font-size: 13px; }

/* ---------- problem cards ---------- */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.pcard { padding: 22px; position: relative; overflow: hidden; }
.pcard .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(251, 113, 133, .12); border: 1px solid rgba(251, 113, 133, .35); color: var(--bad); margin-bottom: 14px; }
.pcard h3 { margin: 0 0 8px; font-size: 19px; }
.pcard p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.pcard .meter { margin-top: 14px; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.pcard .meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--warn), var(--bad)); transition: width 1.6s cubic-bezier(.2, .8, .2, 1); }
.scene.active .pcard .meter i { width: var(--w); transition-delay: calc(var(--d) * 1s + .4s); }

/* ---------- personas ---------- */
.persona-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.persona-tabs button { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; font-size: 15px; transition: .2s; }
.persona-tabs button .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(34, 211, 238, .15); font-size: 15px; }
.persona-tabs button.sel { background: linear-gradient(135deg, rgba(30, 107, 255, .55), rgba(34, 211, 238, .35)); border-color: var(--cyan); box-shadow: 0 0 22px rgba(34, 211, 238, .3); }
.persona-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden; }
.persona-panel > div { padding: 26px 28px; }
.persona-panel .pain { border-right: 1px solid var(--line); }
.persona-panel h4 { margin: 0 0 14px; font-size: 14px; font-family: var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.persona-panel .pain h4 { color: var(--bad); }
.persona-panel .gain h4 { color: var(--good); }
.persona-panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.persona-panel li { display: flex; gap: 10px; line-height: 1.55; font-size: 15.5px; animation: rise .5s both; }
.persona-panel li::before { content: "✕"; color: var(--bad); font-weight: 700; flex: none; }
.persona-panel .gain li::before { content: "✓"; color: var(--good); }
.persona-quote { margin-top: 16px; font-style: italic; color: var(--cyan2); font-size: 15px; }

/* ---------- dilemma ---------- */
.versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: 26px; align-items: stretch; margin-top: 28px; }
.vs-card { padding: 26px; }
.vs-card h3 { margin: 0 0 6px; font-size: 22px; }
.vs-card .tag { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; }
.vs-card.bad { border-color: rgba(251, 113, 133, .4); }
.vs-card.bad .tag { color: var(--bad); }
.vs-card.good { border-color: rgba(34, 211, 238, .55); box-shadow: 0 0 50px rgba(34, 211, 238, .15); }
.vs-card.good .tag { color: var(--cyan); }
.vs-mid { display: grid; place-items: center; font-family: var(--mono); color: var(--muted); font-size: 22px; }
.risk-curve { width: 100%; height: 150px; margin: 14px 0; }
.risk-curve path.l { stroke-dasharray: 900; stroke-dashoffset: 900; }
.scene.active .risk-curve path.l { animation: draw 2.4s ease forwards; animation-delay: 1s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.facts { display: grid; gap: 8px; font-size: 14.5px; color: #cbd5e1; }
.facts div { display: flex; justify-content: space-between; border-bottom: 1px dashed rgba(255, 255, 255, .08); padding-bottom: 6px; }
.facts b { font-weight: 500; }

/* ---------- solution pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 26px; }
.pillar { padding: 22px; text-align: left; transition: transform .3s, border-color .3s; }
.pillar:hover { transform: translateY(-6px); border-color: var(--cyan); }
.pillar .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(30, 107, 255, .35), rgba(34, 211, 238, .25)); border: 1px solid var(--line-strong); color: var(--cyan2); margin-bottom: 14px; }
.pillar h3 { margin: 0 0 6px; font-size: 18px; }
.pillar p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---------- architecture ---------- */
.arch { width: 100%; max-height: 56vh; }
.arch .node { fill: rgba(8, 28, 64, .85); stroke: var(--line-strong); stroke-width: 1.2; }
.arch .node.legacy { stroke: rgba(245, 158, 11, .6); }
.arch .node.core { stroke: var(--cyan); }
.arch text { fill: var(--text); font-family: var(--font); }
.arch .t-sm { font-size: 13px; fill: var(--muted); }
.arch .flow { stroke: var(--cyan); stroke-width: 2; fill: none; stroke-dasharray: 6 10; animation: dash 1.2s linear infinite; }
.arch .flow.back { stroke: var(--warn); animation-direction: reverse; }
@keyframes dash { to { stroke-dashoffset: -32; } }
.arch .pkt { fill: var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); }
.arch .pkt.back { fill: var(--warn); filter: drop-shadow(0 0 6px var(--warn)); }
.arch .glow { animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }

/* ---------- modules ---------- */
.mod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.mod { padding: 14px 16px; cursor: default; position: relative; transition: .25s; }
@media (max-height: 960px) and (min-width: 1101px) { .mod p { display: none; } .mod-grid { margin-top: 14px; } }
.mod:hover, .mod.sel { border-color: var(--cyan); transform: translateY(-4px); box-shadow: 0 0 34px rgba(34, 211, 238, .22); }
.mod .hd { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.mod .hd span { font-size: 22px; }
.mod h3 { margin: 0; font-size: 16.5px; }
.mod p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.mod .tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.mod .tags em { font-style: normal; font-size: 11.5px; padding: 3px 8px; border-radius: 6px; background: rgba(30, 107, 255, .18); color: var(--cyan2); }
.mod-detail { margin-top: 16px; padding: 16px 20px; min-height: 64px; font-size: 15px; color: #cfe0fb; line-height: 1.6; }
.mod-detail b { color: var(--cyan2); }

/* ---------- AI ---------- */
.ai-orbit { position: relative; width: 100%; aspect-ratio: 1; max-width: 500px; justify-self: center; }
.ai-core { position: absolute; inset: 34%; border-radius: 50%; display: grid; place-items: center; text-align: center; font-weight: 700; font-size: 22px; background: radial-gradient(circle, rgba(34, 211, 238, .5), rgba(30, 107, 255, .25) 60%, transparent 70%); box-shadow: 0 0 80px rgba(34, 211, 238, .5); animation: pulse 3s infinite; }
.ai-ring { position: absolute; inset: 6%; border-radius: 50%; border: 1px dashed var(--line-strong); animation: spin 50s linear infinite; }
.ai-ring .sat { position: absolute; width: 112px; margin: -40px 0 0 -56px; text-align: center; animation: spin 50s linear infinite reverse; }
.ai-ring .sat div { width: 54px; height: 54px; margin: 0 auto 6px; border-radius: 16px; display: grid; place-items: center; font-size: 25px; background: var(--panel-strong); border: 1px solid var(--line-strong); box-shadow: 0 0 20px rgba(34, 211, 238, .25); }
.ai-ring .sat small { font-size: 12.5px; color: var(--ice); display: block; line-height: 1.3; }
.ai-list { display: grid; gap: 12px; }
.ai-item { display: flex; gap: 14px; padding: 14px 16px; align-items: flex-start; }
.ai-item .n { font-family: var(--mono); color: var(--cyan); font-size: 13px; padding-top: 3px; }
.ai-item h4 { margin: 0 0 3px; font-size: 16px; }
.ai-item p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }

/* ---------- roadmap ---------- */
.road { position: relative; margin-top: 34px; }
.road-line { position: absolute; left: 0; right: 0; top: 34px; height: 4px; border-radius: 4px; background: rgba(120, 170, 255, .15); }
.road-line i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--blue), var(--cyan)); box-shadow: 0 0 16px var(--cyan); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; position: relative; }
.step { text-align: center; cursor: pointer; background: none; border: none; color: var(--text); padding: 0; }
.step .dot { width: 72px; height: 72px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: var(--panel-strong); border: 2px solid var(--line); transition: .35s; }
.step.reached .dot { border-color: var(--cyan); box-shadow: 0 0 24px rgba(34, 211, 238, .5); }
.step.sel .dot { background: linear-gradient(135deg, var(--blue), var(--cyan)); transform: scale(1.1); }
.step b { display: block; font-size: 14.5px; }
.step small { color: var(--muted); font-size: 12px; font-family: var(--mono); }
.step-detail { margin-top: 24px; padding: 22px 26px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 26px; }
.step-detail h3 { margin: 0 0 8px; font-size: 21px; }
.step-detail p { margin: 0; color: #c7d7f1; line-height: 1.65; font-size: 15px; }
.step-detail ul { margin: 0; padding-left: 18px; color: #c7d7f1; line-height: 1.8; font-size: 14.5px; }
.legacy-badge { display: inline-flex; gap: 8px; align-items: center; margin-top: 12px; font-size: 13px; color: var(--warn); font-family: var(--mono); }

/* ---------- post-back flow ---------- */
.pipeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 26px; position: relative; }
.pstage { padding: 16px; min-height: 210px; position: relative; transition: .4s; opacity: .45; }
.pstage.lit { opacity: 1; border-color: var(--cyan); box-shadow: 0 0 34px rgba(34, 211, 238, .25); }
.pstage.legacy.lit { border-color: var(--warn); box-shadow: 0 0 34px rgba(245, 158, 11, .25); }
.pstage .no { font-family: var(--mono); font-size: 11.5px; color: var(--cyan); letter-spacing: .14em; }
.pstage.legacy .no { color: var(--warn); }
.pstage h4 { margin: 6px 0 10px; font-size: 16px; }
.doc { font-family: var(--mono); font-size: 11.5px; background: rgba(0, 0, 0, .3); border-radius: 8px; padding: 9px 10px; color: #bfe3ff; line-height: 1.65; white-space: pre; overflow: hidden; }
.doc .dr { color: var(--good); }
.doc .cr { color: var(--cyan2); }
.pipeline .arrow { position: absolute; top: 50%; width: 14px; height: 14px; border-top: 2px solid var(--cyan); border-right: 2px solid var(--cyan); transform: rotate(45deg); }
.replay { margin-top: 18px; display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 13.5px; }
.btn { padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); cursor: pointer; font-size: 14px; }
.btn:hover { border-color: var(--cyan); }

/* ---------- screens ---------- */
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.shot { padding: 0; overflow: hidden; cursor: zoom-in; transition: .3s; border-radius: 14px; }
.shot:hover { transform: translateY(-4px) scale(1.01); border-color: var(--cyan); }
.shot .bar { display: flex; gap: 5px; padding: 8px 10px; background: rgba(0, 0, 0, .35); align-items: center; }
.shot .bar i { width: 8px; height: 8px; border-radius: 50%; background: #475569; }
.shot .bar span { margin-left: 8px; font-size: 11px; color: var(--muted); font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top left; }
.shot .cap { padding: 10px 12px; font-size: 13.5px; }
.mock { aspect-ratio: 16/10; display: grid; grid-template-columns: 22% 1fr; background: #f6f8fb; }
.mock .side { background: #0f172a; padding: 8px 6px; display: grid; gap: 5px; align-content: start; }
.mock .side i { height: 6px; border-radius: 3px; background: #334155; }
.mock .side i:nth-child(3) { background: #0d9488; }
.mock .main { padding: 10px; display: grid; gap: 6px; align-content: start; }
.mock .main .h { height: 10px; width: 45%; background: #cbd5e1; border-radius: 3px; }
.mock .main .kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.mock .main .kpis i { height: 26px; border-radius: 4px; background: #e2e8f0; border-left: 3px solid #0d9488; }
.mock .main .tr { height: 8px; border-radius: 2px; background: #e5e7eb; }
.mock .main .tr:nth-child(odd) { background: #eef2f7; }
@media (min-width: 1101px) { .shot img, .shot .mock { aspect-ratio: auto; height: clamp(110px, calc((100vh - 610px) / 2), 250px); } .screens { margin-top: 14px; } .shot .cap { padding: 7px 12px; } }
@media (max-width: 1100px) { .subtitle .mic { display: none; } }
.mock-note { margin-top: 12px; font-size: 13px; color: var(--warn); }
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(2, 8, 22, .92); display: none; place-items: center; padding: 40px; cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 94vw; max-height: 86vh; border-radius: 12px; box-shadow: 0 0 80px rgba(34, 211, 238, .25); border: 1px solid var(--line); }
.lightbox p { text-align: center; color: var(--ice); margin-top: 12px; }

/* ---------- mobile ---------- */
.phones { display: flex; gap: 26px; justify-content: center; align-items: flex-end; }
.phone { width: 230px; border-radius: 34px; padding: 10px; background: linear-gradient(160deg, #1e293b, #0b1220); border: 1px solid #334155; box-shadow: 0 30px 70px rgba(0, 0, 0, .5), 0 0 40px rgba(34, 211, 238, .15); }
.phone:nth-child(2) { transform: translateY(-28px); }
.phone .scr { border-radius: 26px; overflow: hidden; background: #f8fafc; color: #0f172a; aspect-ratio: 9/19; display: flex; flex-direction: column; }
.phone .ph-top { padding: 18px 14px 12px; color: #fff; background: linear-gradient(135deg, #1e40af, #0891b2); }
.phone .ph-top small { opacity: .8; font-size: 10.5px; }
.phone .ph-top b { display: block; font-size: 15px; margin-top: 2px; }
.phone .ph-body { padding: 10px; display: grid; gap: 7px; }
.phone .tile { background: #fff; border-radius: 10px; padding: 9px 10px; font-size: 11.5px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); display: flex; justify-content: space-between; align-items: center; }
.phone .tile em { font-style: normal; font-size: 10px; padding: 2px 7px; border-radius: 6px; background: #dcfce7; color: #166534; }
.phone .tile em.w { background: #fef3c7; color: #92400e; }
.phone .tile em.b { background: #dbeafe; color: #1e40af; }
.feat-list { display: grid; gap: 12px; margin-top: 18px; }
.feat-list div { display: flex; gap: 12px; align-items: center; font-size: 16px; }
.feat-list span { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(34, 211, 238, .12); border: 1px solid var(--line); flex: none; }

/* ---------- security ---------- */
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.sec { padding: 20px; display: flex; gap: 14px; }
.sec .ic { font-size: 24px; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(30, 107, 255, .2); border: 1px solid var(--line-strong); flex: none; }
.sec h4 { margin: 0 0 4px; font-size: 16.5px; }
.sec p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.stack { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- value calculator ---------- */
.calc { display: grid; grid-template-columns: 380px 1fr; gap: 26px; margin-top: 22px; }
.calc-in { padding: 22px; display: grid; gap: 18px; }
.calc-in label { display: grid; gap: 6px; font-size: 14px; color: #cbd5e1; }
.calc-in label span { display: flex; justify-content: space-between; }
.calc-in label b { color: var(--cyan2); font-family: var(--mono); font-weight: 500; }
input[type=range] { width: 100%; accent-color: var(--cyan); }
.calc-out { padding: 22px; }
.bars { display: grid; gap: 14px; margin-top: 8px; }
.barrow { display: grid; grid-template-columns: 200px 1fr 120px; gap: 12px; align-items: center; font-size: 14px; }
.barrow .track { height: 26px; background: rgba(255, 255, 255, .05); border-radius: 8px; overflow: hidden; }
.barrow .track i { display: block; height: 100%; border-radius: 8px; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.barrow.old .track i { background: linear-gradient(90deg, #b45309, var(--bad)); }
.barrow.big .track i { background: linear-gradient(90deg, #6d28d9, #a78bfa); }
.barrow.new .track i { background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.barrow .v { font-family: var(--mono); text-align: right; }
.save { margin-top: 22px; display: flex; gap: 18px; }
.save div { flex: 1; padding: 16px; border-radius: 14px; background: rgba(52, 211, 153, .08); border: 1px solid rgba(52, 211, 153, .3); }
.save small { color: var(--muted); font-size: 12.5px; }
.save b { display: block; font-size: 28px; color: var(--good); margin-top: 4px; font-family: var(--mono); }
.disclaim { margin-top: 12px; font-size: 12px; color: var(--muted); }

/* ---------- closing ---------- */
.closing { text-align: center; align-items: center; }
.closing .lead { margin: 0 auto; }
.cta-row { display: flex; gap: 14px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }

/* ---------- TOC ---------- */
.toc { position: fixed; top: 64px; right: 24px; z-index: 30; width: 320px; max-height: 70vh; overflow: auto; padding: 10px; display: none; }
.toc.open { display: block; }
.toc button { display: flex; width: 100%; gap: 10px; text-align: left; padding: 9px 10px; border: none; border-radius: 9px; background: none; color: var(--text); cursor: pointer; font-size: 14px; }
.toc button:hover, .toc button.cur { background: rgba(34, 211, 238, .12); }
.toc button span { font-family: var(--mono); color: var(--cyan); width: 24px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .scene { padding: 84px 28px 200px; overflow-y: auto; justify-content: flex-start; }
  .cols-2, .calc, .persona-panel, .step-detail { grid-template-columns: 1fr; }
  .problem-grid, .sec-grid, .screens { grid-template-columns: repeat(2, 1fr); }
  .pillars, .mod-grid { grid-template-columns: repeat(2, 1fr); }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .pipeline .arrow { display: none; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 20px; }
  .road-line { display: none; }
  .versus { grid-template-columns: 1fr; }
  .vs-mid { display: none; }
  .hero-robot { max-width: 300px; }
  .barrow { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .scene { padding: 76px 16px 220px; }
  .problem-grid, .sec-grid, .screens, .pillars, .mod-grid, .pipeline { grid-template-columns: 1fr; }
  .hud-top { padding: 10px 16px; }
  .hud-title span { display: none; }
  .brand { font-size: 13px; } .brand small { display: none; }
  .subtitle { max-height: 30vh; overflow-y: auto; }
  .hud-bottom { padding: 0 16px 12px; }
  .subtitle { font-size: 14.5px; }
  .subtitle .mic { display: none; }
  .phones .phone:nth-child(3) { display: none; }
  .phone { width: 170px; }
  .timecode { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- narration language + call to action ---------- */
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); }
.lang-switch button { background: none; border: 0; color: var(--muted); padding: 6px 10px; font-size: 12.5px; cursor: pointer; }
.lang-switch button + button { border-left: 1px solid var(--line); }
.lang-switch button:hover { color: var(--text); }
.lang-switch button.sel { background: linear-gradient(135deg, var(--blue), #0891b2); color: #fff; }
.cta-pill { border: 1px solid rgba(34, 211, 238, .7); background: linear-gradient(135deg, rgba(30, 107, 255, .35), rgba(34, 211, 238, .25)); color: #fff; border-radius: 999px; padding: 6px 14px; font-size: 13px; cursor: pointer; box-shadow: 0 0 18px rgba(34, 211, 238, .35); animation: ctaGlow 2.6s ease-in-out infinite; white-space: nowrap; }
.cta-pill:hover { box-shadow: 0 0 26px rgba(34, 211, 238, .7); }
@keyframes ctaGlow { 50% { box-shadow: 0 0 28px rgba(34, 211, 238, .65); } }
.cta-card { position: relative; margin: 26px auto 0; max-width: 760px; padding: 26px 34px 24px; border: 1px solid rgba(34, 211, 238, .65); background: linear-gradient(135deg, rgba(30, 107, 255, .28), rgba(8, 145, 178, .22)); box-shadow: 0 0 40px rgba(34, 211, 238, .25), inset 0 0 30px rgba(34, 211, 238, .08); border-radius: var(--radius); }
.cta-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 12px; letter-spacing: .2em; padding: 4px 14px; border-radius: 999px; background: linear-gradient(135deg, #f59e0b, #fb7185); color: #fff; box-shadow: 0 0 16px rgba(245, 158, 11, .5); }
.cta-head { margin: 4px 0 8px; font-size: clamp(24px, 3.2vw, 40px); font-weight: 700; background: linear-gradient(90deg, #fff, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-sub { margin: 0; font-size: clamp(15px, 1.6vw, 20px); color: var(--ice); }
@media (max-width: 1100px) { .cta-pill { display: none; } }
@media (max-width: 640px) { .lang-switch button { padding: 5px 7px; font-size: 11.5px; } .toc-btn { padding: 6px 9px; } .cta-card { padding: 22px 18px 18px; } }
.closing h1 { font-size: clamp(34px, 4.6vw, 66px); }
.closing .cta-row { margin-top: 20px; }
@media (min-width: 1101px) and (max-height: 960px) { .closing > .wrap > svg { width: 84px !important; height: 84px !important; } .closing h1 { font-size: clamp(30px, 3.9vw, 54px); margin-bottom: 10px; } .closing .lead { font-size: 16px; } .cta-card { margin-top: 18px; padding: 20px 28px 18px; } }
.lang-switch button, .toc-btn { white-space: nowrap; }
@media (max-width: 640px) { .brand > div:last-child { display: none; } .hud-title { gap: 8px; } .hud-title b { font-size: 12px; } }
/* English runs longer than Thai at the same size: tighten type so scenes clear the subtitle bar */
html[lang="en"] h1 { font-size: clamp(32px, 4.2vw, 60px); }
html[lang="en"] h2 { font-size: clamp(24px, 2.8vw, 40px); }
html[lang="en"] .lead { font-size: clamp(15px, 1.25vw, 19px); }
html[lang="en"] .subtitle { font-size: 15px; }
.pipeline > * { min-width: 0; }
.pstage h4, .pstage .no { overflow-wrap: anywhere; }
@media (max-width: 640px) { .phones { gap: 12px; } .phone { width: 160px; } .pstage .doc { overflow-x: auto; } }
