/* Layout concept: silver-glass ground with cream product cards; night-navy bands carry the live AI visuals. */
:root {
  --bg: #F1F2F6;          /* silver ground */
  --bg2: #FAF6EE;         /* cream card */
  --surface: rgba(255,255,255,.74);
  --surface-solid: #FFFFFF;
  --ink: #12162D;
  --sub: #555C77;
  --faint: #8D93A8;
  --line: rgba(18,22,45,.10);
  --line2: rgba(18,22,45,.18);
  --night: #0A0E22;       /* stays dark in both themes */
  --night2: #171C40;
  --on-night: #EEF0FA;
  --on-night-sub: #A3A9C6;
  --gold: #E3AE3C;
  --gold-ink: #A9741A;
  --lav: #8A7BF4;
  --coral: #F0705A;
  --mint: #2FB48C;
  --sky: #5B8CFA;
  --risk: #EF5470;
  --warn: #F0A63A;
  --ok: #2FB48C;
  --warm: linear-gradient(96deg, #F0705A 0%, #E88AA8 38%, #A08CF6 72%, #6E8BFF 100%);
  --aurora: linear-gradient(110deg, #6E8BFF 0%, #A68CFF 34%, #EFA2C2 66%, #F2C46A 100%);
  --glass: linear-gradient(135deg, rgba(255,255,255,.92), rgba(247,248,251,.78) 55%, rgba(250,244,232,.86));
  --shadow: 0 24px 60px rgba(24,30,70,.12), 0 2px 8px rgba(24,30,70,.05);
  --f-display: "Bricolage Grotesque", "Noto Sans TC", "Noto Sans JP", system-ui, sans-serif;
  --f-body: "Noto Sans TC", "Noto Sans JP", system-ui, -apple-system, "PingFang TC", "Hiragino Sans", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r-lg: 28px; --r-md: 18px; --r-sm: 12px;
  --wrap: 1240px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0C1024; --bg2: #151A36; --surface: rgba(255,255,255,.06); --surface-solid: #161B38;
  --ink: #EEF0FA; --sub: #A6ACC6; --faint: #7A809C; --line: rgba(255,255,255,.10); --line2: rgba(255,255,255,.2);
  --gold-ink: #F2C46A;
  --glass: linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.04) 55%, rgba(242,196,106,.06));
  --shadow: 0 24px 60px rgba(0,0,0,.4); color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0C1024; --bg2: #151A36; --surface: rgba(255,255,255,.06); --surface-solid: #161B38;
  --ink: #EEF0FA; --sub: #A6ACC6; --faint: #7A809C; --line: rgba(255,255,255,.10); --line2: rgba(255,255,255,.2);
  --gold-ink: #F2C46A;
  --glass: linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.04) 55%, rgba(242,196,106,.06));
  --shadow: 0 24px 60px rgba(0,0,0,.4); color-scheme: dark; }

