/* Dashboard Studio: its own world. Midnight navy on a faint graph-paper grid, brass for the
   signal and four data colors (teal, sky, coral, violet) picked to stay apart for colorblind eyes.
   Instrument Serif for display, Geist for reading, Geist Mono with tabular figures for numbers.
   Glass panels with a brass hairline. Motion is transform and opacity; calm mode stops it all. */
body.world-dash {
  --ink: #06090f; --night: #0a0f18; --plate: #0f1622; --plate-2: #152030;
  --line: rgba(220, 230, 245, .09); --line-2: rgba(220, 230, 245, .18);
  --paper: #eef1f6; --dim: #9aa6b8; --mute: #637083; --ivory: #f4efe4;
  --brass: #e0b45e; --brass-hi: #f5d899; --brass-lo: #9c7634;
  --d1: #e0b45e; --d2: #3fd6c3; --d3: #5aa2ff; --d4: #ff7a59; --d5: #a98bff;
  --up: #3ddc97; --down: #ff6170;
  --accent: var(--brass); --accent-hi: var(--brass-hi);
  --radius: 16px;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(220, 230, 245, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 230, 245, .028) 1px, transparent 1px);
  background-size: 48px 48px;
}
.world-dash .grain { display: none; }
.world-dash ::selection { background: var(--brass); color: var(--ink); }
.world-dash .brand, .world-dash .nav, .world-dash .menu-btn { background: rgba(6, 9, 15, .72); border-color: var(--line-2); }
.world-dash .site-foot { background: var(--night); }
.world-dash em { color: var(--brass-hi); }
.num, .world-dash b, .odo { font-variant-numeric: tabular-nums; }

/* ---------- Shared bits ---------- */
.dk { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 10px; border: 1px solid var(--line-2); border-radius: 999px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--paper); background: rgba(10, 15, 24, .7); }
.dk::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); animation: d-ping 2s ease-out infinite; }
@keyframes d-ping { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, .55); } 80%, 100% { box-shadow: 0 0 0 8px rgba(61, 220, 151, 0); } }
.db-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 14px; cursor: pointer;
  font: 600 16px/1 var(--sans); color: #1a1205; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--brass-hi), var(--brass) 55%, #c8953f);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 2px 0 var(--brass-lo), 0 14px 34px -14px rgba(224, 180, 94, .8);
  transition: transform .25s var(--ease-out), box-shadow .25s; }
.db-btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); transform: translateX(-120%); transition: transform .7s var(--ease-out); }
.db-btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 3px 0 var(--brass-lo), 0 22px 44px -14px rgba(224, 180, 94, .95); }
.db-btn:hover::after { transform: translateX(120%); }
.db-btn:active { transform: translateY(1px); }
.db-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(10, 15, 24, .5);
  cursor: pointer; color: var(--paper); font: 500 16px/1 var(--sans); transition: border-color .2s, background .2s, transform .2s; }
.db-ghost:hover { border-color: rgba(224, 180, 94, .6); background: rgba(224, 180, 94, .06); }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font: 600 12px/1.2 var(--mono); letter-spacing: 0; white-space: nowrap;
  color: var(--dim); background: rgba(220, 230, 245, .08); }
.chip.up { color: var(--up); background: rgba(61, 220, 151, .12); }
.chip.down { color: var(--down); background: rgba(255, 97, 112, .12); }
.ldot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 10px var(--up); animation: d-blink 1.6s ease-in-out infinite; vertical-align: middle; }
@keyframes d-blink { 50% { opacity: .35; } }

.d-pad { padding-block: clamp(84px, 11vw, 150px); position: relative; }
.d-tint { background-color: rgba(10, 15, 24, .82); }
.world-dash .fft-p { padding-block: clamp(56px, 7vw, 96px); scroll-margin-top: 150px; }
.d-wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.d-head { max-width: 880px; margin: 0 0 clamp(28px, 4vw, 48px); display: grid; justify-items: start; }
.d-h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5.6vw, 76px); line-height: 1; letter-spacing: -.03em; margin: 20px 0 16px; }
.d-h2 em { font-style: italic; }
.d-h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.04; letter-spacing: -.02em; margin: 16px 0 12px; }
.d-lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--dim); max-width: 60ch; margin: 0; line-height: 1.55; }
.d-note { font-size: 13px; color: var(--mute); margin: 14px 0 0; }
.d-tap { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 12px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-hi); }
.d-tapdot { width: 7px; height: 7px; border-radius: 50%; background: var(--brass); animation: d-ping-b 1.6s ease-out infinite; }
@keyframes d-ping-b { 0% { box-shadow: 0 0 0 0 rgba(224, 180, 94, .7); } 80%, 100% { box-shadow: 0 0 0 9px rgba(224, 180, 94, 0); } }
.d-tap.tapped { opacity: 0; transition: opacity .4s; }

/* Glass panel used across the page */
.glass { background: linear-gradient(180deg, rgba(21, 32, 48, .78), rgba(12, 18, 28, .82)); border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 30px 60px -30px rgba(0, 0, 0, .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

/* ---------- Hero ---------- */
.dh { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate; padding: clamp(110px, 14vh, 150px) 0 clamp(70px, 10vh, 110px); }
.dh-field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.dh-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 55% at 72% 46%, rgba(224, 180, 94, .16), transparent 70%), radial-gradient(40% 40% at 88% 80%, rgba(63, 214, 195, .12), transparent 70%), radial-gradient(50% 50% at 10% 10%, rgba(90, 162, 255, .08), transparent 70%),
    linear-gradient(180deg, transparent 70%, var(--ink)); }