html:lang(ja) { --f-body: "Noto Sans JP", "Noto Sans TC", system-ui, "Hiragino Sans", sans-serif; --f-display: "Bricolage Grotesque", "Noto Sans JP", system-ui, sans-serif; }
html:lang(en) { --f-body: "Bricolage Grotesque", "Noto Sans TC", system-ui, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lav); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
section { position: relative; }
.band { padding-block: clamp(72px, 10vw, 140px); }
.eyebrow { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--aurora); }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 4.2vw, 54px); line-height: 1.14; font-weight: 800; }
h3 { font-size: 21px; line-height: 1.35; font-weight: 700; }
.lead { color: var(--sub); font-size: clamp(16px, 1.3vw, 18.5px); max-width: 62ch; margin: 18px 0 0; }
.g { background: var(--warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono { font-family: var(--f-mono); }
.sec-head { display: grid; gap: 6px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head.center { text-align: center; justify-items: center; }
.sec-head h2 { margin-top: 12px; }

/* reveal: visible at rest; only elements that start below the fold get .pre */
.rv { transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.rv.pre { opacity: 0; transform: translateY(26px); }

/* ---------- nav ---------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; padding-top: 14px; }
.nav-pill { display: flex; align-items: center; gap: 18px; background: var(--night); color: var(--on-night); border-radius: 999px; padding: 8px 8px 8px 22px; box-shadow: 0 16px 40px rgba(8,10,30,.25); }
.nav-logo { flex-shrink: 0; display: block; }
.nav-logo img { height: 30px; width: auto; max-width: none; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: 14.5px; padding: 8px 12px; border-radius: 999px; color: var(--on-night-sub); transition: color .2s, background .2s; white-space: nowrap; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.lang { display: flex; background: rgba(255,255,255,.08); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: transparent; color: var(--on-night-sub); padding: 6px 11px; border-radius: 999px; font-size: 13px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--night); font-weight: 700; }
.btn-demo { display: inline-flex; align-items: center; gap: 12px; background: #fff; color: var(--night); text-decoration: none; border-radius: 999px; padding: 5px 5px 5px 18px; font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.arrow { width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; background: var(--warm); color: #fff; flex-shrink: 0; transition: transform .3s; }
.arrow svg { width: 16px; height: 16px; }
a:hover > .arrow, button:hover > .arrow { transform: translateX(3px); }
.menu-btn { display: none; }
@media (max-width: 1080px) { .nav-links { display: none; } .lang { margin-left: auto; } }
@media (max-width: 560px) { .btn-demo span:first-child { display: none; } .btn-demo { padding: 4px; } .nav-pill { gap: 10px; padding-left: 16px; } .nav-logo img { height: 24px; } .lang button { padding: 6px 8px; } }

/* ---------- hero: real vs. twin — a floor photo dissolves across a seam into its particle twin ---------- */
:root { --navh: 70px; --gut: max(16px, calc((100vw - var(--wrap)) / 2 + 16px)); }
.hero { margin-top: calc(-1 * var(--navh)); }
.twin { --seam: 44%; --sc-bg: #070A1C; position: relative; overflow: hidden; isolation: isolate; min-height: max(700px, min(100svh, 1040px)); background-color: var(--sc-bg); transition: background-color 1.8s; color: #fff; display: flex; flex-direction: column; }
.twin[data-scene="1"] { --sc-bg: #071A3E; }
.twin[data-scene="2"] { --sc-bg: #04161C; }
.twin[data-scene="3"] { --sc-bg: #050608; }
.twin[data-scene="4"] { --sc-bg: #170C1F; }
.twin[data-scene="5"] { --sc-bg: #021215; }
.twin[data-scene="6"] { --sc-bg: #0E0A24; }
.twin-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(60% 70% at 72% 50%, rgba(138,123,244,.16), transparent 70%); }
.twin-bg::before, .twin-bg::after { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s; }
.twin-bg::before { background: linear-gradient(rgba(120,170,255,.09) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, rgba(120,170,255,.09) 1px, transparent 1px) 0 0 / 32px 32px; }
.twin-bg::after { background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 4px); }
.twin[data-scene="1"] .twin-bg::before, .twin[data-scene="6"] .twin-bg::before { opacity: 1; }
.twin[data-scene="3"] .twin-bg::after, .twin[data-scene="5"] .twin-bg::after { opacity: 1; }
.twin-real { position: absolute; inset: 0; z-index: 1; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--seam) - 20%), transparent var(--seam)); mask-image: linear-gradient(90deg, #000 calc(var(--seam) - 20%), transparent var(--seam)); }
.twin-real img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s; filter: saturate(.85); }
.twin-real img.on { opacity: 1; }
.twin-real::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(7,10,28,.86) 0%, rgba(7,10,28,.62) 40%, rgba(7,10,28,.35) 100%), linear-gradient(0deg, rgba(7,10,28,.8), transparent 45%); }
/* halftone: the photo breaks into dots as it approaches the seam */
.twin-real::after { content: ""; position: absolute; inset: 0; z-index: 2; background: radial-gradient(circle, transparent 1.4px, var(--sc-bg) 2.2px) 0 0 / 8px 8px; -webkit-mask-image: linear-gradient(90deg, transparent calc(var(--seam) - 24%), #000 calc(var(--seam) - 3%)); mask-image: linear-gradient(90deg, transparent calc(var(--seam) - 24%), #000 calc(var(--seam) - 3%)); }
.twin canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 2; }
.twin.no-gl .twin-real { -webkit-mask-image: none; mask-image: none; }
.seam { position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--seam); width: 1px; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(255,255,255,.55) 18%, #A68CFF 55%, rgba(239,162,194,.6) 80%, transparent); box-shadow: 0 0 18px rgba(166,140,255,.7); }
.seam::after { content: ""; position: absolute; left: -3px; width: 7px; height: 70px; border-radius: 4px; background: linear-gradient(transparent, #fff, transparent); animation: seamRun 4.5s cubic-bezier(.6,0,.4,1) infinite; }
@keyframes seamRun { from { top: -10%; } to { top: 100%; } }
.seam-tag { position: absolute; top: calc(var(--navh) + 30px); left: 0; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; white-space: nowrap; font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; padding: 7px 12px; border-radius: 999px; background: rgba(7,10,28,.7); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.seam-tag i { width: 26px; height: 1px; background: var(--aurora); }
.seam-tag b:first-child { color: var(--on-night-sub); font-weight: 500; }
.hero-copy { position: relative; z-index: 4; width: 100%; padding-top: calc(var(--navh) + clamp(64px, 13vh, 160px)); padding-bottom: clamp(210px, 27vh, 310px); display: grid; justify-items: start; gap: 22px; }
.hero-copy > * { max-width: min(640px, 46vw); }
.hero .eyebrow { color: #F2C46A; }
.hero h1 { color: #fff; font-size: clamp(38px, 4.4vw, 74px); line-height: 1.08; font-weight: 800; letter-spacing: -.015em; }
html:lang(zh-Hant) .hero h1, html:lang(ja) .hero h1 { line-height: 1.22; letter-spacing: .02em; }
.hero-sub { color: #C3C8E2; font-size: clamp(15.5px, 1.2vw, 18px); margin: 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.btn { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; border-radius: 999px; font-weight: 700; padding: 6px 6px 6px 24px; border: 0; cursor: pointer; font-size: 16px; }
.btn.dark { background: var(--night); color: #fff; box-shadow: 0 14px 30px rgba(10,14,34,.22); }
.btn.dark .arrow { background: #fff; color: var(--night); }
.btn.ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2); padding: 14px 24px; }
.btn.light { background: #fff; color: var(--night); }
.btn.light .arrow { background: var(--warm); color: #fff; }
.btn.glass { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.24); padding: 14px 24px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.twin-hud { position: absolute; z-index: 4; top: calc(var(--navh) + 26px); right: var(--gut); bottom: clamp(160px, 19vw, 280px); display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; gap: 16px; pointer-events: none; }
.hud-row { display: flex; align-items: center; gap: 14px; }
.chip-d { pointer-events: auto; display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 999px; padding: 8px 14px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--on-night); }
.dot-live { width: 8px; height: 8px; border-radius: 9px; background: #5BE3B0; box-shadow: 0 0 0 0 rgba(91,227,176,.6); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(91,227,176,.55); } 100% { box-shadow: 0 0 0 10px rgba(91,227,176,0); } }
.scene-card { pointer-events: auto; display: grid; gap: 2px; background: rgba(7,10,28,.55); border: 1px solid rgba(255,255,255,.14); border-left: 2px solid #A68CFF; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 4px 16px 16px 4px; padding: 12px 18px; max-width: min(360px, 100%); }
.scene-card small { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--on-night-sub); text-transform: uppercase; }
.scene-card b { display: block; font-size: 19px; font-family: var(--f-display); line-height: 1.3; }
.scene-card span { display: block; font-size: 13px; color: var(--on-night-sub); line-height: 1.45; }
.scene-count { font-family: var(--f-mono); font-size: 12px; color: var(--on-night-sub); letter-spacing: .1em; text-align: right; line-height: 1.5; }
.scene-count b { font-size: 30px; color: #fff; font-family: var(--f-display); letter-spacing: 0; }
.scene-count em { font-style: normal; color: #F2C46A; }
.scene-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 22px; }
.scene-tabs button { border: 0; cursor: pointer; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); border-radius: 999px; padding: 9px 16px; font-size: 14px; color: var(--sub); position: relative; overflow: hidden; transition: color .25s, background .25s; }
.scene-tabs button[aria-pressed="true"] { color: #fff; background: var(--night); box-shadow: none; }
.scene-tabs button i { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--aurora); }
.scene-tabs button[aria-pressed="true"] i { animation: fillbar var(--hold, 5s) linear forwards; }
@keyframes fillbar { to { width: 100%; } }

/* ---------- giant marquee type laid over imagery ---------- */
.mega { position: absolute; left: 0; right: 0; z-index: 3; overflow: hidden; pointer-events: none; user-select: none; }
.mega-track { display: flex; width: max-content; animation: marq 70s linear infinite; }
.mega.rev .mega-track { animation-direction: reverse; }
.mega span { font-family: var(--f-display); font-weight: 800; font-size: clamp(88px, 13.5vw, 236px); line-height: 1; letter-spacing: .01em; white-space: nowrap; padding-right: .3em; }
/* outline type with a faint aurora fill */
.mega-outline span { color: transparent; -webkit-text-stroke: 1.3px rgba(255,255,255,.34); background: linear-gradient(90deg, rgba(110,139,255,.2), rgba(239,162,194,.22) 50%, rgba(242,196,106,.2)) 0 0 / 50% 100%; -webkit-background-clip: text; background-clip: text; }
/* solid aurora type for photo overlays */
.mega-aurora span { color: transparent; background: linear-gradient(90deg, #8FA6FF, #F2B8D2 35%, #FFE1A0 60%, #B7A6FF) 0 0 / 50% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 1px rgba(10,14,34,.18); }
.mega-hero { bottom: -.2em; }
@media (prefers-reduced-motion: reduce) { .mega-track, .seam::after { animation: none; } }

@media (max-width: 860px) {
  .twin { --seam: 50%; }
  .twin-real { -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 64%); mask-image: linear-gradient(180deg, #000 40%, transparent 64%); }
  .twin-real::after { -webkit-mask-image: linear-gradient(180deg, transparent 34%, #000 62%); mask-image: linear-gradient(180deg, transparent 34%, #000 62%); }
  .seam { display: none; }
  .hero-copy > * { max-width: 100%; }
  .hero-copy { padding-bottom: clamp(320px, 50vh, 420px); }
  .twin-hud { top: auto; left: var(--gut); right: var(--gut); bottom: clamp(96px, 20vw, 150px); align-items: stretch; }
  .twin-hud .hud-row { display: none; }
}
@media (max-width: 700px) { .scene-card b { font-size: 16px; } .scene-card small { font-size: 10px; } .scene-card span { font-size: 12px; } }

/* ---------- full-bleed photo bands: halftone dissolve and viewfinder frame ---------- */
.cine { position: relative; overflow: hidden; isolation: isolate; color: #fff; min-height: clamp(620px, 94vh, 960px); display: flex; align-items: center; background: var(--night); }
.cine-media { position: absolute; inset: -9% 0; z-index: -3; }
.cine-media img { width: 100%; height: 100%; object-fit: cover; }
.cine-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,10,28,.9) 0%, rgba(7,10,28,.6) 42%, rgba(7,10,28,.15) 75%), linear-gradient(0deg, rgba(7,10,28,.75), transparent 40%); }
.cine-dots { position: absolute; inset: 0; z-index: -2; pointer-events: none; background: radial-gradient(circle, transparent 1.5px, var(--night) 2.4px) 0 0 / 9px 9px; -webkit-mask-image: linear-gradient(100deg, transparent 50%, #000 92%); mask-image: linear-gradient(100deg, transparent 50%, #000 92%); }
.cine::before { content: ""; position: absolute; inset: 0 0 auto; height: 22%; z-index: -1; pointer-events: none; background: linear-gradient(180deg, var(--bg), transparent); }
.frame { position: absolute; inset: clamp(70px, 12vh, 120px) var(--gut) clamp(70px, 12vh, 120px); z-index: 1; pointer-events: none; }
.frame i { position: absolute; width: 34px; height: 34px; border: 0 solid rgba(255,255,255,.7); }
.frame i:nth-child(1) { top: 0; left: 0; border-width: 2px 0 0 2px; }
.frame i:nth-child(2) { top: 0; right: 0; border-width: 2px 2px 0 0; }
.frame i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.frame i:nth-child(4) { bottom: 0; right: 0; border-width: 0 2px 2px 0; }
.frame-meta { position: absolute; top: 12px; right: 48px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; color: rgba(255,255,255,.75); display: flex; align-items: center; gap: 8px; }
.frame-meta::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #F0705A; animation: ping 1.8s infinite; }
.cine-copy { position: relative; z-index: 3; display: grid; justify-items: start; gap: 18px; padding-block: 150px clamp(200px, 22vw, 300px); }
.cine-copy h2 { color: #fff; max-width: 13em; font-size: clamp(34px, 4.6vw, 68px); }
.cine-copy p { margin: 0; max-width: 34em; color: #C3C8E2; font-size: clamp(15.5px, 1.2vw, 18px); }
.cine .eyebrow { color: #F2C46A; }
.mega-cine { bottom: -.18em; }
.cine-end { min-height: clamp(560px, 82vh, 860px); }
.ribbon { position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.mega-photo { top: 50%; transform: translateY(-50%); }
@media (max-width: 860px) { .cine-dots { -webkit-mask-image: linear-gradient(180deg, transparent 55%, #000 95%); mask-image: linear-gradient(180deg, transparent 55%, #000 95%); } .frame-meta { right: 40px; } }

/* ---------- trust marquee ---------- */
.trust { padding-block: 40px 20px; }
.trust p { text-align: center; color: var(--faint); font-size: 13px; letter-spacing: .08em; margin: 0 0 18px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: marq 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }
.logo-tile { height: 78px; padding: 10px 22px; border-radius: 16px; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(20,30,60,.06); border: 1px solid rgba(18,22,45,.06); }
.logo-tile img { max-height: 56px; width: auto; }

/* ---------- manifesto ---------- */
.manifesto { font-family: var(--f-display); font-weight: 700; font-size: clamp(24px, 3.4vw, 44px); line-height: 1.45; margin: 22px 0 0; max-width: 30em; }
html:lang(en) .manifesto { line-height: 1.3; }
.manifesto .w { color: var(--ink); opacity: .16; transition: opacity .25s; }
.manifesto .w.on { opacity: 1; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 6vw, 72px); }
.stat { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; box-shadow: var(--shadow); min-width: 0; }
.stat .n { font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 4.4vw, 60px); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat .n small { font-size: .42em; margin-left: 4px; letter-spacing: 0; }
.stat p { margin: 12px 0 4px; font-weight: 700; line-height: 1.45; }
.stat cite { font-style: normal; font-size: 12px; color: var(--faint); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- product switcher (mask tabs) ---------- */
.ptabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; background: var(--surface); border-radius: 22px; padding: 8px; box-shadow: inset 0 0 0 1px var(--line); }
.ptabs button { border: 0; background: transparent; cursor: pointer; border-radius: 16px; padding: 16px; display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 19px; color: var(--sub); transition: background .3s, color .3s, box-shadow .3s; }
.ptabs button .pd { width: 12px; height: 12px; border-radius: 99px; }
.ptabs button[aria-selected="true"] { background: var(--surface-solid); color: var(--ink); box-shadow: 0 10px 26px rgba(20,30,60,.10); }
.pstage { position: relative; margin-top: 16px; border-radius: var(--r-lg); overflow: hidden; min-height: 520px; background: var(--bg2); box-shadow: var(--shadow); }
.ppanel { position: absolute; inset: 0; display: grid; grid-template-columns: 1.05fr 1fr; clip-path: inset(0 0 0 0 round 28px); }
.ppanel.enter { animation: wipe 1s cubic-bezier(.7,0,.2,1) both; z-index: 2; }
@keyframes wipe { from { clip-path: circle(0% at var(--cx, 50%) var(--cy, 0%)); } to { clip-path: circle(150% at var(--cx, 50%) var(--cy, 0%)); } }
.ppanel .pimg { position: relative; overflow: hidden; min-height: 320px; background: #F4F5F7; }
.ppanel .pimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.6s cubic-bezier(.2,.7,.2,1); }
.ppanel.enter .pimg img, .ppanel.show .pimg img { transform: scale(1); }
.pimg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10,14,34,.6)); }
.pstat { position: absolute; left: 22px; bottom: 22px; z-index: 2; color: #fff; }
.pstat b { font-family: var(--f-display); font-size: clamp(44px, 5vw, 72px); line-height: 1; display: block; }
.pstat span { font-size: 14px; opacity: .85; }
.pbody { padding: clamp(26px, 4vw, 56px); display: flex; flex-direction: column; gap: 16px; background: var(--bg2); min-width: 0; }
.pbody .tag { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .12em; color: var(--faint); text-transform: uppercase; }
.pbody h3 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 800; }
.pbody p { color: var(--sub); margin: 0; }
.blist { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 12px; }
.blist li { display: flex; gap: 14px; align-items: baseline; line-height: 1.55; }
.blist li::before { content: "[ \2022 ]"; font-family: var(--f-mono); color: var(--faint); font-size: 13px; flex-shrink: 0; letter-spacing: .1em; }
.btn-line { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 14px; text-decoration: none; background: var(--night); color: #fff; border-radius: 999px; padding: 6px 6px 6px 22px; font-weight: 700; }
.btn-line .arrow { background: #fff; color: var(--night); }
@media (max-width: 860px) { .ppanel { grid-template-columns: 1fr; position: relative; } .ppanel:not(.cur):not(.enter) { display: none; } .ppanel.enter { position: absolute; } .pstage { min-height: 0; } .ptabs button { font-size: 15px; padding: 12px 6px; flex-direction: column; gap: 6px; } }

/* ---------- iso stack ---------- */
.arch { background: var(--bg); overflow: hidden; }
#mentor, #qc, #industries { overflow: hidden; }
.arch-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; min-height: 100vh; padding-block: 96px 32px; }
.arch-grid h2 { font-size: clamp(28px, 3.4vw, 46px); }
.layer-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.layer-list li { border-radius: 16px; padding: 12px 16px; transition: background .4s, box-shadow .4s, opacity .4s; opacity: .45; display: grid; grid-template-columns: 34px 1fr; gap: 4px 12px; }
.layer-list li .ln { font-family: var(--f-mono); font-size: 12px; color: var(--faint); padding-top: 4px; grid-row: span 3; }
.layer-list li b { font-family: var(--f-display); font-size: 19px; }
.layer-list li .it { font-family: var(--f-mono); font-size: 12.5px; color: var(--gold-ink); letter-spacing: .02em; }
.layer-list li span { color: var(--sub); font-size: 14.5px; }
.layer-list li.on { opacity: 1; background: var(--glass); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.iso-stage { position: relative; height: min(78vh, 680px); display: grid; place-items: center; perspective: 2400px; }
.iso { position: relative; width: 340px; height: 340px; transform-style: preserve-3d; transform: rotateX(57deg) rotateZ(-45deg); }
.plane { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(calc(var(--i) * var(--gap, 26px))); transition: filter .4s; }
.plane .face { position: absolute; inset: 0; background: var(--surface-solid); border: 2.5px solid var(--ink); display: grid; padding: 22px; gap: 14px; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); }
.plane .ed-b, .plane .ed-r { position: absolute; background: var(--ink); }
.plane .ed-b { left: 0; right: 0; bottom: 0; height: 16px; transform-origin: bottom; transform: rotateX(90deg); }
.plane .ed-r { top: 0; bottom: 0; right: 0; width: 16px; transform-origin: right; transform: rotateY(-90deg); }
.plane.on .face { background: var(--bg2); }
.plane.on .face::after { content: ""; position: absolute; inset: -2px; border: 3px solid transparent; background: var(--aurora) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.tile { border: 2px solid var(--ink); background: var(--surface-solid); display: grid; place-items: center; position: relative; }
.tile svg { width: 60%; height: 60%; stroke: var(--ink); fill: none; stroke-width: 1.8; }
.tile.fill { background: var(--ink); }
.tile.fill svg { stroke: var(--surface-solid); }
.tile.ghost { border-style: dashed; opacity: .5; }
.win { position: absolute; background: var(--surface-solid); border: 2.5px solid var(--ink); transform-origin: bottom; transform: rotateX(-90deg); padding: 8px; display: grid; gap: 6px; align-content: start; }
.win .bar { height: 10px; border-bottom: 2px solid var(--ink); display: flex; gap: 4px; padding-bottom: 12px; }
.win .bar i { width: 6px; height: 6px; border-radius: 9px; background: var(--ink); }
.win .ln2 { height: 6px; background: var(--line2); border-radius: 3px; }
.win .ln2.s { width: 60%; }
.win .gr { height: 46px; border: 2px solid var(--ink); background: linear-gradient(to top, var(--ink) 0 30%, transparent 30%) 10% 100% / 12% 100% no-repeat, linear-gradient(to top, var(--ink) 0 55%, transparent 55%) 35% 100% / 12% 100% no-repeat, linear-gradient(to top, var(--ink) 0 75%, transparent 75%) 60% 100% / 12% 100% no-repeat, linear-gradient(to top, var(--ink) 0 45%, transparent 45%) 85% 100% / 12% 100% no-repeat; }
.win .wt { font-family: var(--f-mono); font-size: 11px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.win .av { width: 34px; height: 34px; border-radius: 99px; border: 2px solid var(--ink); justify-self: center; margin-top: 6px; }
.layer-tag { position: absolute; font-family: var(--f-mono); font-size: 12px; background: var(--night); color: #fff; padding: 4px 9px; border-radius: 6px; transform: rotateZ(45deg) rotateX(-57deg) translateZ(40px); white-space: nowrap; left: -30px; bottom: -30px; }
@media (max-width: 960px) { .arch-grid { grid-template-columns: 1fr; min-height: 0; } .iso-stage { height: 520px; order: -1; } .iso { width: 240px; height: 240px; } .plane .face { padding: 14px; gap: 9px; } .win .gr { height: 30px; } .layer-list li { opacity: 1; } }
@media (max-width: 420px) { .iso { width: 200px; height: 200px; } .iso-stage { height: 440px; } }

/* ---------- mentor ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.mentor-vis { position: relative; padding: 30px 0; }
.live-ui { position: relative; background: var(--glass); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.live-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.live-chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .06em; color: var(--sub); text-transform: uppercase; }
.live-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.live-tabs button { border: 0; background: transparent; padding: 6px 12px; border-radius: 999px; font: inherit; font-size: 13px; color: var(--sub); cursor: pointer; }
.live-tabs button[aria-selected="true"] { background: var(--night); color: #fff; }
.live-stage { position: relative; aspect-ratio: 16 / 9; background: #F4F5F7; }
.live-stage video, .dl-live video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #0b0f26; }
.live-cover { container-type: size; overflow: hidden; }
.ppanel .pimg > video.live-fill { left: 0; top: 0; width: 100%; height: 100%; transform: none; object-fit: cover; }
.live-fill { position: absolute; left: 50%; top: 50%; width: min(100cqw, 177.78cqh); height: min(100cqh, 56.25cqw); transform: translate(-50%, -50%); pointer-events: none; background: #F4F5F7; }
.mentor-vis .ring { position: absolute; inset: -6% -4%; pointer-events: none; }
.browser { position: relative; background: var(--glass); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.browser .bt { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.browser .bt i { width: 11px; height: 11px; border-radius: 9px; background: var(--line2); }
.browser .bt span { margin-left: 10px; font-family: var(--f-mono); font-size: 12px; }
.mentor-body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); min-height: 430px; }
.mentor-left { padding: 22px; border-right: 1px solid var(--line); display: grid; align-content: start; gap: 14px; min-width: 0; }
.mentor-left .pph { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4/5; }
.mentor-left .pph img { width: 100%; height: 100%; object-fit: cover; }
.ai-badge { position: absolute; left: 10px; top: 10px; background: var(--night); color: #fff; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; padding: 4px 9px; border-radius: 6px; display: flex; align-items: center; gap: 6px; }
.ai-badge::before { content: ""; width: 6px; height: 6px; border-radius: 9px; background: #5BE3B0; }
.mentor-left .who { font-size: 13px; color: var(--sub); line-height: 1.5; }
.chatbox { padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; background: var(--surface-solid); }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 700; font-size: 14px; }
.seg { display: flex; gap: 4px; }
.seg span { font-family: var(--f-mono); font-size: 11px; padding: 4px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line2); color: var(--sub); }
.seg span.on { background: var(--coral); color: #fff; box-shadow: none; }
.msgs { display: flex; flex-direction: column; gap: 9px; flex: 1; min-height: 250px; justify-content: flex-end; overflow: hidden; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; animation: pop .45s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.msg.ai { align-self: flex-start; background: var(--bg); }
.msg.rep { align-self: flex-end; background: var(--night); color: #fff; }
.msg.coach { align-self: stretch; max-width: 100%; background: color-mix(in srgb, var(--warn) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 45%, transparent); font-size: 13px; display: flex; gap: 8px; }
.msg.coach b { color: var(--gold-ink); font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; flex-shrink: 0; padding-top: 2px; }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; background: var(--bg); border-radius: 16px; }
.typing i { width: 6px; height: 6px; border-radius: 9px; background: var(--faint); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .2; } }
.switched { font-family: var(--f-mono); font-size: 11px; color: var(--coral); text-align: center; letter-spacing: .08em; border-top: 1px dashed var(--line2); padding-top: 8px; }
.voice-row { display: flex; align-items: center; gap: 10px; }
.voice-row .play { width: 38px; height: 38px; border-radius: 99px; background: var(--coral); display: grid; place-items: center; flex-shrink: 0; }
.voice-row canvas { flex: 1; height: 38px; min-width: 0; }
.voice-row .tm { font-family: var(--f-mono); font-size: 11px; color: var(--faint); }
.booked { display: flex; justify-content: space-between; background: var(--night); color: #fff; border-radius: 10px; padding: 9px 12px; font-size: 13px; gap: 8px; }
.booked span { opacity: .7; }
.score-float { position: absolute; right: -18px; bottom: -8px; background: var(--glass); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 14px 18px; display: flex; align-items: center; gap: 14px; z-index: 3; }
.score-float svg { width: 64px; height: 64px; }
.score-float b { font-family: var(--f-display); font-size: 30px; line-height: 1; }
.score-float small { display: block; font-size: 12px; color: var(--sub); }
.card-cream { background: var(--bg2); border-radius: var(--r-lg); padding: clamp(26px, 4vw, 52px); box-shadow: var(--shadow); display: grid; gap: 18px; position: relative; overflow: hidden; }
.card-cream .lines { position: absolute; right: 28px; top: 28px; width: 80px; opacity: .5; }
.card-cream h2 { font-size: clamp(28px, 3.3vw, 44px); }
.card-cream h2 .g { display: inline; }
.card-cream p { margin: 0; color: var(--sub); }
.blist.lg li { font-size: 16px; }
.blist.lg li b { color: var(--ink); }
.blist.lg li span { color: var(--sub); }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } .score-float { right: 8px; } }
@media (max-width: 560px) { .score-float { top: 4px; bottom: auto; right: 4px; padding: 10px 14px; } .score-float svg { width: 46px; height: 46px; } .score-float b { font-size: 24px; } .mentor-vis { padding-top: 60px; } }
@media (max-width: 560px) { .mentor-body { grid-template-columns: 1fr; } .mentor-left { grid-template-columns: 110px 1fr; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); } .mentor-left .pph { aspect-ratio: 1; } }

/* ---------- night band (QC + voice) ---------- */
.night { background: radial-gradient(90% 70% at 80% 0%, #252C6A 0%, #12173A 45%, var(--night) 100%); color: var(--on-night); }
.night .lead, .night p { color: var(--on-night-sub); }
.night .eyebrow { color: #F2C46A; }
.qc-vis { position: relative; min-height: 560px; }
.qc-photo { position: absolute; inset: 0 0 auto 12%; height: 62%; border-radius: 24px; overflow: hidden; opacity: .9; }
.qc-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.qc-photo.live-cover { height: auto; aspect-ratio: 16 / 9; opacity: 1; }
.qc-photo.live-cover::after { background: linear-gradient(200deg, rgba(10,14,34,0) 55%, rgba(10,14,34,.55)); }
.qc-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(10,14,34,0) 30%, rgba(10,14,34,.85)); }
.gcard { position: absolute; background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.05)); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); border-radius: 20px; padding: 18px 22px; box-shadow: 0 30px 70px rgba(0,0,0,.35); color: var(--on-night); }
.gcard h4 { margin: 0 0 6px; font-size: 17px; display: flex; align-items: center; gap: 10px; }
.gcard p { margin: 0; font-size: 14.5px; color: var(--on-night); opacity: .85; line-height: 1.55; }
.gc1 { left: 0; top: 34%; width: min(440px, 88%); }
.gc1 h4 { color: #7CF0C0; }
.gc1 .ck { width: 28px; height: 28px; border-radius: 99px; background: rgba(124,240,192,.18); display: grid; place-items: center; }
.gc2 { right: 0; top: 52%; width: min(330px, 70%); }
.gc2 ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 7px; font-size: 14px; }
.gc2 li { display: flex; gap: 9px; align-items: center; }
.gc2 li i { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; font-style: normal; font-size: 11px; color: var(--night); font-weight: 900; flex-shrink: 0; }
.gc3 { left: 6%; bottom: 0; width: min(480px, 92%); }
.gc3 .nx { margin-top: 8px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); font-size: 14px; }
.qc-lower { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 20px; margin-top: 56px; }
.dpanel { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 22px; padding: 22px; min-width: 0; }
.dpanel .ph { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; color: var(--on-night-sub); margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
.tline { display: grid; grid-template-columns: 46px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.06); font-size: 14.5px; align-items: start; opacity: .25; transition: opacity .5s; }
.tline.on { opacity: 1; }
.tline .sp { font-family: var(--f-mono); font-size: 11px; color: var(--on-night-sub); padding-top: 3px; }
.tline mark { background: none; color: inherit; padding: 1px 3px; border-radius: 4px; transition: background .5s; }
.tline.on mark.risk { background: rgba(239,84,112,.28); box-shadow: inset 0 -2px 0 var(--risk); }
.tline.on mark.warn { background: rgba(240,166,58,.24); box-shadow: inset 0 -2px 0 var(--warn); }
.tline.on mark.ok { background: rgba(47,180,140,.22); box-shadow: inset 0 -2px 0 var(--ok); }
.flag { display: inline-block; margin-left: 8px; font-family: var(--f-mono); font-size: 10.5px; padding: 2px 7px; border-radius: 5px; letter-spacing: .04em; vertical-align: 2px; }
.flag.risk { background: var(--risk); color: #fff; } .flag.warn { background: var(--warn); color: var(--night); } .flag.ok { background: var(--ok); color: #fff; }
.qgrid { display: grid; grid-template-columns: repeat(24, 1fr); gap: 4px; }
.qgrid i { aspect-ratio: 1; border-radius: 3px; background: rgba(255,255,255,.07); transition: background .3s, transform .3s; }
.qgrid i.ok { background: rgba(47,180,140,.75); } .qgrid i.warn { background: var(--warn); } .qgrid i.risk { background: var(--risk); }
.qgrid i.scan { background: #fff; transform: scale(1.15); }
.qlegend { display: flex; gap: 16px; margin-top: 14px; font-size: 12.5px; color: var(--on-night-sub); flex-wrap: wrap; }
.qlegend span { display: flex; align-items: center; gap: 6px; }
.qlegend i { width: 10px; height: 10px; border-radius: 3px; }
.qcount { font-family: var(--f-display); font-size: 34px; color: #fff; letter-spacing: 0; font-variant-numeric: tabular-nums; }
@media (max-width: 960px) { .qc-lower { grid-template-columns: 1fr; } .qc-vis { min-height: 600px; margin-top: 30px; } .qc-photo { inset: 0 0 auto 0; } }
@media (max-width: 560px) { .qgrid { grid-template-columns: repeat(16, 1fr); } .gc2 { width: 80%; top: 50%; } .gc1 { top: 26%; } }

/* ---------- pipeline (horizontal pin) ---------- */
.pipe { overflow: hidden; }
.pipe-head { padding-top: clamp(72px, 8vw, 100px); }
.pipe-head .sec-head { margin-bottom: 26px; }
.pipe-head .lead { margin-top: 8px; }
.pipe-track { display: flex; gap: 22px; padding: 6px max(16px, calc((100vw - var(--wrap)) / 2 + 16px)) clamp(40px, 6vw, 80px); width: max-content; will-change: transform; }
.stage { width: min(560px, 82vw); flex-shrink: 0; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 20px; display: grid; gap: 10px; grid-template-rows: auto auto 1fr; }
.stage-top { display: flex; align-items: center; gap: 12px; }
.stage-top .num { font-family: var(--f-mono); font-size: 12px; color: var(--faint); }
.stage-top .k { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; background: var(--night); color: #fff; }
.stage h3 { font-size: 26px; }
.stage p { margin: 4px 0 0; color: var(--sub); font-size: 15px; }
.viz { position: relative; border-radius: 18px; background: var(--night); overflow: hidden; height: clamp(250px, 36vh, 300px); color: var(--on-night); }
.viz canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 820px) { .pipe-track { flex-direction: column; width: auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); } .stage { width: 100%; } }

/* DocLens mock */
.docm { position: absolute; left: 16px; top: 16px; bottom: 16px; width: 54%; background: #F7F5EF; border-radius: 8px; padding: 14px; display: grid; gap: 7px; align-content: start; }
.docm .dh { height: 12px; width: 70%; background: #1d2240; border-radius: 3px; }
.docm .dl { height: 5px; background: #c9cbd6; border-radius: 3px; }
.docm .dl.s { width: 80%; }
.docm .dfig { height: 66px; display: flex; align-items: flex-end; gap: 6px; padding: 6px 8px; background: #ECE8DD; border-radius: 4px; }
.docm .dfig i { flex: 1; background: linear-gradient(#6E8BFF, #A68CFF); border-radius: 2px 2px 0 0; }
.docm .dtbl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.docm .dtbl i { height: 11px; background: #DCDDE5; }
.docm .dtbl i.hc { background: #F2C46A; animation: cellscan 6s steps(1) infinite; }
.bbox { position: absolute; border: 1.5px solid var(--c); border-radius: 3px; opacity: 0; animation: bbox 6s infinite; animation-delay: var(--d); }
.bbox span { position: absolute; left: -1.5px; top: -17px; background: var(--c); color: #0A0E22; font-family: var(--f-mono); font-size: 9.5px; padding: 1px 5px; border-radius: 3px 3px 3px 0; white-space: nowrap; font-weight: 500; }
@keyframes bbox { 0%, 8% { opacity: 0; transform: scale(1.06); } 14%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.scanbeam { position: absolute; left: 16px; width: 54%; height: 36px; top: 16px; background: linear-gradient(180deg, transparent, rgba(110,139,255,.35), transparent); animation: beam 6s cubic-bezier(.5,0,.5,1) infinite; pointer-events: none; }
@keyframes beam { 0% { transform: translateY(-20px); } 55% { transform: translateY(250px); } 100% { transform: translateY(250px); opacity: 0; } }
.jsonout { position: absolute; right: 14px; top: 16px; bottom: 16px; width: calc(46% - 40px); font-family: var(--f-mono); font-size: 10.5px; line-height: 1.6; color: #9FB1FF; overflow: hidden; white-space: pre; }
.jsonout .k { color: #F2C46A; } .jsonout .v { color: #7CF0C0; }
/* persona grid */
.pgrid { position: absolute; left: 16px; top: 16px; bottom: 34px; width: 40%; display: grid; grid-template-columns: repeat(16, 1fr); gap: 4px; align-content: center; }
.pgrid i { aspect-ratio: 1; border-radius: 99px; background: rgba(255,255,255,.12); transition: background .4s, transform .4s; }
.pgrid i.lit { background: var(--aurora); transform: scale(1.35); box-shadow: 0 0 14px rgba(166,140,255,.8); }
.pgrid i.done { background: rgba(166,140,255,.5); }
.pcard { position: absolute; right: 14px; top: 16px; bottom: 16px; width: calc(60% - 46px); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 14px; display: grid; gap: 8px; align-content: start; transition: opacity .35s; }
.pcard .pn { font-family: var(--f-display); font-weight: 700; font-size: 19px; }
.pcard .pa { font-size: 12.5px; color: var(--on-night-sub); }
.pcard .tr { display: flex; flex-wrap: wrap; gap: 5px; }
.pcard .tr span { font-size: 11.5px; padding: 3px 8px; border-radius: 99px; background: rgba(255,255,255,.1); }
.pcard .bars { display: grid; gap: 5px; }
.pcard .bars div { height: 5px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.pcard .bars div i { display: block; height: 100%; background: var(--aurora); transition: width .8s cubic-bezier(.2,.7,.2,1); }
.pcard .pq { font-size: 13px; background: rgba(240,112,90,.18); border-radius: 10px; padding: 8px 10px; }
.pcard .pq small { display: block; font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; color: #F7A08F; }
.pcount { position: absolute; left: 16px; bottom: 12px; font-family: var(--f-mono); font-size: 11px; color: var(--on-night-sub); }
/* phone: stage is too narrow for grid + card side by side, so stack them and let height follow content */
@media (max-width: 820px) {
  .viz[data-viz="persona"] { height: auto; display: grid; gap: 12px; padding: 16px 14px 12px; }
  .viz[data-viz="persona"] .pgrid, .viz[data-viz="persona"] .pcard, .viz[data-viz="persona"] .pcount { position: static; width: auto; }
  .viz[data-viz="persona"] .pgrid { grid-template-columns: repeat(32, 1fr); gap: 3px; }
  .viz[data-viz="persona"] .pcard { min-height: 210px; }
}
/* rag list */
.ragq { position: absolute; left: 14px; right: 14px; top: 12px; font-size: 13px; background: rgba(255,255,255,.08); border-radius: 10px; padding: 8px 12px; display: flex; gap: 8px; align-items: center; z-index: 2; }
.ragq b { font-family: var(--f-mono); font-size: 10.5px; color: #F2C46A; letter-spacing: .1em; }
/* speech */
.lane { position: absolute; left: 14px; right: 14px; height: 120px; }
.lane small { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; color: var(--on-night-sub); }
.lane .txt { font-size: 14px; margin-top: 6px; min-height: 22px; }
.lane .txt .cur { display: inline-block; width: 2px; height: 1em; background: #F2C46A; vertical-align: -2px; animation: blink .8s infinite; }
/* eval */
.evalw { position: absolute; inset: 0; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; padding: 10px 18px; }
.evalw svg { width: 100%; height: 280px; }
.evalw .tot { text-align: center; }
.evalw .tot b { font-family: var(--f-display); font-size: 64px; line-height: 1; display: block; font-variant-numeric: tabular-nums; }
.evalw .tot small { font-family: var(--f-mono); color: var(--on-night-sub); font-size: 11px; letter-spacing: .1em; }

/* ---------- integrations hub ---------- */
.hub { position: relative; border-radius: 34px; overflow: hidden; background: radial-gradient(70% 80% at 50% 0%, rgba(232,214,255,.7), transparent 70%), radial-gradient(60% 60% at 90% 100%, rgba(242,196,106,.3), transparent 70%), var(--bg2); padding: clamp(28px, 5vw, 60px) clamp(16px, 4vw, 48px); }
:root[data-theme="dark"] .hub { background: radial-gradient(70% 80% at 50% 0%, rgba(138,123,244,.25), transparent 70%), var(--bg2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hub { background: radial-gradient(70% 80% at 50% 0%, rgba(138,123,244,.25), transparent 70%), var(--bg2); } }
.hub-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hub-svg path { fill: none; stroke: var(--line2); stroke-width: 1.5; }
.hub-svg path.flow { stroke: url(#hubg); stroke-width: 2.5; stroke-dasharray: 8 14; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -44; } }
.hub-top, .hub-bot { position: relative; display: flex; justify-content: center; gap: clamp(10px, 2vw, 22px); flex-wrap: wrap; }
.app-tile { width: 92px; height: 92px; border-radius: 22px; background: var(--surface-solid); box-shadow: var(--shadow); display: grid; place-items: center; text-align: center; font-size: 12px; font-weight: 700; color: var(--sub); padding: 8px; animation: bob 5s ease-in-out infinite; animation-delay: var(--d, 0s); line-height: 1.3; }
.app-tile .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-family: var(--f-display); font-weight: 800; font-size: 16px; margin: 0 auto 4px; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.hub-core { position: relative; margin: 42px auto; width: 210px; height: 210px; border-radius: 44px; display: grid; place-items: center; background: radial-gradient(120% 120% at 20% 0%, #4B4FB8 0%, #1B1F52 55%, #0F1235 100%); box-shadow: 0 40px 80px rgba(40,40,120,.35), inset 0 1px 0 rgba(255,255,255,.3); color: #fff; text-align: center; }
.hub-core img { width: 120px; margin: 0 auto 8px; }
.hub-core span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; opacity: .8; }
.hub-core::before { content: ""; position: absolute; inset: -14px; border-radius: 56px; border: 1px solid rgba(138,123,244,.35); animation: pulse 3s ease-out infinite; }
@keyframes pulse { from { transform: scale(.94); opacity: 1; } to { transform: scale(1.18); opacity: 0; } }
.wf { display: inline-flex; align-items: center; gap: 10px; background: var(--surface-solid); border-radius: 14px; padding: 13px 18px; font-weight: 700; font-size: 15px; box-shadow: var(--shadow); }
.wf i { width: 10px; height: 10px; border-radius: 3px; }
.wf.add { background: var(--night); color: #fff; }

/* ---------- industries ---------- */
.ind-wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.ind-tabs { display: grid; gap: 6px; position: sticky; top: 100px; }
.ind-tabs button { border: 0; cursor: pointer; text-align: left; background: transparent; border-radius: 14px; padding: 13px 16px; font-size: 16px; font-weight: 700; color: var(--sub); display: flex; align-items: center; gap: 12px; transition: background .3s, color .3s; }
.ind-tabs button .ix { font-family: var(--f-mono); font-size: 11px; color: var(--faint); width: 22px; }
.ind-tabs button[aria-selected="true"] { background: var(--surface-solid); color: var(--ink); box-shadow: var(--shadow); }
.ind-tabs button[aria-selected="true"] .ix { color: var(--coral); }
.ind-main { min-width: 0; }
.ind-stage { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10; max-width: 100%; background: var(--night); box-shadow: var(--shadow); perspective: 1400px; }
.ind-layer { position: absolute; inset: 0; transform-style: preserve-3d; }
.ind-layer.enter { animation: wipe 1s cubic-bezier(.7,0,.2,1) both; z-index: 2; }
.ind-layer .imgw { position: absolute; inset: 0; transform-origin: 50% 70%; transition: transform 1.4s cubic-bezier(.2,.7,.2,1); transform-style: preserve-3d; }
.ind-layer img.main { width: 100%; height: 100%; object-fit: cover; }
.ind-layer.tilt .imgw { transform: rotateX(38deg) scale(.86) translateY(-4%); }
.ind-layer .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,34,.0) 45%, rgba(10,14,34,.7)); pointer-events: none; }
.hs { position: absolute; border: 1.5px solid #fff; border-radius: 6px; box-shadow: 0 0 0 1px rgba(10,14,34,.25); opacity: 0; transform: scale(1.06); transition: opacity .5s, transform .5s; transition-delay: var(--d); }
.hs::before, .hs::after { content: ""; position: absolute; width: 12px; height: 12px; border: 3px solid #F2C46A; }
.hs::before { left: -3px; top: -3px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.hs::after { right: -3px; bottom: -3px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.hs span { position: absolute; left: -1.5px; top: -26px; background: #fff; color: #0A0E22; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; white-space: nowrap; display: flex; gap: 6px; }
.hs span em { font-style: normal; font-family: var(--f-mono); color: var(--mint); font-size: 11px; }
.ind-layer.show .hs { opacity: 1; transform: none; }
.pin { position: absolute; transform: translate(-50%, -100%) translateZ(30px) rotateX(-38deg); transform-origin: bottom; opacity: 0; transition: opacity .5s; transition-delay: var(--d); display: grid; justify-items: center; }
.pin span { background: #fff; color: #0A0E22; font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 10px; white-space: nowrap; box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.pin i { width: 2px; height: 34px; background: linear-gradient(#fff, rgba(255,255,255,0)); }
.pin b { width: 14px; height: 14px; border-radius: 99px; background: var(--coral); box-shadow: 0 0 0 6px rgba(240,112,90,.3); margin-top: -4px; }
.ind-layer.show .pin { opacity: 1; }
.vision-tag { position: absolute; left: 16px; bottom: 16px; z-index: 5; }
.ind-bar { display: grid; gap: 12px; min-width: 0; }
.ind-thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.ind-thumbs button { border: 0; padding: 0; cursor: pointer; width: 120px; aspect-ratio: 16/10; border-radius: 12px; overflow: hidden; flex-shrink: 0; opacity: .55; transition: opacity .3s, transform .3s; box-shadow: inset 0 0 0 1px var(--line); }
.ind-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.ind-thumbs button[aria-pressed="true"] { opacity: 1; transform: translateY(-3px); box-shadow: 0 0 0 2px var(--coral); }
.ind-info { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.ind-info div { background: var(--glass); border: 1px solid var(--line); border-radius: 16px; padding: 16px; min-width: 0; }
.ind-info small { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--faint); margin-bottom: 6px; text-transform: uppercase; }
.ind-info p { margin: 0; font-size: 14.5px; line-height: 1.55; font-weight: 500; }
@media (max-width: 960px) { .ind-wrap { grid-template-columns: 1fr; } .ind-tabs { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; } .ind-tabs button { white-space: nowrap; padding: 10px 14px; font-size: 14.5px; } .ind-info { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ind-info { grid-template-columns: 1fr; } .hs span { font-size: 10.5px; top: -22px; } .hs span em { display: none; } .ind-stage { aspect-ratio: 4 / 3.4; } }

/* ---------- ribbon ---------- */
.ribbon { overflow: hidden; padding-block: 10px 30px; display: grid; gap: 14px; }
.rrow { display: flex; gap: 14px; width: max-content; will-change: transform; }
.rrow img { height: clamp(150px, 19vw, 270px); width: auto; aspect-ratio: 3/2; object-fit: cover; border-radius: 18px; }

/* ---------- security ---------- */
.sec-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.sec-card { background: var(--glass); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); display: grid; gap: 8px; align-content: start; min-width: 0; transition: transform .4s; }
.sec-card:hover { transform: translateY(-4px); }
.sec-card .si { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--night); }
.sec-card .si svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sec-card b { font-size: 17px; font-family: var(--f-display); }
.sec-card span { font-size: 14px; color: var(--sub); }
.deploy-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.deploy-row > div { background: var(--bg2); border-radius: 20px; padding: 22px; min-width: 0; }
.deploy-row small { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; color: var(--faint); text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips span { padding: 8px 14px; border-radius: 999px; background: var(--surface-solid); box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; font-size: 14px; }
.infra { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.infra .logo-tile { height: 58px; padding: 8px 16px; }
.infra .logo-tile img { max-height: 40px; }
@media (max-width: 1000px) { .sec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .deploy-row { grid-template-columns: 1fr; } }

/* ---------- voice / universe ---------- */
.voice { overflow: hidden; }
.uni { position: relative; height: clamp(380px, 46vw, 560px); margin-top: 10px; }
.uni canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.orbs { display: flex; justify-content: center; align-items: center; gap: clamp(10px, 2.6vw, 34px); margin-top: -40px; position: relative; flex-wrap: wrap; }
.orb { --s: 120px; width: var(--s); height: var(--s); border-radius: 50%; border: 0; cursor: pointer; position: relative; overflow: hidden; padding: 0; transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .5s; filter: saturate(.75) brightness(.8); background: #222; }
.orb::before { content: ""; position: absolute; inset: -30%; background: var(--og); filter: blur(18px); animation: swirl 9s linear infinite; animation-duration: var(--sp, 9s); }
.orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(60% 50% at 30% 25%, rgba(255,255,255,.55), transparent 60%), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='120' height='120' filter='url(%23n)' opacity='.35'/></svg>"); mix-blend-mode: overlay; }
@keyframes swirl { to { transform: rotate(360deg); } }
.orb[aria-pressed="true"] { --s: 170px; filter: none; }
.orb .play-ic { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; opacity: 0; transition: opacity .3s; }
.orb .play-ic i { width: 52px; height: 52px; border-radius: 99px; background: #fff; display: grid; place-items: center; }
.orb[aria-pressed="true"] .play-ic { opacity: 1; }
.orb-labels { display: flex; justify-content: center; margin-top: 20px; text-align: center; }
.orb-labels b { display: block; font-family: var(--f-display); font-size: 24px; color: #fff; }
.orb-labels span { font-size: 14px; color: var(--on-night-sub); }
.langs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 26px; }
.langs span { font-size: 13.5px; padding: 6px 13px; border-radius: 99px; border: 1px solid rgba(255,255,255,.16); color: var(--on-night); }
@media (max-width: 640px) { .orb { --s: 64px; } .orb[aria-pressed="true"] { --s: 96px; } .orb .play-ic i { width: 34px; height: 34px; } }

/* ---------- CTA + footer ---------- */
.cta { text-align: center; display: grid; justify-items: center; gap: 18px; padding-block: clamp(72px, 9vw, 120px); }
.cta h2 { font-size: clamp(32px, 5vw, 68px); max-width: 16em; }
.cta p { color: var(--sub); margin: 0; font-size: 18px; }
.mails { display: grid; gap: 10px; justify-items: center; }
.mailrow a { text-decoration: none; }
.mailrow { display: flex; align-items: center; gap: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); border-radius: 999px; padding: 6px 6px 6px 18px; font-size: 14px; color: var(--sub); flex-wrap: wrap; justify-content: center; }
.mailrow code { font-family: var(--f-mono); color: var(--ink); user-select: all; }
.mailrow button { border: 0; background: var(--night); color: #fff; border-radius: 999px; padding: 7px 14px; cursor: pointer; font-size: 13px; }
footer { border-top: 1px solid var(--line); padding-block: 34px 44px; }
.foot { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; justify-content: space-between; font-size: 13.5px; color: var(--faint); }
.foot img { height: 30px; width: auto; max-width: none; flex-shrink: 0; }
.foot .fl { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { text-decoration: none; color: var(--sub); }


/* ---------- viz cards (image-1 style) ---------- */
.vizrow-wrap { padding-block: 0 clamp(60px, 8vw, 110px); }
.vizrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.vcard { background: var(--glass); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 18px; display: grid; gap: 12px; min-width: 0; }
.vcard header b { display: block; font-family: var(--f-display); font-size: 19px; }
.vcard header span { font-size: 13.5px; color: var(--sub); }
.vcard.d { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); box-shadow: none; }
.vcard.d header b { color: #fff; } .vcard.d header span { color: var(--on-night-sub); }
.vcard.d .viz { background: rgba(0,0,0,.25); }
.viz.sm { height: 220px; }
.vleg { position: absolute; left: 12px; bottom: 10px; display: flex; gap: 12px; font-size: 11px; color: var(--on-night-sub); }
.vleg span { display: flex; align-items: center; gap: 5px; } .vleg i { width: 8px; height: 8px; border-radius: 2px; }
.tracks { position: absolute; inset: 14px; display: grid; gap: 9px; align-content: center; }
.tracks .tr { display: grid; grid-template-columns: 18px 1fr 42px; gap: 8px; align-items: center; font-size: 13px; }
.tracks .tr i { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid rgba(255,255,255,.3); display: grid; place-items: center; font-style: normal; font-size: 10px; color: var(--night); transition: background .3s, border-color .3s; }
.tracks .tr.ok i { background: #7CF0C0; border-color: #7CF0C0; }
.tracks .tr .bar { grid-column: 2; height: 4px; background: rgba(255,255,255,.08); border-radius: 3px; overflow: hidden; margin-top: 4px; }
.tracks .tr .bar b { display: block; height: 100%; width: 0; background: var(--aurora); transition: width .9s cubic-bezier(.2,.7,.2,1); }
.tracks .tr em { font-style: normal; font-family: var(--f-mono); font-size: 11px; color: var(--on-night-sub); text-align: right; grid-row: 1; grid-column: 3; }
.ratio { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 46%; aspect-ratio: 1; }
.ratio svg { width: 100%; height: 100%; }
.ratio circle#ratioRep { transition: stroke-dashoffset 1s cubic-bezier(.2,.7,.2,1); }
.rnum { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.rnum b { font-family: var(--f-display); font-size: 26px; } .rnum small { font-size: 11px; color: var(--on-night-sub); }
.rside { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 40%; display: grid; gap: 10px; }
.rside div { background: rgba(255,255,255,.06); border-radius: 10px; padding: 8px 12px; }
.rside small { display: block; font-size: 11px; color: var(--on-night-sub); } .rside b { font-family: var(--f-display); font-size: 20px; font-variant-numeric: tabular-nums; }
.rules { position: absolute; inset: 14px; display: grid; align-content: center; gap: 12px; }
.rules .sent { display: flex; flex-wrap: wrap; gap: 5px; }
.rules .tok { font-size: 14px; padding: 4px 8px; border-radius: 6px; background: rgba(255,255,255,.07); transition: background .3s, color .3s, transform .3s; }
.rules .tok.scan { background: rgba(110,139,255,.35); }
.rules .tok.hit { background: var(--risk); color: #fff; transform: translateY(-2px); }
.rules .pats { display: flex; flex-wrap: wrap; gap: 5px; font-family: var(--f-mono); font-size: 11px; }
.rules .pats span { padding: 2px 7px; border-radius: 5px; border: 1px dashed rgba(255,255,255,.2); color: var(--on-night-sub); transition: all .3s; }
.rules .pats span.hit { border-style: solid; border-color: var(--risk); color: #fff; }
.rules .res { font-family: var(--f-mono); font-size: 12px; color: #F7A08F; min-height: 18px; opacity: 0; transition: opacity .4s; }
.rules .res.on { opacity: 1; }
.funnel { position: absolute; inset: 14px; display: grid; gap: 6px; align-content: center; }
.funnel div { position: relative; height: 30px; border-radius: 8px; overflow: hidden; background: rgba(255,255,255,.04); display: flex; align-items: center; justify-content: space-between; padding: 0 12px; font-size: 13px; margin-inline: auto; width: var(--w); transition: opacity .5s; opacity: .25; }
.funnel div.on { opacity: 1; }
.funnel div::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(240,112,90,.55), rgba(160,140,246,.55)); z-index: -1; }
.funnel div b { font-family: var(--f-mono); font-size: 12px; }
@media (max-width: 980px) { .vizrow { grid-template-columns: 1fr; } }

/* ---------- flywheel ---------- */
.fly { padding-block: clamp(60px, 8vw, 110px); overflow: hidden; }
.fly-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px; align-items: center; min-height: 100vh; padding-block: 80px 20px; }
.fly-step { margin-top: 28px; display: flex; gap: 16px; align-items: flex-start; background: var(--bg2); border-radius: 20px; padding: 18px 20px; box-shadow: var(--shadow); min-height: 108px; }
.fs-n { font-family: var(--f-display); font-weight: 800; font-size: 44px; line-height: 1; background: var(--warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fly-step b { display: block; font-family: var(--f-display); font-size: 20px; line-height: 1.35; }
.fly-step span { color: var(--sub); font-size: 15px; }
.fly-ctrl { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.fly-ctrl button { border: 0; cursor: pointer; border-radius: 999px; padding: 9px 16px; background: var(--surface-solid); box-shadow: inset 0 0 0 1px var(--line2); font-size: 14px; }
.fly-dots { display: flex; gap: 6px; flex: 1; }
.fly-dots i { flex: 1; height: 4px; border-radius: 3px; background: var(--line2); transition: background .4s; }
.fly-dots i.on { background: var(--aurora); }
.fly-stage { position: relative; width: 100%; max-width: 680px; aspect-ratio: 1; margin: 0 auto; }
.fly-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fly-svg .arc { fill: none; stroke: url(#flyg); stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset .9s cubic-bezier(.6,0,.2,1); }
.fly-svg .arc-glow { fill: none; stroke: #A08CF6; stroke-width: 14; opacity: .12; stroke-linecap: round; transition: stroke-dashoffset .9s cubic-bezier(.6,0,.2,1); }
.fly-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 40%; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; background: radial-gradient(circle at 30% 20%, #2C3378, #111536 70%); color: #fff; box-shadow: 0 30px 70px rgba(20,20,70,.35), inset 0 1px 0 rgba(255,255,255,.2); padding: 14px; }
.fly-core b { font-family: var(--f-display); font-size: clamp(14px, 1.7vw, 20px); line-height: 1.3; }
.fly-core span { font-family: var(--f-mono); font-size: 11.5px; color: var(--on-night-sub); letter-spacing: .08em; }
.fly-core.spin::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid transparent; border-top-color: #F2C46A; border-right-color: rgba(160,140,246,.6); animation: swirl 2.4s linear infinite; }
.fnode { position: absolute; transform: translate(-50%, -50%) scale(.85); width: clamp(140px, 17vw, 196px); background: var(--bg2); border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow); text-align: center; opacity: .18; transition: opacity .6s, transform .6s cubic-bezier(.2,.9,.3,1.2), box-shadow .4s; }
.fnode.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.fnode.cur { box-shadow: 0 0 0 2px #A08CF6, var(--shadow); }
.fnode small { font-family: var(--f-mono); font-size: 11px; color: var(--coral); letter-spacing: .1em; }
.fnode b { display: block; font-size: 14px; line-height: 1.4; margin-top: 2px; }
.fnode span { display: block; font-size: 12px; color: var(--sub); line-height: 1.45; margin-top: 4px; }
@media (max-width: 960px) { .fly-grid { grid-template-columns: 1fr; min-height: 0; padding-block: 0; } .fnode { width: 128px; padding: 8px 9px; } .fnode span { display: none; } .fnode b { font-size: 12px; } }
@media (max-width: 480px) { .fnode { width: 104px; } .fnode b { font-size: 11px; } .fly-core { width: 44%; } }

/* ---------- DocLens gallery ---------- */
.dl-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 22px; }
.dl-tabs { display: grid; gap: 6px; align-content: start; }
.dl-tabs button { border: 0; cursor: pointer; text-align: left; border-radius: 14px; padding: 11px 14px; background: transparent; color: var(--on-night-sub); font-size: 15px; display: flex; gap: 10px; align-items: center; transition: background .3s, color .3s; }
.dl-tabs button .ix { font-family: var(--f-mono); font-size: 11px; opacity: .6; }
.dl-tabs button[aria-selected="true"] { background: rgba(255,255,255,.1); color: #fff; }
.dl-main { min-width: 0; display: grid; gap: 14px; }
.dl-stage { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 9; max-width: 100%; background: #0d1230; box-shadow: 0 40px 80px rgba(0,0,0,.4); }
.dl-layer { position: absolute; inset: 0; }
.dl-layer img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 6s ease-out; }
.dl-layer.show img { transform: scale(1); }
.dl-layer.enter { animation: wipeL 1s cubic-bezier(.7,0,.2,1) both; z-index: 2; }
@keyframes wipeL { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.dl-scan { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(90deg, transparent 0, rgba(110,139,255,.0) 40%, rgba(166,140,255,.35) 50%, rgba(110,139,255,0) 60%, transparent 100%); background-size: 260% 100%; animation: dlscan 4.5s linear infinite; mix-blend-mode: screen; }
@keyframes dlscan { from { background-position: 130% 0; } to { background-position: -130% 0; } }
.dl-tag { position: absolute; right: 14px; top: 14px; z-index: 4; }
.dl-live { position: absolute; inset: 0; }
.dl-cap { padding: 0 4px; }
.dl-cap b { display: block; color: #fff; font-family: var(--f-display); font-size: 18px; margin-bottom: 2px; }
.dl-cap span { font-size: 13.5px; color: var(--on-night-sub); }
.dl-cap em { display: inline-block; margin-top: 6px; font-style: normal; font-family: var(--f-mono); font-size: 11.5px; color: #7CF0C0; }
.dl-chain { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dl-chain span { font-size: 13px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--on-night-sub); transition: background .4s, color .4s; }
.dl-chain span.on { background: var(--warm); color: #fff; }
.dl-chain i { width: 14px; height: 1px; background: rgba(255,255,255,.25); }
@media (max-width: 900px) { .dl-wrap { grid-template-columns: 1fr; } .dl-tabs { display: flex; overflow-x: auto; } .dl-tabs button { white-space: nowrap; } }

/* ---------- industry inference chain ---------- */
.infer { margin-top: 22px; background: var(--night); color: var(--on-night); border-radius: 22px; padding: 18px; display: grid; grid-template-columns: 1.05fr 1.2fr 1.3fr 1fr 1fr; gap: 10px; position: relative; overflow: hidden; }
.infer::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 0% 0%, rgba(110,139,255,.18), transparent 60%), radial-gradient(50% 100% at 100% 100%, rgba(240,112,90,.16), transparent 60%); pointer-events: none; }
.istep { position: relative; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); border-radius: 14px; padding: 12px; min-width: 0; opacity: .2; transform: translateY(8px); transition: opacity .5s, transform .5s; }
.istep.on { opacity: 1; transform: none; }
.istep > small { display: flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; color: #F2C46A; text-transform: uppercase; margin-bottom: 8px; }
.istep > small i { font-style: normal; width: 18px; height: 18px; border-radius: 6px; background: rgba(242,196,106,.15); display: grid; place-items: center; font-size: 10px; }
.istep:not(:last-child)::after { content: ""; position: absolute; right: -9px; top: 50%; width: 8px; height: 8px; border-top: 2px solid rgba(255,255,255,.35); border-right: 2px solid rgba(255,255,255,.35); transform: translateY(-50%) rotate(45deg); z-index: 2; }
.obs { display: grid; gap: 8px; }
.obs img { width: 100%; height: 64px; object-fit: cover; border-radius: 10px; }
.obs span { font-size: 12px; color: var(--on-night-sub); line-height: 1.5; }
.obs b { display: block; font-family: var(--f-display); font-size: 22px; color: #fff; line-height: 1; }
.sig { display: grid; gap: 6px; }
.sig div { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; font-size: 12.5px; }
.sig div em { font-style: normal; font-family: var(--f-mono); font-size: 10.5px; color: var(--on-night-sub); grid-column: 1 / -1; }
.sig div b { font-weight: 700; grid-column: 1 / -1; }
.sig .meter { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.sig .meter i { display: block; height: 100%; width: 0; background: var(--aurora); transition: width 1s cubic-bezier(.2,.7,.2,1); }
.istep.on .sig .meter i { width: var(--m); }
.istep p { margin: 0; font-size: 13.5px; line-height: 1.55; color: #fff; }
.istep .conf { margin-top: 8px; font-family: var(--f-mono); font-size: 11px; color: #7CF0C0; }
.istep.opp { background: linear-gradient(135deg, rgba(240,112,90,.28), rgba(160,140,246,.22)); }
.istep.opp b.v { display: block; font-family: var(--f-display); font-size: 18px; margin-top: 6px; line-height: 1.3; }
@media (max-width: 1100px) { .infer { grid-template-columns: repeat(2, minmax(0, 1fr)); } .infer .istep:first-child { grid-column: 1 / -1; } .istep::after { display: none; } }
@media (max-width: 560px) { .infer { grid-template-columns: 1fr; } }
.ind-info { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .ind-info { grid-template-columns: 1fr; } }

/* ---------- ecosystem iso ---------- */
.eco { overflow: hidden; background: radial-gradient(60% 50% at 20% 40%, rgba(166,140,255,.14), transparent 70%), var(--bg); }
.eco-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.eco-stage { position: relative; display: grid; place-items: center; }
.eco-list li { cursor: pointer; opacity: .6; }
.eco-list li.on { opacity: 1; }
.eco-list li.me b { background: var(--warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.partner { margin-top: 40px; background: var(--night); color: var(--on-night); border-radius: 30px; padding: clamp(24px, 4vw, 44px); display: grid; gap: 22px; position: relative; overflow: hidden; }
.partner::before { content: ""; position: absolute; width: 480px; height: 480px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(166,140,255,.35), transparent); }
.pt-head h3 { font-size: clamp(24px, 3vw, 36px); color: #fff; }
.pt-head p { color: var(--on-night-sub); margin: 8px 0 0; }
.pt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; position: relative; }
.pt-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 16px; display: grid; gap: 4px; min-width: 0; transition: transform .4s, background .4s; }
.pt-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.1); }
.pt-card b { font-family: var(--f-display); font-size: 28px; background: var(--warm); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.pt-card em { font-style: normal; font-family: var(--f-mono); font-size: 11.5px; color: var(--on-night-sub); }
.pt-card span { font-weight: 700; font-size: 15px; }
.partner .btn { justify-self: start; position: relative; background: #fff; color: var(--night); }
.partner .btn .arrow { background: var(--warm); color: #fff; }
@media (max-width: 960px) { .eco-grid { grid-template-columns: 1fr; } .pt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- case logos: small, frameless wall ---------- */
.case-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; align-items: start; }
@media (max-width: 760px) { .case-groups { grid-template-columns: 1fr; } }
.cg { min-width: 0; display: grid; gap: 12px; align-content: start; }
.cg h4 { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.cg h4::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--aurora); }
/* theater black: neutral near-black stage with a soft overhead spotlight, silver marks */
.theater { background: radial-gradient(70% 60% at 50% 0%, rgba(255,255,255,.07), transparent 70%), #0B0B0D; color: #F2F3F5; }
.theater .lead { color: #9A9EA6; }
.theater .eyebrow { color: #C9CDD4; }
.theater .cg h4 { color: #E6E8EC; }
.theater .cg h4::before { background: linear-gradient(180deg, #F4F5F7, #A8AEB8); }
.cg .lg { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px 18px; }
.lgt { aspect-ratio: 5 / 2; display: grid; place-items: center; }
.lgt img { width: 100%; height: 100%; object-fit: contain; opacity: .9; transition: opacity .3s, transform .3s; }
.lgt:hover img { opacity: 1; transform: scale(1.04); }
.marquee .logo-tile { width: 190px; height: 76px; padding: 0; overflow: hidden; }
.marquee .logo-tile img { width: 100%; height: 100%; max-height: none; object-fit: contain; }

/* ---------- stills reel ---------- */
.st-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: -20px; }
.st-tabs button { border: 0; cursor: pointer; border-radius: 999px; padding: 9px 16px; background: rgba(255,255,255,.07); color: var(--on-night-sub); font-size: 14px; transition: background .3s, color .3s; }
.st-tabs button[aria-selected="true"] { background: #fff; color: var(--night); font-weight: 700; }
.st-reel { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 26px max(16px, calc((100vw - var(--wrap)) / 2 + 16px)) 30px; scrollbar-width: thin; }
.still { position: relative; flex-shrink: 0; height: clamp(260px, 34vw, 430px); border-radius: 20px; overflow: hidden; scroll-snap-align: center; background: #000; box-shadow: 0 30px 60px rgba(0,0,0,.45); animation: stillIn .8s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d); }
@keyframes stillIn { from { opacity: 0; transform: translateY(30px) scale(.97); } }
.still img { height: 100%; width: auto; max-width: none; object-fit: cover; filter: contrast(1.05) saturate(1.05); transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.still:hover img { transform: scale(1.06); }
.still::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 22%, transparent 60%, rgba(0,0,0,.78)), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='.22'/></svg>"); mix-blend-mode: normal; pointer-events: none; }
.still .scn { position: absolute; left: 16px; top: 14px; z-index: 2; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: rgba(255,255,255,.85); display: flex; gap: 10px; align-items: center; }
.still .scn i { width: 7px; height: 7px; border-radius: 9px; background: #EF5470; }
.still .cap { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; color: #fff; font-family: var(--f-display); font-weight: 700; font-size: clamp(15px, 1.5vw, 19px); line-height: 1.35; }
.ach { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.ach div { border-radius: 20px; padding: 20px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); min-width: 0; }
.ach b { display: block; font-family: var(--f-display); font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; background: var(--aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ach span { color: var(--on-night-sub); font-size: 14.5px; }
.aw-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 22px; margin-top: 22px; align-items: start; }
.aw-logos { background: #EFDCC6; border-radius: 22px; padding: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; align-items: center; justify-items: center; }
.aw-logos img { max-height: 54px; width: auto; max-width: 100%; object-fit: contain; }
.aw-list h3 { color: #fff; margin-bottom: 10px; }
.aw-list ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; counter-reset: aw; }
.aw-list li { counter-increment: aw; display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: 14.5px; color: var(--on-night); line-height: 1.55; }
.aw-list li::before { content: counter(aw, decimal-leading-zero); font-family: var(--f-mono); font-size: 12px; color: #F2C46A; padding-top: 2px; }
.aw-list li.hide { display: none; }
.aw-more { margin-top: 10px; border: 0; background: rgba(255,255,255,.1); color: #fff; border-radius: 999px; padding: 8px 16px; cursor: pointer; }
@media (max-width: 960px) { .ach { grid-template-columns: repeat(2, minmax(0, 1fr)); } .aw-wrap { grid-template-columns: 1fr; } }

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

/* ---------- Theater frame: animated aurora rim, spotlight glow, floor shadow, vignette ---------- */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes rim { to { --ang: 360deg; } }
.theater { box-shadow: 0 50px 90px -40px rgba(160,140,246,.55), 0 30px 70px -30px rgba(240,112,90,.35), 0 18px 40px rgba(6,8,24,.28) !important; }
.th-ring { position: absolute; inset: 0; z-index: 6; pointer-events: none; border-radius: inherit; padding: 1.5px; background: conic-gradient(from var(--ang), rgba(242,196,106,.95), rgba(240,112,90,.7), rgba(160,140,246,.95), rgba(110,139,255,.6), rgba(242,196,106,.95)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: rim 9s linear infinite; }
.th-vig { position: absolute; inset: 0; z-index: 5; pointer-events: none; border-radius: inherit; background: radial-gradient(130% 95% at 50% 38%, transparent 62%, rgba(6,8,22,.32) 100%), linear-gradient(180deg, rgba(255,236,200,.10), transparent 22%); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
@media (prefers-reduced-motion: reduce) { .th-ring { animation: none; } }

/* ---------- AI clone showcase ---------- */
.clones { position: relative; overflow: hidden; }
.clones::before { content: ""; position: absolute; left: 50%; top: -10%; width: 1100px; height: 900px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(242,196,106,.20), rgba(160,140,246,.12) 45%, transparent 75%); pointer-events: none; }
.clones .wrap { position: relative; }
.cl-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 6px 0 26px; }
.cl-tabs button { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: var(--on-night-sub); border-radius: 999px; padding: 9px 18px; font-size: 15px; cursor: pointer; transition: background .3s, color .3s, box-shadow .3s; }
.cl-tabs button[aria-selected="true"] { background: linear-gradient(135deg, rgba(242,196,106,.22), rgba(160,140,246,.22)); color: #fff; box-shadow: 0 0 0 1px rgba(242,196,106,.55), 0 10px 30px rgba(160,140,246,.25); }
.cl-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.cl-stage { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 1840 / 1384; background: #0b0f26; }
.cl-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #0b0f26 center / cover no-repeat; transition: opacity .5s; pointer-events: none; }
.cl-stage video.swap { opacity: .25; }
.cl-vig { position: absolute; inset: 0; z-index: 4; pointer-events: none; background: radial-gradient(120% 90% at 50% 30%, transparent 55%, rgba(4,6,18,.55)), linear-gradient(180deg, rgba(4,6,18,.35), transparent 18%, transparent 78%, rgba(4,6,18,.5)); }
.cl-corner { position: absolute; z-index: 7; width: 26px; height: 26px; border: 2px solid rgba(242,196,106,.85); pointer-events: none; }
.cl-corner.tl { left: 14px; top: 14px; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
.cl-corner.tr { right: 14px; top: 14px; border-left: 0; border-bottom: 0; border-top-right-radius: 10px; }
.cl-corner.bl { left: 14px; bottom: 14px; border-right: 0; border-top: 0; border-bottom-left-radius: 10px; }
.cl-corner.br { right: 14px; bottom: 14px; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; }
.cl-live { position: absolute; left: 22px; top: 22px; z-index: 8; color: #fff; font-size: 12.5px; }
.cl-styles { position: absolute; left: 22px; bottom: 22px; z-index: 8; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(6,8,22,.55); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.cl-styles:empty { display: none; }
.cl-styles button { border: 0; background: transparent; color: rgba(255,255,255,.75); border-radius: 999px; padding: 6px 14px; font-size: 13px; cursor: pointer; }
.cl-styles button[aria-pressed="true"] { background: #fff; color: var(--night); }
.cl-sound { position: absolute; right: 22px; bottom: 22px; z-index: 8; width: 42px; height: 42px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(6,8,22,.55); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 0; }
.cl-sound .on { display: none; } .cl-sound.unmuted .on { display: inline; } .cl-sound.unmuted .off { display: none; }
.cl-side { display: grid; gap: 14px; }
.cl-roles { display: grid; gap: 10px; }
.cl-role { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; text-align: left; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: var(--on-night); border-radius: 18px; padding: 8px 14px 8px 8px; cursor: pointer; transition: border-color .3s, background .3s, transform .3s; font: inherit; }
.cl-role img { width: 92px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.cl-role b { display: block; font-size: 16.5px; }
.cl-role small { color: var(--on-night-sub); font-size: 13px; }
.cl-role:hover { transform: translateX(3px); border-color: rgba(255,255,255,.25); }
.cl-role[aria-pressed="true"] { border-color: rgba(242,196,106,.7); background: linear-gradient(135deg, rgba(242,196,106,.12), rgba(160,140,246,.10)); box-shadow: 0 14px 34px rgba(0,0,0,.25); }
.cl-info { border-radius: 20px; padding: 18px 20px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: var(--on-night-sub); font-size: 15px; }
.cl-info b { display: block; color: #fff; font-family: var(--f-display); font-size: 20px; margin-bottom: 6px; }
.cl-info ul { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.cl-info li { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--on-night); }
@media (max-width: 900px) { .cl-grid { grid-template-columns: 1fr; } .cl-roles { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
@media (max-width: 560px) { .cl-tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; } .cl-tabs button { white-space: nowrap; } .cl-corner { display: none; } }

/* ---------- Industries: make scene switching obvious ---------- */
.ind-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.sw-hint { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--sub); }
.sw-hint svg { color: var(--coral); animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }
.sw-nav { display: inline-flex; align-items: center; gap: 6px; }
.sw-nav b { font-family: var(--f-mono); font-size: 13px; color: var(--sub); min-width: 46px; text-align: center; }
.sw-nav button { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line2); background: var(--surface); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; transition: background .2s, color .2s; }
.sw-nav button:hover { background: var(--night); color: #fff; }
.ind-thumbs button { position: relative; opacity: .78 !important; }
.ind-thumbs button:hover { opacity: 1 !important; transform: translateY(-3px); }
.ind-thumbs button[aria-pressed="true"] { opacity: 1 !important; }
.ind-thumbs button .tn { position: absolute; left: 6px; top: 6px; font-family: var(--f-mono); font-size: 11px; color: #fff; background: rgba(6,8,22,.65); border-radius: 6px; padding: 1px 6px; }
.ind-arrow { position: absolute; top: 50%; z-index: 7; width: 46px; height: 46px; margin-top: -23px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(6,8,22,.45); color: #fff; font-size: 26px; line-height: 1; padding: 0 0 4px; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s, transform .2s; }
.ind-arrow:hover { background: rgba(6,8,22,.75); transform: scale(1.06); }
.ind-arrow.prev { left: 14px; } .ind-arrow.next { right: 14px; }
/* tabs on top, inference chain beside the stage so it updates in view */
.ind-wrap > .infer { margin-top: 0; }
@media (min-width: 961px) {
  .ind-wrap { grid-template-columns: 1fr; gap: 18px; }
  .ind-tabs { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .ind-bar { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .ind-thumbs { flex-wrap: nowrap; justify-content: flex-end; }
  .ind-thumbs button { width: 96px; }
  .ind-tabs button { padding: 10px 12px; font-size: 14px; }
  .ind-tabs button .ix { width: auto; }
}
@media (min-width: 1280px) {
  .ind-tabs { flex-wrap: nowrap; }
  .ind-tabs button { white-space: nowrap; }
}
@media (min-width: 1101px) {
  .ind-wrap { grid-template-columns: minmax(0, 1fr) 340px; gap: 18px 22px; }
  .ind-bar { grid-column: 1 / -1; }
  .ind-wrap > .infer { grid-template-columns: 1fr; align-content: start; align-self: stretch; padding: 14px 14px 28px; gap: 12px; }
  .ind-wrap > .infer .istep { padding: 10px 12px; }
  .ind-wrap > .infer .istep > small { margin-bottom: 6px; }
  .ind-wrap > .infer .istep:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -10px; transform: translateX(-50%) rotate(135deg); }
  .ind-wrap > .infer .obs { grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 10px; }
  .ind-wrap > .infer .obs img { height: 58px; }
  .ind-wrap > .infer .sig { gap: 5px; }
  .ind-wrap > .infer .sig div { font-size: 12px; }
  .ind-wrap > .infer .istep p { font-size: 13px; }
  .ind-wrap > .infer .istep .conf { margin-top: 4px; }
  .ind-wrap > .infer .istep.opp b.v { margin-top: 2px; }
}

/* ---------- Supply-chain pyramid ---------- */
.eco-pyr { width: 100%; height: auto; max-height: 720px; overflow: visible; color: var(--ink); }
.eco-pyr .lyr { cursor: pointer; transition: opacity .45s, transform .6s cubic-bezier(.2,.7,.2,1); transform-box: view-box; }
.eco-pyr .lyr.dim { opacity: .62; }
.eco-pyr .lyr.on { transform: translateY(-10px); }
.eco-pyr .lbl { font-family: var(--f-display); font-size: 17px; font-weight: 700; fill: currentColor; }
.eco-pyr .lbl-n { font-family: var(--f-mono); font-size: 12px; fill: var(--faint); }
.eco-pyr .lbl-r { font-size: 12.5px; fill: var(--sub); }
.eco-pyr .chip text { font-family: var(--f-mono); font-size: 12px; font-weight: 600; }
.eco-pyr .flow { fill: none; stroke: var(--line2); stroke-width: 1.2; stroke-dasharray: 3 5; }
.eco-pyr .axis text { font-family: var(--f-mono); font-size: 12px; fill: var(--sub); letter-spacing: .08em; }