.dh-in { width: min(1320px, 100% - 2 * var(--gutter)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.dh-copy { position: relative; z-index: 2; }
.dh-title { font-family: var(--serif); font-size: clamp(56px, 8.4vw, 132px); line-height: .9; letter-spacing: -.04em; margin: 22px 0 22px; }
.dh-title > span { display: block; }
.dh-l2 { position: relative; display: inline-block !important; }
.dh-title em { font-style: italic; color: transparent; background: linear-gradient(100deg, var(--brass-hi) 10%, var(--brass) 45%, #fff3d6 55%, var(--brass) 70%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text;
  animation: d-sheen 6s ease-in-out infinite; padding-right: .06em; }
@keyframes d-sheen { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.dh-pulse { position: absolute; right: -.32em; top: .2em; width: .16em; height: .16em; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 rgba(61, 220, 151, .7), 0 0 24px var(--up); animation: d-ping-big 1.8s ease-out infinite; }
@keyframes d-ping-big { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, .6), 0 0 24px var(--up); } 80%, 100% { box-shadow: 0 0 0 .5em rgba(61, 220, 151, 0), 0 0 24px var(--up); } }
.dh-sub { font-size: clamp(17px, 1.5vw, 20px); color: var(--dim); max-width: 48ch; margin: 0 0 30px; }
.dh-acts { display: flex; flex-wrap: wrap; gap: 12px; }
.dh-proof { list-style: none; display: flex; gap: clamp(18px, 3vw, 40px); padding: 26px 0 0; margin: 30px 0 0; border-top: 1px solid var(--line); }
.dh-proof li { display: grid; gap: 4px; }
.dh-proof b { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.6vw, 36px); line-height: 1; color: var(--paper); }
.dh-proof span { font: 500 11px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.dh-copy > * { animation: d-up .9s var(--ease-out) both; }
.dh-copy > :nth-child(2) { animation-delay: .08s; } .dh-copy > :nth-child(3) { animation-delay: .16s; } .dh-copy > :nth-child(4) { animation-delay: .24s; } .dh-copy > :nth-child(5) { animation-delay: .32s; }
@keyframes d-up { from { opacity: 0; transform: translateY(26px); } }

.dh-stage { position: relative; container-type: inline-size; perspective: 1700px; perspective-origin: 50% 30%; }
.dh-deck { --rx: 16deg; --ry: -18deg; --rz: 4deg; --s: 1; position: relative; width: 100%; aspect-ratio: 1 / .82; transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz)) scale(var(--s)); transition: transform .9s var(--ease-out); }
.dh-floor { position: absolute; left: 6%; right: 6%; bottom: -6%; height: 22%; border-radius: 50%; background: radial-gradient(closest-side, rgba(224, 180, 94, .28), transparent); filter: blur(18px); z-index: -1; }
.dp { position: absolute; padding: 2.4cqw 2.6cqw; border-radius: 2.4cqw; color: var(--paper); transform-style: preserve-3d;
  background: linear-gradient(180deg, rgba(25, 37, 56, .86), rgba(11, 17, 27, .9)); border: 1px solid rgba(220, 230, 245, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 4cqw 8cqw -3cqw rgba(0, 0, 0, .85), 0 0 0 1px rgba(0, 0, 0, .3);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transform: translateZ(var(--z, 0px)); animation: dp-in 1.1s var(--ease-out) both; animation-delay: var(--ad, 0s); }
@keyframes dp-in { from { opacity: 0; transform: translateZ(calc(var(--z, 0px) + 260px)) translateY(40px) rotateX(-12deg); } }
.dp::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1px;
  background: linear-gradient(140deg, rgba(245, 216, 153, .55), transparent 30%, transparent 70%, rgba(63, 214, 195, .35)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.dp-lab { display: block; font: 500 1.55cqw/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.dp-main { left: 4%; top: 6%; width: 64%; height: 58%; --z: 0px; display: flex; flex-direction: column; }
.dp-top { display: flex; align-items: center; gap: 1.6cqw; font: 500 1.6cqw/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.dp-live { display: inline-flex; align-items: center; gap: .8cqw; color: var(--up); padding: .6cqw 1.1cqw; border-radius: 99px; background: rgba(61, 220, 151, .1); }
.dp-live i { width: 1cqw; height: 1cqw; border-radius: 50%; background: var(--up); box-shadow: 0 0 1.4cqw var(--up); animation: d-blink 1.4s infinite; }
.dp-time { margin-left: auto; }
.dp-big { display: flex; align-items: baseline; gap: 1.6cqw; margin: 1.6cqw 0 .6cqw; }
.dp-big b { font: 400 7.4cqw/1 var(--serif); letter-spacing: -.02em; }
.dp-big .chip { font-size: 1.6cqw; padding: .5cqw 1cqw; }
.dp-chart { flex: 1; min-height: 0; position: relative; }
.dp-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dp-axis { display: flex; justify-content: space-between; font: 500 1.3cqw/1 var(--mono); color: var(--mute); padding-top: .8cqw; }
.dp-k1 { right: 3%; top: 2%; width: 27%; height: 25%; --z: 90px; --ad: .25s; display: flex; flex-direction: column; }
.dp-k1 b, .dp-k2 b { font: 400 5cqw/1.05 var(--serif); margin-top: 1cqw; }
.dp-spark { flex: 1; position: relative; margin-top: .6cqw; }
.dp-spark svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dp-k2 { right: 0; top: 31%; width: 27%; height: 31%; --z: 140px; --ad: .4s; }
.dp-ring { position: relative; width: 62%; aspect-ratio: 1; margin: 1.4cqw auto 0; }
.dp-ring svg, .nring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.r-bg { fill: none; stroke: rgba(220, 230, 245, .1); stroke-width: 10; }
.r-fg { fill: none; stroke: var(--brass); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 1.4s var(--ease-out); filter: drop-shadow(0 0 6px rgba(224, 180, 94, .6)); }
.dp-ring b { position: absolute; inset: 0; display: grid; place-items: center; margin: 0 !important; font-size: 3.6cqw !important; }
.dp-bars { left: 0; bottom: 3%; width: 34%; height: 30%; --z: 70px; --ad: .55s; display: flex; flex-direction: column; }
.dp-hbars { flex: 1; display: flex; align-items: flex-end; gap: .8cqw; margin-top: 1.4cqw; }
.dp-hbars i { flex: 1; border-radius: .6cqw .6cqw .2cqw .2cqw; background: linear-gradient(180deg, var(--d2), rgba(63, 214, 195, .25)); height: var(--h, 10%); transition: height .9s var(--ease-out); box-shadow: 0 0 1.6cqw -0.4cqw var(--d2); }
.dp-hbars i.hi { background: linear-gradient(180deg, var(--brass-hi), rgba(224, 180, 94, .3)); box-shadow: 0 0 2cqw -0.2cqw var(--brass); }
.dp-radar { left: 37%; bottom: 0; width: 25%; height: 33%; --z: 170px; --ad: .7s; }
.radar { position: relative; width: 72%; aspect-ratio: 1; margin: 1.2cqw auto 0; border-radius: 50%; background: radial-gradient(circle, rgba(63, 214, 195, .12), rgba(63, 214, 195, .02) 70%); border: 1px solid rgba(63, 214, 195, .35); overflow: hidden; }
.radar .ring { position: absolute; border-radius: 50%; border: 1px solid rgba(63, 214, 195, .2); }
.radar .r1 { inset: 18%; } .radar .r2 { inset: 36%; }
.radar .sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(63, 214, 195, .55), rgba(63, 214, 195, 0) 22%, transparent); animation: d-spin 3.2s linear infinite; }
@keyframes d-spin { to { transform: rotate(360deg); } }
.radar .blip { position: absolute; width: 8%; aspect-ratio: 1; border-radius: 50%; background: var(--brass-hi); box-shadow: 0 0 1.6cqw var(--brass); animation: d-blip 3.2s ease-out infinite; }
.radar .b1 { left: 62%; top: 22%; animation-delay: .25s; } .radar .b2 { left: 70%; top: 62%; animation-delay: 1.1s; } .radar .b3 { left: 24%; top: 66%; animation-delay: 2s; } .radar .b4 { left: 30%; top: 28%; animation-delay: 2.7s; }
@keyframes d-blip { 0% { opacity: 1; transform: scale(1.4); } 60%, 100% { opacity: .25; transform: scale(.8); } }
.dp-donut { right: 2%; bottom: 2%; width: 33%; height: 34%; --z: 60px; --ad: .85s; display: flex; flex-direction: column; }
.dp-dn { flex: 1; position: relative; }
.dp-dn svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dp-toast { left: 30%; top: -4%; display: flex; align-items: center; gap: 1.4cqw; padding: 1.4cqw 2.2cqw 1.4cqw 1.6cqw; border-radius: 99px; --z: 230px; --ad: 1.4s;
  background: linear-gradient(180deg, rgba(36, 50, 72, .95), rgba(16, 24, 36, .95)); border-color: rgba(61, 220, 151, .5); box-shadow: 0 3cqw 6cqw -2cqw rgba(0, 0, 0, .9), 0 0 4cqw -1cqw rgba(61, 220, 151, .6); }
.dp-toast .tdot { width: 3.4cqw; height: 3.4cqw; border-radius: 50%; display: grid; place-items: center; background: rgba(61, 220, 151, .16); position: relative; flex: none; }
.dp-toast .tdot::after { content: ""; width: 1.2cqw; height: 1.2cqw; border-radius: 50%; background: var(--up); box-shadow: 0 0 1.4cqw var(--up); }
.dp-toast span { display: grid; gap: .4cqw; }
.dp-toast b { font: 600 1.9cqw/1 var(--sans); }
.dp-toast em { font: 500 1.6cqw/1 var(--mono); color: var(--dim); font-style: normal; }
.dp-toast.pop { animation: dp-pop .7s var(--ease-out) both; }
@keyframes dp-pop { 0% { opacity: 0; transform: translateZ(var(--z)) translateY(-30px) scale(.8); } 100% { opacity: 1; transform: translateZ(var(--z)); } }
.dh-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; font: 500 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.dh-cue i { width: 1px; height: 34px; background: linear-gradient(var(--brass), transparent); animation: d-cue 2s ease-in-out infinite; transform-origin: top; }
@keyframes d-cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Chart primitives (SVG) */
.ln { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ln.glow { filter: drop-shadow(0 0 6px currentColor); }
.ln.dash { stroke-dasharray: 5 6; opacity: .55; }
.ar { stroke: none; }
.gl { stroke: rgba(220, 230, 245, .07); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ax { fill: var(--mute); font: 500 11px/1 var(--mono); }
.tipline { stroke: rgba(220, 230, 245, .35); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.tipdot { stroke: var(--ink); stroke-width: 2.5; }
.ctip { position: absolute; z-index: 5; pointer-events: none; min-width: 120px; padding: 10px 12px; border-radius: 12px; font: 500 12px/1.35 var(--sans); color: var(--paper);
  background: rgba(8, 12, 20, .94); border: 1px solid var(--line-2); box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .9); transform: translate(-50%, calc(-100% - 14px)); opacity: 0; transition: opacity .15s; white-space: nowrap; }
.ctip.on { opacity: 1; }
.ctip small { display: block; font: 500 10.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.ctip div { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.ctip div i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.ctip div span { flex: 1; color: var(--dim); }
.ctip div b { font-family: var(--mono); font-weight: 500; }

/* ---------- Ticker ---------- */
.dtick { position: relative; z-index: 3; overflow: hidden; border-block: 1px solid var(--line); background: rgba(10, 15, 24, .9); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.dtick-row { display: flex; width: max-content; animation: d-tick 46s linear infinite; }
.dtick-row span { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; font: 500 13px/1 var(--mono); color: var(--dim); white-space: nowrap; border-right: 1px solid var(--line); }
.dtick-row span b { color: var(--paper); font-weight: 500; }
.dtick-row span .u { color: var(--up); } .dtick-row span .d { color: var(--down); }
@keyframes d-tick { to { transform: translateX(-50%); } }

/* ---------- Tabs, in this world's colors ---------- */
.world-dash .fft-hint { color: var(--brass-hi); background: rgba(6, 9, 15, .86); border-color: rgba(224, 180, 94, .35); font-family: var(--mono); font-weight: 500; }
.world-dash .fft-dot { background: var(--up); animation-name: d-ping; }
.world-dash .fft-bar { background: rgba(8, 12, 20, .9); border-color: rgba(224, 180, 94, .38); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8), 0 0 26px -8px rgba(224, 180, 94, .5); }
.world-dash .fft:not(.seen) .fft-bar { animation-name: d-breathe; }
@keyframes d-breathe { 0%, 100% { box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8), 0 0 18px -8px rgba(224, 180, 94, .35); } 50% { box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8), 0 0 34px -6px rgba(224, 180, 94, .7); } }
.world-dash .fft-t { color: var(--paper); font: 500 15px/1 var(--sans); padding: 11px 18px; border: 1px solid rgba(220, 230, 245, .14); background: rgba(220, 230, 245, .04); }
.world-dash .fft-t::after { background: linear-gradient(105deg, transparent 30%, rgba(245, 216, 153, .4) 50%, transparent 70%); }
.world-dash .fft-t:hover { border-color: rgba(224, 180, 94, .7); background: linear-gradient(180deg, rgba(224, 180, 94, .18), rgba(224, 180, 94, .05)); box-shadow: 0 0 20px -4px rgba(224, 180, 94, .6); }
.world-dash .fft-t[aria-selected="true"], .world-dash .fft-t.on { color: #1a1205; text-shadow: none; border-color: var(--brass-hi);
  background: linear-gradient(180deg, var(--brass-hi), var(--brass) 60%, #c8953f); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 2px 0 var(--brass-lo), 0 0 22px -4px rgba(224, 180, 94, .8); }
.world-dash .fft-t:focus-visible { outline-color: var(--brass-hi); }
.world-dash .fft.docked .fft-fab { color: #1a1205; border-color: var(--brass-hi); background: linear-gradient(180deg, var(--brass-hi), var(--brass) 60%, #c8953f); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), 0 3px 0 var(--brass-lo), 0 12px 30px -10px rgba(0, 0, 0, .7); }
.world-dash .fft-next a { background: linear-gradient(180deg, rgba(224, 180, 94, .12), rgba(224, 180, 94, .03)); border-color: rgba(224, 180, 94, .45); box-shadow: 0 0 30px -10px rgba(224, 180, 94, .6); }
.world-dash .fft-next a:hover { border-color: var(--brass-hi); box-shadow: 0 0 36px -6px rgba(224, 180, 94, .85); }
.world-dash .fft-next small { color: var(--brass-hi); font-family: var(--mono); font-weight: 500; }
.world-dash .fft-next b { font: 400 30px/1 var(--serif); letter-spacing: -.01em; }
.world-dash .fft-next i { color: #1a1205; background: linear-gradient(180deg, var(--brass-hi), var(--brass) 60%, #c8953f); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), 0 3px 0 var(--brass-lo); }

/* ---------- Segmented controls ---------- */
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 12px; background: rgba(220, 230, 245, .05); border: 1px solid var(--line-2); }
.seg button { border: 0; background: none; cursor: pointer; color: var(--dim); padding: 9px 14px; border-radius: 9px; font: 500 13.5px/1 var(--sans); transition: color .2s, background .25s, box-shadow .25s; }
.seg button:hover { color: var(--paper); }
.seg button[aria-pressed="true"] { color: #1a1205; background: linear-gradient(180deg, var(--brass-hi), var(--brass)); box-shadow: 0 6px 16px -8px rgba(224, 180, 94, .9); }

/* ---------- Live demo ---------- */
.biz { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.biz-pick { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; row-gap: 3px; align-items: center; text-align: left; cursor: pointer;
  padding: 16px; border-radius: 16px; color: var(--paper); border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(21, 32, 48, .7), rgba(12, 18, 28, .7)); overflow: hidden;
  transition: transform .25s var(--ease-out), border-color .25s, box-shadow .25s; }
.biz-pick::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--a) 22%, transparent), transparent 60%); opacity: 0; transition: opacity .3s; }
.biz-pick:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--a) 60%, transparent); }
.biz-pick[aria-selected="true"] { border-color: var(--a); box-shadow: 0 0 0 1px var(--a), 0 18px 40px -20px var(--a); }
.biz-pick[aria-selected="true"]::before { opacity: 1; }
.biz-ic { grid-row: span 2; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--a) 16%, transparent); color: var(--a); position: relative; }
.biz-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.biz-pick b { font: 600 16px/1.2 var(--sans); position: relative; }
.biz-pick i { font-style: normal; font-size: 13px; color: var(--dim); position: relative; }
.dv-ctl { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.dv-ctl .seg-dev { margin-left: auto; }
.dv-frame { position: relative; margin-inline: auto; border-radius: 18px; border: 1px solid var(--line-2); background: #0b1018; overflow: hidden; width: 100%;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .5), 0 0 80px -30px rgba(224, 180, 94, .35); transition: width .6s var(--ease-out), border-radius .6s; }
.dv-frame[data-dev="phone"] { border-radius: 38px; border-width: 8px; border-color: #1c2432; }
.dv-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #101724; border-bottom: 1px solid var(--line); }
.dv-bar > i { width: 11px; height: 11px; border-radius: 50%; background: #2a3445; }
.dv-bar > i:first-child { background: #ff6170; } .dv-bar > i:nth-child(2) { background: #f2c14e; } .dv-bar > i:nth-child(3) { background: #3ddc97; }
.dv-url { margin: 0 auto; padding: 5px 16px; border-radius: 8px; background: rgba(220, 230, 245, .06); font: 500 12px/1 var(--mono); color: var(--dim); }
.dv-sec { display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1 var(--mono); color: var(--up); }
.dv-sec svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.dv-frame[data-dev="phone"] .dv-bar > i, .dv-frame[data-dev="phone"] .dv-sec { display: none; }

/* The demo app itself. Its colors are variables so the theme switch is one attribute. */
.db { --bg: #0b1019; --bg2: #0f1622; --card: #121b29; --card2: #172234; --ln: rgba(220, 230, 245, .08); --tx: #eef1f6; --tx2: #8d99ab; --tx3: #5f6b7d; --acc: var(--d1);
  display: grid; grid-template-columns: 210px minmax(0, 1fr); min-height: 640px; background: var(--bg); color: var(--tx); font-family: var(--sans); transition: background .5s, color .5s; }
.db[data-theme="day"] { --bg: #f2f0eb; --bg2: #e9e6df; --card: #ffffff; --card2: #f7f5f1; --ln: rgba(20, 30, 45, .09); --tx: #18202c; --tx2: #5d6776; --tx3: #8b93a0; }
.db-side { padding: 18px 14px; background: var(--bg2); border-right: 1px solid var(--ln); display: flex; flex-direction: column; gap: 22px; transition: background .5s; }
.db-logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.db-logo i { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-style: normal; font-family: var(--serif); font-size: 20px; color: #1a1205; background: var(--acc); transition: background .5s; }
.db-nav { display: grid; gap: 4px; }
.db-nav span { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 14px; color: var(--tx2); }
.db-nav span.on { color: var(--tx); background: color-mix(in srgb, var(--acc) 14%, transparent); box-shadow: inset 2px 0 0 var(--acc); }
.db-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.db-side-card { margin-top: auto; padding: 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--ln); display: grid; gap: 4px; font-size: 13px; }
.db-side-card span { color: var(--tx2); font-size: 12px; }
.db-main { padding: 20px 22px 22px; min-width: 0; }
.db-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.db-title { font: 400 30px/1 var(--serif); letter-spacing: -.01em; margin-bottom: 6px; }
.db-sub { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); color: var(--tx2); }
.db-head-r { display: flex; align-items: center; gap: 10px; }
.db-pill { padding: 7px 12px; border-radius: 99px; border: 1px solid var(--ln); font: 500 12px/1 var(--mono); color: var(--tx2); background: var(--card); white-space: nowrap; }
.db-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 600 11px/1 var(--mono); color: var(--tx); background: var(--card2); border: 1px solid var(--ln); }
.db-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.kp { position: relative; padding: 14px 14px 10px; border-radius: 14px; background: var(--card); border: 1px solid var(--ln); overflow: hidden; transition: background .5s, transform .25s var(--ease-out), border-color .25s; }
.kp:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.kp::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--c); opacity: .9; transform-origin: left; animation: kp-line .9s var(--ease-out) both; }
@keyframes kp-line { from { transform: scaleX(0); } }
.kp span { display: block; font-size: 12.5px; color: var(--tx2); }
.kp b { display: block; font: 500 25px/1.1 var(--mono); letter-spacing: -.02em; margin: 6px 0 4px; }
.kp .row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.kp .chip { font-size: 11px; }
.kp .sp { height: 34px; position: relative; margin-top: 6px; }
.kp .sp svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.db[data-theme="day"] .chip { background: rgba(20, 30, 45, .06); }
.db[data-theme="day"] .chip.up { color: #11935c; background: rgba(17, 147, 92, .1); }
.db[data-theme="day"] .chip.down { color: #d33044; background: rgba(211, 48, 68, .1); }
.db-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.db-card { position: relative; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--ln); min-width: 0; transition: background .5s; }
.db-c-main { grid-column: span 8; }
.db-c-donut { grid-column: span 4; }
.db-c-bars { grid-column: span 5; }
.db-c-feed { grid-column: span 4; }
.db-c-goal { grid-column: span 3; }
.db-ch { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.db-ch b { font-size: 14px; font-weight: 600; }
.db-legend { display: flex; gap: 6px; flex-wrap: wrap; }
.db-legend button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 8px; border: 1px solid var(--ln); background: none; cursor: pointer; color: var(--tx2); font: 500 12px/1 var(--sans); transition: opacity .2s, color .2s; }
.db-legend button i { width: 10px; height: 3px; border-radius: 2px; background: var(--c); }
.db-legend button.dash i { background: repeating-linear-gradient(90deg, var(--c) 0 3px, transparent 3px 5px); }
.db-legend button[aria-pressed="false"] { opacity: .45; text-decoration: line-through; }
.db-chart { position: relative; height: 250px; }
.db-chart svg, .db-donut svg, .db-gauge svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.db .ax { fill: var(--tx3); }
.db .gl { stroke: var(--ln); }
.db .tipdot { stroke: var(--card); }
.db-donut { position: relative; height: 170px; }
.db-dlist { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.db-dlist li { display: flex; align-items: center; gap: 8px; padding: 3px 4px; border-radius: 6px; transition: background .2s; cursor: default; }
.db-dlist li.hot { background: var(--card2); }
.db-dlist i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.db-dlist span { flex: 1; color: var(--tx2); }
.db-dlist b { font: 500 12.5px/1 var(--mono); }
.db-sort { border: 1px solid var(--ln); background: none; color: var(--tx2); font: 500 12px/1 var(--sans); padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.db-sort:hover { color: var(--tx); }
.db-hbar { display: grid; gap: 9px; }
.hb { display: grid; grid-template-columns: 92px 1fr 64px; align-items: center; gap: 10px; font-size: 13px; transition: transform .6s var(--ease-out); }
.hb span { color: var(--tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb .tr { height: 10px; border-radius: 6px; background: var(--card2); overflow: hidden; }
.hb .tr i { display: block; height: 100%; border-radius: 6px; width: var(--w, 0%); background: linear-gradient(90deg, color-mix(in srgb, var(--c) 55%, transparent), var(--c)); transition: width 1s var(--ease-out); }
.hb b { font: 500 12.5px/1 var(--mono); text-align: right; }
.db-live { display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1 var(--mono); color: var(--tx2); }
.db-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 214px; overflow: hidden; }
.db-feed li { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid var(--ln); font-size: 13px; }

.db-feed .fi { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font: 600 11px/1 var(--mono); color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); }
.db-feed .fm { display: grid; gap: 3px; min-width: 0; }
.db-feed .fm b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-feed .fm span { font-size: 11.5px; color: var(--tx3); }
.db-feed .fv { font: 500 12.5px/1 var(--mono); text-align: right; display: grid; gap: 4px; justify-items: end; }
.db-feed .fv small { font: 500 10.5px/1 var(--sans); padding: 3px 6px; border-radius: 5px; color: var(--c2, var(--tx2)); background: color-mix(in srgb, var(--c2, #8d99ab) 14%, transparent); }
.db-gauge { position: relative; height: 176px; }
.db-gauge .gv { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; }
.db-gauge .gv b { display: block; font: 500 26px/1 var(--mono); }
.db-gauge .gv span { font-size: 12px; color: var(--tx2); }


/* Phone layout inside the frame, and on real phones */
.dv-frame[data-dev="phone"] .db, .db.narrow { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.dv-frame[data-dev="phone"] .db-side, .db.narrow .db-side { flex-direction: row; align-items: center; padding: 12px 14px; border-right: 0; border-bottom: 1px solid var(--ln); }
.dv-frame[data-dev="phone"] .db-nav, .dv-frame[data-dev="phone"] .db-side-card, .db.narrow .db-nav, .db.narrow .db-side-card { display: none; }
.dv-frame[data-dev="phone"] .db-main, .db.narrow .db-main { padding: 14px; }
.dv-frame[data-dev="phone"] .db-kpis, .db.narrow .db-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dv-frame[data-dev="phone"] .db-grid > *, .db.narrow .db-grid > * { grid-column: span 12; }
.dv-frame[data-dev="phone"] .db-head-r .db-av, .db.narrow .db-head-r .db-av { display: none; }
.dv-frame[data-dev="phone"] .db-chart, .db.narrow .db-chart { height: 210px; }
.dv-frame[data-dev="phone"] .kp b, .db.narrow .kp b { font-size: 21px; }
.db.mid .db-c-main { grid-column: span 12; } .db.mid .db-c-donut { grid-column: span 6; } .db.mid .db-c-bars { grid-column: span 6; } .db.mid .db-c-feed { grid-column: span 7; } .db.mid .db-c-goal { grid-column: span 5; }

/* ---------- Chart gallery ---------- */
.cg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cg-c { position: relative; margin: 0; padding: 16px 16px 12px; border-radius: 18px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(21, 32, 48, .7), rgba(10, 15, 24, .8)); min-width: 0;
  transition: transform .3s var(--ease-out), border-color .3s, box-shadow .3s; }
.cg-c:hover { transform: translateY(-4px); border-color: rgba(224, 180, 94, .5); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .9), 0 0 40px -20px rgba(224, 180, 94, .6); }
.cg-c figcaption { display: grid; gap: 3px; margin-bottom: 10px; }
.cg-c figcaption b { font: 400 24px/1 var(--serif); }
.cg-c figcaption span { font-size: 12.5px; color: var(--dim); }
.cg-v { position: relative; height: 170px; }
.cg-v svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cg-re { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(220, 230, 245, .04); color: var(--dim); cursor: pointer; font-size: 17px; line-height: 1;
  transition: color .2s, border-color .2s, transform .5s var(--ease-out); }
.cg-re:hover { color: var(--brass-hi); border-color: rgba(224, 180, 94, .6); transform: rotate(-180deg); }
.d-tip[hidden] { display: none; }
.hm rect { transition: opacity .2s, stroke .2s; }
.hm rect:hover { stroke: var(--paper); stroke-width: 1.5; }
.seg-hot { cursor: pointer; transition: opacity .25s, transform .3s var(--ease-out); transform-box: fill-box; transform-origin: center; }

/* ---------- Numbers ---------- */
.sim { padding: clamp(16px, 2.4vw, 26px); border-radius: 22px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(21, 32, 48, .55), rgba(10, 15, 24, .7)); }
.sim-ctl { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.sim-play { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px 0 14px; border-radius: 12px; border: 1px solid rgba(224, 180, 94, .6); background: rgba(224, 180, 94, .1); color: var(--brass-hi); cursor: pointer; font: 600 15px/1 var(--sans); }
.sim-play:hover { background: rgba(224, 180, 94, .18); }
.sp-i { width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.sim-play[aria-pressed="true"] .sp-i { width: 11px; height: 13px; border: 0; background: linear-gradient(90deg, currentColor 0 35%, transparent 35% 65%, currentColor 65%); }
.sim-scrub { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 14px; }
.sim-time { font: 500 15px/1 var(--mono); color: var(--paper); min-width: 76px; }
.sim-scrub input { flex: 1; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 6px; cursor: pointer;
  background: linear-gradient(90deg, var(--brass) var(--p, 0%), rgba(220, 230, 245, .12) var(--p, 0%)); }
.sim-scrub input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--brass-hi); border: 4px solid var(--ink); box-shadow: 0 0 0 1px var(--brass), 0 0 16px var(--brass); }
.sim-scrub input::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--brass-hi); border: 4px solid var(--ink); box-shadow: 0 0 0 1px var(--brass), 0 0 16px var(--brass); }
.sim-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.nt { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 210px; padding: 18px; border-radius: 16px; background: rgba(8, 12, 20, .7); border: 1px solid var(--line); overflow: hidden; transition: border-color .4s, box-shadow .4s; }
.nt-lab { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.nt-foot { margin-top: auto; font-size: 12px; color: var(--mute); }
.odo { display: flex; align-items: flex-end; height: 64px; font: 400 58px/64px var(--serif); color: var(--paper); overflow: hidden; }
.odo .dg { display: inline-block; height: 64px; overflow: hidden; }
.odo .dg span { display: block; transition: transform .9s var(--ease-out); }
.odo .dg span i { display: block; height: 64px; font-style: normal; text-align: center; }
.odo .sym { color: var(--brass-hi); }
.nring { position: relative; width: 132px; aspect-ratio: 1; align-self: center; }
.nring b { position: absolute; inset: 0; display: grid; place-items: center; font: 500 26px/1 var(--mono); }
.nring .r-fg { transition: stroke-dasharray .5s var(--ease-out), stroke .5s; }
.nring.hit .r-fg { stroke: var(--up); filter: drop-shadow(0 0 10px var(--up)); }
.nring.hit b { color: var(--up); }
.nd { display: flex; align-items: center; gap: 12px; }
.nd b { font: 400 54px/1 var(--serif); }
.nspark { position: relative; height: 56px; }
.nspark svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.nb { display: flex; align-items: baseline; gap: 10px; }
.nb b { font: 400 54px/1 var(--serif); transition: color .4s; }
.nb span { color: var(--dim); }
.nbar { position: relative; height: 10px; border-radius: 6px; background: rgba(220, 230, 245, .08); }
.nbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; width: var(--w, 100%); background: var(--d2); transition: width .5s var(--ease-out), background .4s; }
.nbar u { position: absolute; left: 25%; top: -5px; bottom: -5px; width: 2px; background: var(--paper); opacity: .5; }
.nt-alert.alarm { border-color: rgba(255, 97, 112, .7); box-shadow: 0 0 0 1px rgba(255, 97, 112, .4), 0 0 40px -10px rgba(255, 97, 112, .7); animation: d-alarm 1.2s ease-in-out infinite; }
.nt-alert.alarm .nb b { color: var(--down); }
.nt-alert.alarm .nbar i { background: var(--down); }
.nt-alert.alarm .nt-foot { color: var(--down); font-weight: 600; }
@keyframes d-alarm { 50% { box-shadow: 0 0 0 1px rgba(255, 97, 112, .15), 0 0 20px -10px rgba(255, 97, 112, .4); } }
.board { list-style: none; margin: 0; padding: 0; position: relative; height: 128px; }
.board li { position: absolute; left: 0; right: 0; height: 30px; display: grid; grid-template-columns: 22px 1fr 48px; align-items: center; gap: 10px; font-size: 14px;
  transform: translateY(calc(var(--r) * 32px)); transition: transform .6s var(--ease-out); }
.board li .rk { font: 500 12px/1 var(--mono); color: var(--mute); }
.board li .bn { position: relative; height: 26px; border-radius: 7px; overflow: hidden; background: rgba(220, 230, 245, .04); display: flex; align-items: center; padding-left: 10px; }
.board li .bn i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: color-mix(in srgb, var(--c) 30%, transparent); border-right: 2px solid var(--c); transition: width .6s var(--ease-out); }
.board li .bn span { position: relative; }
.board li b { font: 500 13px/1 var(--mono); text-align: right; }
.board li.lead .rk { color: var(--brass-hi); }
.bul { display: grid; gap: 14px; margin-top: 4px; }
.bul .br { display: grid; gap: 6px; font-size: 13px; color: var(--dim); }
.bul .br div { position: relative; height: 18px; border-radius: 4px; background: linear-gradient(90deg, rgba(220, 230, 245, .14) 0 50%, rgba(220, 230, 245, .09) 50% 80%, rgba(220, 230, 245, .05) 80%); }
.bul .br div i { position: absolute; left: 0; top: 5px; height: 8px; border-radius: 3px; width: var(--w); background: var(--c); transition: width .5s var(--ease-out); }
.bul .br div u { position: absolute; top: 1px; bottom: 1px; left: var(--t); width: 3px; background: var(--paper); border-radius: 2px; }

/* ---------- Motion ---------- */
.mo { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 18px; }
.mo-list { display: grid; gap: 8px; align-content: start; }
.mo-pick { display: grid; gap: 4px; text-align: left; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(220, 230, 245, .03); color: var(--paper); cursor: pointer; transition: border-color .25s, background .25s, transform .25s var(--ease-out); }
.mo-pick b { font: 600 15px/1.2 var(--sans); }
.mo-pick span { font-size: 13px; color: var(--dim); }
.mo-pick:hover { border-color: rgba(224, 180, 94, .45); transform: translateX(3px); }
.mo-pick[aria-selected="true"] { border-color: var(--brass); background: linear-gradient(90deg, rgba(224, 180, 94, .16), rgba(224, 180, 94, .02)); box-shadow: inset 3px 0 0 var(--brass); }
.mo-stage { position: relative; padding: 22px; border-radius: 20px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(21, 32, 48, .7), rgba(8, 12, 20, .85)); display: flex; flex-direction: column; min-height: 460px; }
.mo-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mo-k { display: block; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.mo-total { font: 400 clamp(40px, 5vw, 62px)/1 var(--serif); }
.mo-re { min-height: 42px; padding: 0 16px; font-size: 14px; }
.mo-chart { position: relative; flex: 1; min-height: 300px; margin-top: 16px; }
.mo-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mo-cap { margin: 10px 0 0; font-size: 14px; color: var(--dim); }
.mo-chart .bar { cursor: default; }
.mo-chart.drill .bar { cursor: zoom-in; }
.mo-chart.drilled .bar { cursor: zoom-out; }

/* ---------- Looks ---------- */
.lk { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.lk-pick { display: grid; gap: 4px; text-align: left; padding: 14px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(220, 230, 245, .03); color: var(--paper); cursor: pointer; transition: transform .25s var(--ease-out), border-color .25s; }
.lk-pick:hover { transform: translateY(-3px); border-color: rgba(224, 180, 94, .5); }
.lk-pick[aria-selected="true"] { border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass), 0 14px 30px -18px var(--brass); }
.lk-sw { display: flex; gap: 4px; margin-bottom: 6px; }
.lk-sw i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); }
.lk-pick b { font: 600 15px/1.2 var(--sans); }
.lk-pick > i { font-style: normal; font-size: 12.5px; color: var(--dim); }
.lk-stage { display: grid; justify-items: center; gap: 22px; padding: clamp(18px, 3vw, 36px); border-radius: 22px; border: 1px solid var(--line); background: radial-gradient(70% 60% at 50% 40%, rgba(224, 180, 94, .08), transparent 70%), rgba(8, 12, 20, .5); overflow: hidden; }
.lk-scene { position: relative; display: grid; justify-items: center; width: 100%; }
.lk-dev-f { position: relative; width: 100%; max-width: 940px; aspect-ratio: 16 / 9; padding: 14px; border-radius: 18px; background: #05070b; border: 1px solid #222a37; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .95), inset 0 0 0 2px #10151f;
  transition: max-width .7s var(--ease-out), aspect-ratio .7s var(--ease-out), border-radius .7s, padding .7s; }
.lk-stand { width: 160px; height: 40px; background: linear-gradient(180deg, #1a202b, #0b0e14); clip-path: polygon(38% 0, 62% 0, 70% 70%, 100% 72%, 100% 100%, 0 100%, 0 72%, 30% 70%); transition: opacity .4s; }
.lk-scene[data-d="laptop"] .lk-dev-f { max-width: 760px; aspect-ratio: 16 / 10; border-radius: 16px 16px 6px 6px; padding: 12px; }
.lk-scene[data-d="laptop"] .lk-stand { width: min(860px, 100%); height: 14px; border-radius: 0 0 14px 14px; clip-path: none; background: linear-gradient(180deg, #2a3242, #121722); }
.lk-scene[data-d="phone"] .lk-dev-f { max-width: 300px; aspect-ratio: 9 / 19; border-radius: 40px; padding: 10px; }
.lk-scene[data-d="phone"] .lk-stand { opacity: 0; height: 0; }
.mini { --bg: #0b1019; --card: #121b29; --tx: #eef1f6; --tx2: #8d99ab; --ln: rgba(220, 230, 245, .08); --c1: #e0b45e; --c2: #3fd6c3; --c3: #5aa2ff; --rad: 12px; --fd: var(--serif); --fn: var(--mono);
  width: 100%; height: 100%; border-radius: 8px; padding: clamp(10px, 2.2%, 22px); display: grid; grid-template-rows: auto auto 1fr auto; gap: clamp(8px, 1.6%, 16px); background: var(--bg); color: var(--tx); overflow: hidden;
  transition: background .6s, color .6s; container-type: inline-size; }
.lk-scene[data-d="phone"] .mini { border-radius: 30px; padding: 26px 14px 14px; }
.mini-h { display: flex; justify-content: space-between; align-items: center; }
.mini-h b { font: 400 clamp(16px, 3.4cqw, 30px)/1 var(--fd); }
.mini-h span { display: inline-flex; gap: 6px; align-items: center; font: 500 clamp(10px, 1.6cqw, 13px)/1 var(--mono); color: var(--tx2); }
.mini-k { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(6px, 1.4cqw, 14px); }
.mini-k div { padding: clamp(8px, 1.8cqw, 16px); border-radius: var(--rad); background: var(--card); border: 1px solid var(--ln); transition: background .6s, border-radius .6s; }
.mini-k span { display: block; font-size: clamp(9px, 1.6cqw, 13px); color: var(--tx2); }
.mini-k b { display: block; font: 500 clamp(16px, 4.4cqw, 40px)/1.1 var(--fn); margin-top: 4px; }
.mini-c { position: relative; border-radius: var(--rad); background: var(--card); border: 1px solid var(--ln); min-height: 0; transition: background .6s, border-radius .6s; }
.mini-c svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mini-b { display: flex; gap: clamp(4px, 1cqw, 10px); height: clamp(36px, 9cqw, 90px); align-items: flex-end; }
.mini-b i { flex: 1; height: var(--h); border-radius: calc(var(--rad) / 3) calc(var(--rad) / 3) 2px 2px; background: var(--c2); opacity: .85; transition: height .8s var(--ease-out), background .6s; }
.mini-b i:nth-child(3n) { background: var(--c1); }
.lk-scene[data-d="phone"] .mini-k { grid-template-columns: 1fr; }
.lk-scene[data-d="phone"] .mini-k b { font-size: 26px; }
.lk-scene[data-d="phone"] .mini-h b { font-size: 18px; }
.mini[data-skin="day"] { --bg: #f5f3ee; --card: #ffffff; --tx: #1d2633; --tx2: #6b7482; --ln: rgba(20, 30, 45, .1); --c1: #3b6cf6; --c2: #1aa384; --c3: #f08a24; --fd: var(--sans); }
.mini[data-skin="day"] .mini-h b { font-weight: 600; letter-spacing: -.02em; }
.mini[data-skin="term"] { --bg: #030806; --card: #06110b; --tx: #b8ffd5; --tx2: #3fae6e; --ln: rgba(57, 255, 142, .22); --c1: #39ff8e; --c2: #f2c94c; --c3: #39ff8e; --rad: 2px; --fd: var(--mono); --fn: var(--mono); }
.mini[data-skin="term"] .mini-h b { text-transform: uppercase; letter-spacing: .08em; font-size: clamp(13px, 2.4cqw, 22px); }
.mini[data-skin="term"] .mini-k b { text-shadow: 0 0 12px rgba(57, 255, 142, .7); }
.mini[data-skin="glass"] { --bg: linear-gradient(135deg, #2b1d5c, #5a3b8c 50%, #1d4b7a); --card: rgba(255, 255, 255, .1); --tx: #ffffff; --tx2: rgba(255, 255, 255, .7); --ln: rgba(255, 255, 255, .22); --c1: #ffffff; --c2: #8fd3ff; --c3: #ffb3e6; --rad: 20px; --fd: var(--sans); }
.mini[data-skin="glass"] .mini-k div, .mini[data-skin="glass"] .mini-c { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.mini[data-skin="glass"] .mini-h b { font-weight: 600; }
.mini[data-skin="paper"] { --bg: #efe7d6; --card: #f7f1e4; --tx: #2b2420; --tx2: #7b6d60; --ln: rgba(43, 36, 32, .18); --c1: #b5452d; --c2: #2b2420; --c3: #5f7a5b; --rad: 0px; --fd: var(--serif); }
.mini[data-skin="paper"] .mini-k div { border-width: 0 0 1px; }
.mini[data-skin="paper"] .mini-k b { font-family: var(--serif); font-weight: 400; }
.lk-dev .mini { --x: 0; }

/* ---------- Ask ---------- */
.ask { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.ask-chat { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 20px; border: 1px solid var(--line-2); background: rgba(8, 12, 20, .7); min-height: 420px; }
.ask-log { flex: 1; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; max-height: 300px; min-height: 120px; scrollbar-width: thin; }
.msg { max-width: 88%; padding: 11px 14px; border-radius: 16px; font-size: 15px; line-height: 1.45; animation: d-up .45s var(--ease-out) both; }
.msg.me { align-self: flex-end; background: linear-gradient(180deg, var(--brass-hi), var(--brass)); color: #1a1205; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: rgba(220, 230, 245, .06); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.bot b { color: var(--brass-hi); font-weight: 600; }
.msg.typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); animation: d-dots 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes d-dots { 0%, 100% { opacity: .3; transform: none; } 50% { opacity: 1; transform: translateY(-3px); } }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-chips button { padding: 9px 13px; border-radius: 99px; border: 1px solid rgba(224, 180, 94, .35); background: rgba(224, 180, 94, .06); color: var(--paper); cursor: pointer; font: 500 13.5px/1.2 var(--sans); text-align: left; transition: background .2s, border-color .2s, transform .2s; }
.ask-chips button:hover { background: rgba(224, 180, 94, .16); border-color: var(--brass); transform: translateY(-1px); }
.ask-in { display: flex; gap: 8px; }
.ask-in input { flex: 1; min-width: 0; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(220, 230, 245, .04); color: var(--paper); font: 400 16px/1 var(--sans); }
.ask-in input:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(224, 180, 94, .2); }
.ask-in input::placeholder { color: var(--mute); }
.ask-out { display: grid; gap: 14px; grid-template-rows: 1fr auto; }
.ask-card { position: relative; display: flex; flex-direction: column; padding: 20px; border-radius: 20px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(21, 32, 48, .75), rgba(10, 15, 24, .85)); min-height: 300px; overflow: hidden; }
.ask-card.flash { animation: d-flash .9s var(--ease-out); }
@keyframes d-flash { 0% { box-shadow: 0 0 0 1px var(--brass), 0 0 60px -10px rgba(224, 180, 94, .8); } 100% { box-shadow: none; } }
.ask-k { font: 500 12px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.ask-big { font: 400 clamp(38px, 4.4vw, 56px)/1.05 var(--serif); margin: 8px 0 10px; }
.ask-chart { position: relative; flex: 1; min-height: 180px; }
.ask-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ask-brief { padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(61, 220, 151, .3); background: rgba(61, 220, 151, .05); font-size: 14.5px; color: var(--dim); }
.ask-brief p { margin: 8px 0 0; }
.ask-brief b { color: var(--paper); font-weight: 600; }
.ask-bt { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--up); }
.ask-bt svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ---------- Your data ---------- */
.flowx { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) minmax(0, 240px); gap: 0; align-items: stretch; padding: clamp(16px, 2.4vw, 28px); border-radius: 22px; border: 1px solid var(--line-2); background: rgba(8, 12, 20, .6); }
.fx-src, .fx-out { display: grid; gap: 8px; align-content: center; position: relative; z-index: 2; }
.fx-src button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(220, 230, 245, .04); color: var(--dim); cursor: pointer; font: 500 14px/1 var(--sans); text-align: left; transition: all .25s; }
.fx-src button i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-size: 13px; background: rgba(220, 230, 245, .06); color: var(--dim); transition: all .25s; }
.fx-src button[aria-pressed="true"] { color: var(--paper); border-color: rgba(224, 180, 94, .45); background: rgba(224, 180, 94, .07); }
.fx-src button[aria-pressed="true"] i { color: #1a1205; background: var(--brass); box-shadow: 0 0 12px -2px var(--brass); }
.fx-out div { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; row-gap: 2px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(63, 214, 195, .3); background: rgba(63, 214, 195, .05); }
.fx-out i { grid-row: span 2; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-style: normal; color: var(--d2); background: rgba(63, 214, 195, .12); }
.fx-out b { font-size: 14.5px; font-weight: 600; }
.fx-out span { font-size: 12.5px; color: var(--dim); }
.fx-mid { position: relative; min-height: 420px; display: grid; place-items: center; }
.fx-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fx-svg path { fill: none; stroke: rgba(220, 230, 245, .1); stroke-width: 1.5; transition: stroke .3s; }
.fx-svg path.on { stroke: rgba(224, 180, 94, .35); }
.fx-svg path.out { stroke: rgba(63, 214, 195, .3); }
.fx-svg circle { fill: var(--brass-hi); filter: drop-shadow(0 0 4px var(--brass)); }
.fx-svg circle.o { fill: #8ff2e4; filter: drop-shadow(0 0 4px var(--d2)); }
.fx-core { position: relative; z-index: 2; display: grid; justify-items: center; gap: 10px; text-align: center; }
.fx-core svg { width: 112px; height: 108px; padding: 18px; border-radius: 28px; background: radial-gradient(circle, rgba(224, 180, 94, .3), rgba(10, 15, 24, .95) 70%); border: 1px solid rgba(224, 180, 94, .5);
  box-shadow: 0 0 60px -10px rgba(224, 180, 94, .7); animation: d-core 3s ease-in-out infinite; overflow: visible; }
.fx-core svg polygon { fill: var(--ivory); } .fx-core svg .fx-gem { fill: var(--brass); }
@keyframes d-core { 50% { box-shadow: 0 0 90px -6px rgba(224, 180, 94, .9); } }
.fx-core span { font: 500 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.fx-core span b { color: var(--brass-hi); }
.sec { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 60px); margin-top: clamp(48px, 6vw, 80px); align-items: start; }
.sec-h p { color: var(--dim); margin: 0; }
.sec-l { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sec-l li, .dgets div { display: grid; gap: 6px; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(220, 230, 245, .025); }
.sec-l li b, .dgets b { font-size: 15.5px; font-weight: 600; }
.sec-l li span, .dgets span { font-size: 14px; color: var(--dim); }
.sec-l li b::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 2px; background: var(--up); box-shadow: 0 0 8px var(--up); vertical-align: middle; transform: rotate(45deg); }

/* ---------- Process ---------- */
.dflow { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: x; position: relative; }
.dflow::before { content: ""; position: absolute; left: 4%; right: 4%; top: 38px; height: 1px; background: linear-gradient(90deg, transparent, var(--brass), transparent); opacity: .5; }
.dflow li { position: relative; padding: 20px; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(10, 15, 24, .85); }
.dflow .fi { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; font: 500 13px/1 var(--mono); color: #1a1205; background: linear-gradient(180deg, var(--brass-hi), var(--brass)); box-shadow: 0 0 18px -4px var(--brass); margin-bottom: 14px; }
.dflow b { display: block; font: 400 26px/1.1 var(--serif); margin-bottom: 8px; }
.dflow p { color: var(--dim); font-size: 15px; margin: 0; }
.dgets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

/* ---------- Closing ---------- */
.d-end { padding-top: clamp(40px, 6vw, 80px); }
.d-cta { position: relative; overflow: hidden; isolation: isolate; padding: clamp(36px, 6vw, 80px); border-radius: 28px; border: 1px solid rgba(224, 180, 94, .4); text-align: center; display: grid; justify-items: center;
  background: radial-gradient(70% 90% at 50% 0%, rgba(224, 180, 94, .18), transparent 70%), rgba(10, 15, 24, .9); }
.d-cta-bg { position: absolute; inset: 0; z-index: -1; opacity: .5; }
.d-cta-bg svg { width: 100%; height: 100%; }
.d-cta .d-lede { margin-bottom: 26px; }
.d-cta .dh-acts { justify-content: center; }

.rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }


/* ---------- Live demo: depth, light and motion ----------
   Layers, back to front: drifting glow, the frame (rises out of the page, tips with scroll,
   leans toward the pointer, a light runs round its edge), cards floating in front. */
.dv-stage { position: relative; isolation: isolate; }
/* The glow and the tilted frame may reach past the screen edge; trim them there instead of letting the page scroll sideways. */
body.world-dash main { overflow-x: clip; }
.dv-depth { position: absolute; inset: -90px -60px; z-index: -1; pointer-events: none; overflow: hidden; }
.dv-depth i { position: absolute; border-radius: 50%; aspect-ratio: 1; will-change: transform; }
.dv-depth i:nth-child(1) { width: 62%; left: -14%; top: -4%; background: radial-gradient(closest-side, color-mix(in srgb, var(--acc2, #e0b45e) 24%, transparent), transparent); animation: dv-drift 14s ease-in-out infinite alternate; }
.dv-depth i:nth-child(2) { width: 52%; right: -12%; top: 22%; background: radial-gradient(closest-side, rgba(63, 214, 195, .14), transparent); animation: dv-drift 19s ease-in-out infinite alternate-reverse; }
.dv-depth i:nth-child(3) { width: 44%; left: 28%; bottom: -14%; background: radial-gradient(closest-side, rgba(90, 162, 255, .12), transparent); animation: dv-drift 16s ease-in-out infinite alternate; }
@keyframes dv-drift { to { translate: 7% -5%; scale: 1.14; } }

.dv-rise { position: relative; perspective: 1900px; perspective-origin: 50% 20%; }
.dv-shell { position: relative; margin-inline: auto; width: 100%; padding: 1.5px; border-radius: 19.5px; isolation: isolate; will-change: transform;
  background: linear-gradient(180deg, rgba(220, 230, 245, .26), rgba(220, 230, 245, .05)); transition: width .6s var(--ease-out), border-radius .6s; }
.dv-shell[data-dev="phone"] { width: min(416px, 100%); border-radius: 46px; }
.dv-shell .dv-frame { width: 100%; border-color: rgba(255, 255, 255, .05); z-index: 1; }
.dv-shell[data-dev="phone"] .dv-frame { border-color: #1c2432; }
.dv-edge { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.dv-edge::before { content: ""; position: absolute; left: 50%; top: 50%; width: var(--edge, 2200px); height: var(--edge, 2200px); margin: calc(var(--edge, 2200px) / -2) 0 0 calc(var(--edge, 2200px) / -2);
  background: conic-gradient(from 0deg, transparent 0deg 70deg, rgba(63, 214, 195, .95) 128deg, transparent 160deg 240deg, var(--acc2, #e0b45e) 310deg, #fff4d6 340deg, transparent 360deg); animation: d-spin 7s linear infinite; }
.dv-shell::after { content: ""; position: absolute; inset: -46px -36px; z-index: -1; border-radius: 70px; pointer-events: none;
  background: radial-gradient(50% 42% at 50% 0%, color-mix(in srgb, var(--acc2, #e0b45e) 34%, transparent), transparent 75%), radial-gradient(46% 38% at 50% 100%, rgba(63, 214, 195, .16), transparent 75%);
  animation: dv-breathe 5s ease-in-out infinite; }
@keyframes dv-breathe { 50% { opacity: .5; } }
.dv-rise.pre .dv-shell { opacity: 0; translate: 0 120px; rotate: x 34deg; scale: .86; }
.dv-rise.in .dv-shell { opacity: 1; translate: 0 0; rotate: x 0deg; scale: 1;
  transition: opacity 1s var(--ease-out), translate 1.7s cubic-bezier(.16, 1.1, .3, 1), rotate 1.7s cubic-bezier(.16, 1.1, .3, 1), scale 1.7s cubic-bezier(.16, 1.1, .3, 1), width .6s var(--ease-out), border-radius .6s; }
.dv-floor { width: 76%; height: 70px; margin: -4px auto 0; pointer-events: none; background: radial-gradient(50% 60% at 50% 0%, color-mix(in srgb, var(--acc2, #e0b45e) 30%, transparent), transparent 70%); transition: width .6s var(--ease-out), opacity 1.2s .7s; }
.dv-rise[data-dev="phone"] .dv-floor { width: min(360px, 80%); }
.dv-rise.pre .dv-floor { opacity: 0; }

.dv-sweep, .dv-glare { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.dv-sweep { background: linear-gradient(100deg, transparent 36%, rgba(245, 216, 153, .1) 44%, rgba(255, 255, 255, .24) 50%, rgba(245, 216, 153, .08) 56%, transparent 64%); transform: translateX(-110%); opacity: 0; }
.dv-frame.sweep .dv-sweep { animation: dv-sweep 1.6s cubic-bezier(.45, .05, .3, 1) both; }
@keyframes dv-sweep { 0% { transform: translateX(-110%); opacity: 0; } 15%, 85% { opacity: 1; } 100% { transform: translateX(110%); opacity: 0; } }
.dv-glare { background: radial-gradient(700px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .07), transparent 42%); opacity: 0; transition: opacity .5s; }
.dv-shell.lit .dv-glare { opacity: 1; }

.dv-float { position: absolute; z-index: 8; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 9px; row-gap: 3px; min-width: 184px; padding: 12px 15px; border-radius: 14px; pointer-events: none;
  background: linear-gradient(180deg, rgba(30, 43, 64, .95), rgba(14, 21, 33, .96)); border: 1px solid color-mix(in srgb, var(--acc2, #e0b45e) 45%, transparent);
  box-shadow: 0 28px 50px -18px rgba(0, 0, 0, .9), 0 0 34px -12px var(--acc2, #e0b45e), inset 0 1px 0 rgba(255, 255, 255, .09);
  translate: 0 var(--py, 0px); animation: dv-bob 6s ease-in-out infinite; }
.dv-f1 { top: 74px; right: -34px; }
.dv-f2 { bottom: 88px; left: 22%; animation-delay: -3s; }
.dv-rise[data-dev="phone"] .dv-f1 { right: calc(50% - 300px); }
.dv-rise[data-dev="phone"] .dv-f2 { bottom: 140px; left: calc(50% - 310px); }
@keyframes dv-bob { 50% { transform: translateY(-9px); } }
.dv-fdot { grid-row: span 3; width: 9px; height: 9px; border-radius: 50%; background: var(--up); box-shadow: 0 0 12px var(--up); animation: d-ping 2s ease-out infinite; }
.dv-ft { font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.dv-float b { font: 600 14px/1.2 var(--sans); color: var(--paper); white-space: nowrap; }
.dv-fv { font: 500 13px/1 var(--mono); color: var(--brass-hi); }
.dv-f2 { grid-template-columns: 1fr; }
.dv-f2 b { font: 500 28px/1 var(--mono); }
.dv-fbar { display: block; height: 5px; border-radius: 4px; background: rgba(220, 230, 245, .1); overflow: hidden; margin-top: 4px; }
.dv-fbar i { display: block; height: 100%; width: var(--p, 0%); border-radius: 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--acc2, #e0b45e) 50%, transparent), var(--acc2, #e0b45e)); box-shadow: 0 0 10px var(--acc2, #e0b45e); }
.dv-rise.pre .dv-float { opacity: 0; scale: .6; }
.dv-rise.in .dv-float { opacity: 1; scale: 1; transition: opacity .6s 1.2s, scale .9s 1.2s cubic-bezier(.2, 1.5, .4, 1); }
.dv-rise.in.ready .dv-float { transition: opacity .3s, scale .7s cubic-bezier(.2, 1.6, .4, 1); }
.dv-rise.in .dv-float.bump { scale: 1.1; transition: scale .14s ease-out; }

/* Tiles and cards: rise out of the screen in turn, tilt and catch the light under the pointer */
.db.pop .kp, .db.pop .db-card { animation: db-pop 1.05s cubic-bezier(.2, .85, .25, 1) backwards; animation-delay: calc(var(--i, 0) * 75ms + 160ms); }
@keyframes db-pop { 0% { opacity: 0; transform: perspective(900px) translate3d(0, 48px, -170px) rotateX(26deg) scale(.9); } 55% { opacity: 1; transform: perspective(900px) translate3d(0, -8px, 40px) rotateX(-4deg) scale(1.03); } 100% { opacity: 1; transform: perspective(900px) translate3d(0, 0, 0) rotateX(0deg) scale(1); } }
@keyframes db-fade { from { opacity: 0; } }
.kp, .db-card { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 14px 28px -18px rgba(0, 0, 0, .75); }
.db-card { transition: background .5s, transform .6s var(--ease-out), border-color .3s, box-shadow .4s; }
.kp { transition: background .5s, transform .6s var(--ease-out), border-color .3s, box-shadow .4s; }
.kp.tlt, .db-card.tlt { transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ly, -5px)); z-index: 2;
  transition: background .5s, transform .15s linear, border-color .3s, box-shadow .3s;
  border-color: color-mix(in srgb, var(--c, var(--acc)) 50%, transparent); box-shadow: 0 28px 44px -24px rgba(0, 0, 0, .95), 0 0 36px -14px var(--c, var(--acc)); }
.db-card.tlt { --ly: -3px; }
.kp::before, .db-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(280px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .1), transparent 45%); }
.kp.tlt::before, .db-card.tlt::before { opacity: 1; }
.kp.hit { animation: kp-hit 1.2s ease-out; }
@keyframes kp-hit { 0% { box-shadow: 0 0 0 1px var(--c), 0 0 40px -6px var(--c); } }
.kodo { display: flex; height: 1.12em; line-height: 1.12em !important; overflow: visible; }
.kodo .rd { display: inline-block; height: 1.12em; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); }
.kodo .rd > span { display: block; transform: translateY(calc(var(--n, 0) * -1.12em)); transition: transform 1.3s cubic-bezier(.18, 1.2, .32, 1); }
.kodo .rd i { display: block; height: 1.12em; line-height: 1.12em; font-style: normal; text-align: center; }
.kodo .rs { display: inline-block; }
.kp .kodo .rs, .kp .kodo .rd, .kp .kodo .rd > span { font-size: inherit; color: inherit; }
.kp .kodo .rs, .kp .kodo .rd { display: inline-block; }

.hb.grow { animation: hb-in .8s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 90ms + 420ms); }
@keyframes hb-in { from { opacity: 0; transform: translateX(-26px); } }
.hb .tr i { position: relative; overflow: hidden; transition: width 1.2s cubic-bezier(.2, 1.12, .3, 1); transition-delay: calc(var(--i, 0) * 90ms + 300ms); }
.hb .tr i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent); transform: translateX(-100%); animation: hb-shine 1.3s ease-in-out both; animation-delay: calc(var(--i, 0) * 90ms + 1.3s); }
@keyframes hb-shine { to { transform: translateX(100%); } }
.hb.hit .tr i::after { animation: hb-shine2 1.1s ease-in-out both; }
@keyframes hb-shine2 { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.hb.hit b { animation: hb-flash 1.2s ease-out; }
@keyframes hb-flash { 0%, 25% { color: var(--c); text-shadow: 0 0 12px var(--c); } }
.hb:hover span { color: var(--tx); }
.hb:hover .tr i { filter: brightness(1.18); }

.db-feed { perspective: 700px; }
.db-feed li { position: relative; transition: transform .55s cubic-bezier(.2, .9, .3, 1); }
.db-feed li.in { animation: hb-in .6s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 60ms + 520ms); }
.db-feed li.new { transform-origin: 50% 0; animation: feed-flip .85s cubic-bezier(.2, 1.1, .3, 1) both; }
@keyframes feed-flip { 0% { opacity: 0; transform: rotateX(-88deg); } 55% { opacity: 1; } 100% { opacity: 1; transform: none; } }
.db-feed li.new::after { content: ""; position: absolute; inset: 0; border-radius: 8px; pointer-events: none; background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 28%, transparent), transparent 75%); animation: feed-glow 1.8s ease-out both; }
@keyframes feed-glow { to { opacity: 0; } }
.db-feed li.new .fv { animation: feed-val 1.6s ease-out; }
@keyframes feed-val { 0%, 30% { color: var(--acc); text-shadow: 0 0 10px var(--acc); } }
.db-live.ping .ldot { animation: d-blink 1.6s ease-in-out infinite, live-ping 1s ease-out; }
@keyframes live-ping { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, .85), 0 0 10px var(--up); } 100% { box-shadow: 0 0 0 11px rgba(61, 220, 151, 0), 0 0 10px var(--up); } }
.dn-ring { transform-box: fill-box; transform-origin: center; animation: d-spin 24s linear infinite; }

/* Controls: a pill that glides, a ripple where you press, a little give when pressed */
.seg { position: relative; }
.seg button { position: relative; z-index: 1; overflow: hidden; transition: color .2s, background .25s, box-shadow .25s, scale .18s; }
.seg-gl { position: absolute; top: 4px; bottom: 4px; left: 4px; width: 0; z-index: 0; border-radius: 9px; pointer-events: none;
  background: linear-gradient(180deg, var(--brass-hi), var(--brass)); box-shadow: 0 6px 16px -8px rgba(224, 180, 94, .9), inset 0 1px 0 rgba(255, 255, 255, .5); }
.seg.gl-on .seg-gl { transition: transform .55s cubic-bezier(.3, 1.35, .4, 1), width .55s cubic-bezier(.3, 1.35, .4, 1), opacity .2s; }
.seg.gl button[aria-pressed="true"] { background: none; box-shadow: none; }
.seg button:active, .db-sort:active, .db-legend button:active, .biz-pick:active, .lk-pick:active, .mo-pick:active { scale: .95; }
.db-sort, .db-legend button { position: relative; overflow: hidden; transition: color .2s, opacity .2s, scale .18s, border-color .2s; }
.biz-pick, .lk-pick, .mo-pick, .db-ghost, .db-btn, .cg-re { overflow: hidden; }
.lk-pick, .mo-pick { position: relative; }
.db-sort:hover, .db-legend button:hover { border-color: color-mix(in srgb, var(--acc) 55%, transparent); color: var(--tx); }
.rip { position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; transform: scale(0); background: radial-gradient(closest-side, rgba(255, 240, 205, .42), rgba(255, 240, 205, 0)); animation: rip .75s cubic-bezier(.2, .8, .3, 1) forwards; }
@keyframes rip { to { transform: scale(1); opacity: 0; } }
.biz-pick { transition: transform .5s var(--ease-out), border-color .25s, box-shadow .25s, scale .18s; }
.biz-pick.tlt { transform: perspective(600px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); transition: transform .12s linear, border-color .25s, box-shadow .25s, scale .18s; }
.biz-pick[aria-selected="true"] .biz-ic { animation: ic-pop .8s cubic-bezier(.2, 1.6, .4, 1); box-shadow: 0 0 0 1px color-mix(in srgb, var(--a) 50%, transparent), 0 0 22px -4px var(--a); }
@keyframes ic-pop { 0% { transform: scale(.7) rotate(-12deg); } 60% { transform: scale(1.12) rotate(4deg); } 100% { transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cg { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .db { grid-template-columns: 180px minmax(0, 1fr); }
  .mo { grid-template-columns: minmax(0, 1fr); }
  .mo-list { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .mo-pick span { display: none; }
  .flowx { grid-template-columns: minmax(0, 200px) minmax(0, 1fr) minmax(0, 210px); }
}
@media (max-width: 1240px) {
  .dv-f1 { right: -12px; top: 56px; }
}
@media (max-width: 900px) {
  .dv-f1 { top: -22px; right: 14px; min-width: 0; padding: 10px 13px; }
  .dv-f2 { display: none; }
  .dv-depth { inset: -50px 0; }
  .dh { min-height: 0; padding-top: 120px; }
  .dh-in { grid-template-columns: minmax(0, 1fr); }
  .dh-stage { width: min(560px, 100%); margin: 44px auto 0; }
  .dh-cue { display: none; }
  .biz { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sim-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lk { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px; }
  .lk::-webkit-scrollbar { display: none; }
  .ask { grid-template-columns: minmax(0, 1fr); }
  .flowx { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .fx-src { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-mid { min-height: 230px; }
  .fx-out { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec { grid-template-columns: minmax(0, 1fr); }
  .dflow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dflow::before { display: none; }
  .dgets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seg-dev { display: none !important; }
}
@media (max-width: 600px) {
  .dh-title { font-size: clamp(52px, 15vw, 76px); }
  .dh-proof { gap: 18px; }
  .dh-deck { --rx: 10deg; --ry: -12deg; --rz: 2deg; --s: .92; }
  .biz { gap: 8px; }
  .biz-pick { grid-template-columns: 1fr; padding: 12px; row-gap: 2px; }
  .biz-ic { grid-row: auto; width: 34px; height: 34px; margin-bottom: 6px; }
  .biz-pick i { font-size: 12px; }
  .dv-ctl { gap: 8px; }
  .seg button { padding: 8px 11px; font-size: 13px; }
  .dv-frame { border-radius: 16px; }
  .dv-shell { border-radius: 17.5px; }
  .dv-f1 { right: 8px; top: -26px; }
  .dv-float b { font-size: 13px; }
  .dv-sec { display: none; }
  .cg { grid-template-columns: minmax(0, 1fr); }
  .cg-v { height: 190px; }
  .sim-grid { grid-template-columns: minmax(0, 1fr); }
  .nt { min-height: 0; }
  .lk-dev-f { padding: 8px; }
  .lk-scene[data-d="wall"] .lk-dev-f, .lk-scene[data-d="laptop"] .lk-dev-f { aspect-ratio: 4 / 3.6; }
  .mo-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mo-pick { padding: 11px 12px; }
  .mo-stage { padding: 16px; min-height: 380px; }
  .mo-chart { min-height: 240px; }
  .fx-src { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fx-out { grid-template-columns: minmax(0, 1fr); }
  .sec-l, .dflow, .dgets { grid-template-columns: minmax(0, 1fr); }
  .ask-chat { min-height: 0; }
}

/* ---------- Calm mode (on by default with the system's reduce motion setting) ----------
   No loops, no tilt or parallax, nothing flying in from depth. One-time motion that explains
   the data stays, gently: lines drawing in, numbers rolling, the needle settling. */
html[data-calm] .world-dash *, html[data-calm] .world-dash *::before, html[data-calm] .world-dash *::after { animation-iteration-count: 1 !important; }
html[data-calm] .dtick-row, html[data-calm] .radar .sweep, html[data-calm] .radar .blip, html[data-calm] .dh-title em, html[data-calm] .dh-cue i,
html[data-calm] .nt-alert.alarm, html[data-calm] .fx-core svg, html[data-calm] .dv-edge::before, html[data-calm] .dv-depth i, html[data-calm] .dv-float,
html[data-calm] .dn-ring, html[data-calm] .dv-shell::after, html[data-calm] .dv-fdot { animation: none !important; }
html[data-calm] .dh-deck { --rx: 8deg; --ry: -10deg; --rz: 2deg; }
html[data-calm] .dtick-row { transform: none; }
html[data-calm] .rv { opacity: 1; transform: none; }
html[data-calm] .dv-rise.pre .dv-shell { translate: none; rotate: none; scale: none; }
html[data-calm] .dv-rise.pre .dv-float { scale: none; }
html[data-calm] .db.pop .kp, html[data-calm] .db.pop .db-card, html[data-calm] .db-feed li.new, html[data-calm] .db-feed li.in, html[data-calm] .hb.grow { animation-name: db-fade !important; }
html[data-calm] .kodo .rd > span { transition-timing-function: var(--ease-out); }
