/* גל · תקשורת סלולרית - glass bubbles over a night lobby; three slides inside each, the figures transform between them. */
:root {
  --bg: #07090b; --ink: #f3f4f2; --muted: #c3c9c6; --dim: #87918d;
  --accent: #5b8cff; --hi: #8ab4ff; --on-accent: #08122b;
  --glass: rgb(9 13 14 / .58); --glass-line: rgb(255 255 255 / .14);
  --s0: #8ab4ff; --s1: #5ee0d6; --s2: #c9a2ff;
  --sans: "Assistant", "Arial Hebrew", "Segoe UI", system-ui, sans-serif;
}
body { background: var(--bg); color: var(--ink); }
h1, h2, p { margin: 0; }
#deck { pointer-events: auto; overflow: hidden; background: #0b0d0e; }

/* ---- the world: one scene, softly out of focus; a second, much softer copy fades in as the camera dives */
.world { position: absolute; inset: 0; will-change: transform; }
.world img { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); object-fit: cover; }
.world .w1 { filter: blur(5px) brightness(.58) saturate(.95); }
.world .w2 { filter: blur(26px) brightness(.42) saturate(.9); opacity: 0; }
#dust { position: absolute; inset: 0; width: 1920px; height: 1080px; pointer-events: none; }

/* ---- the hub: title, six bubbles */
.hub { position: absolute; inset: 0; will-change: transform, opacity; }
.hub .slide .copy { position: absolute; top: 150px; left: 0; right: 0; text-align: center; }
.hub .kicker { justify-content: center; }
.hub .kicker::after { content: ""; width: 40px; height: 1px; background: currentColor; opacity: .7; }
.hub .t1 { font-size: 84px; }
.hub .hint { position: absolute; bottom: 104px; left: 0; right: 0; text-align: center; font: 400 21px/1 var(--sans); color: var(--muted); letter-spacing: .04em; }

.bub { position: absolute; left: calc(var(--x) - var(--r)); top: calc(var(--y) - var(--r)); width: calc(var(--r) * 2); height: calc(var(--r) * 2);
  border: 0; padding: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; font: inherit;
  display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; will-change: transform, opacity;
  opacity: 0; transform: scale(.6); transition: opacity .9s cubic-bezier(.2,.7,.2,1) calc(var(--k) * 90ms), transform 1.1s cubic-bezier(.2,.7,.2,1) calc(var(--k) * 90ms); }
html.hubin .bub { opacity: 1; transform: none; }
.bub .peek, .bub .glass { position: absolute; inset: 0; border-radius: 50%; }
.bub .peek { background-repeat: no-repeat; opacity: .26; transition: opacity .6s; }
.bub .glass { background: radial-gradient(120% 90% at 30% 18%, rgb(255 255 255 / .34), rgb(255 255 255 / .08) 42%, rgb(255 255 255 / .03) 70%),
    radial-gradient(70% 70% at 50% 110%, rgb(138 180 255 / .16), transparent 70%);
  border: 1px solid rgb(255 255 255 / .38); box-shadow: inset 0 0 40px rgb(255 255 255 / .10), inset 0 -18px 40px rgb(0 0 0 / .18), 0 24px 60px rgb(0 0 0 / .35);
  backdrop-filter: blur(16px) brightness(1.12) saturate(1.15); -webkit-backdrop-filter: blur(16px) brightness(1.12) saturate(1.15); }
.bub svg, .bub b, .bub small { position: relative; }
.bub svg { width: 38px; height: 38px; fill: none; stroke: var(--hi); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.bub b { font: 600 25px/1.1 var(--sans); max-width: 190px; }
.bub small { font: 400 17px/1 var(--sans); color: var(--muted); }
.bub small em { font-style: normal; color: var(--hi); font-weight: 600; margin-inline-end: 3px; }
.bub .tick { position: absolute; top: 14px; left: 50%; transform: translateX(-50%) scale(.4); width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font: 700 17px/1 var(--sans); font-style: normal; background: var(--hi); color: var(--on-accent); opacity: 0;
  transition: opacity .5s, transform .6s cubic-bezier(.3,1.6,.5,1); }
.bub.done .tick { opacity: 1; transform: translateX(-50%) scale(1); top: -12px; }
.bub.done svg { stroke: var(--muted); }
.bub.next .peek { opacity: .5; }
.bub.next .glass { border-color: rgb(138 180 255 / .8); }
.bub.next::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--hi); animation: halo 1.8s ease-out infinite; pointer-events: none; }
@keyframes halo { 0% { transform: scale(1); opacity: 0; } 18% { opacity: .9; } 100% { transform: scale(1.28); opacity: 0; } }
.bub:hover .peek, .bub:focus-visible .peek { opacity: .55; }
.bub:focus-visible { outline: 2px solid var(--hi); outline-offset: 6px; }

/* ---- the portal: the inside of a bubble, revealed through a growing circle */
.portal { position: absolute; inset: 0; visibility: hidden; background: #0b0d0e; }
.portal .cam { position: absolute; inset: 0; will-change: transform; }
.portal .bg { position: absolute; inset: -120px; width: calc(100% + 240px); height: calc(100% + 240px); object-fit: cover;
  filter: blur(50px) brightness(.46) saturate(1.3); }
.portal .glow { position: absolute; left: 50%; top: 50%; width: 1100px; height: 1100px; margin: -550px; border-radius: 50%;
  transition: transform 1.8s cubic-bezier(.45,0,.2,1); mix-blend-mode: screen; }
.portal .g1 { background: radial-gradient(closest-side, rgb(138 180 255 / .5), transparent); }
.portal .g2 { background: radial-gradient(closest-side, rgb(94 224 214 / .42), transparent); }
.portal .g3 { background: radial-gradient(closest-side, rgb(201 162 255 / .26), transparent); width: 800px; height: 800px; margin: -400px; }
/* fine grain and a glass sheen, so the inside reads as frosted glass and not as a flat colour */
.portal .shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgb(255 255 255 / .07), transparent 38%, transparent 70%, rgb(255 255 255 / .04)),
              radial-gradient(130% 100% at 50% 50%, transparent 55%, rgb(0 0 0 / .45)); }
.ghost { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.ghost > * { will-change: transform, opacity; }
.rim { position: absolute; border-radius: 50%; pointer-events: none; visibility: hidden;
  border: 2px solid rgb(255 255 255 / .55); box-shadow: 0 0 40px rgb(138 180 255 / .45), inset 0 0 60px rgb(255 255 255 / .18); }

/* ---- text */
.kicker { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; font: 600 17px/1 var(--sans); letter-spacing: .2em; color: var(--hi); }
.kicker::before { content: ""; width: 40px; height: 1px; background: currentColor; opacity: .7; }
.t1 { font: 300 72px/1.04 var(--sans); letter-spacing: -.025em; text-shadow: 0 4px 30px rgb(0 0 0 / .5); }
.t1 em { font-style: normal; font-weight: 700; color: var(--hi); }
.in .head, .in .side { position: absolute; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; }
.in .head { right: 110px; width: 640px; padding-bottom: 20px; }
.in .head .t1 { font-size: 74px; line-height: 1.04; }
.in .head .t1 em { display: block; }
.in .head .body { margin-top: 30px; font: 300 24px/1.66 var(--sans); color: #d5dbd8; text-wrap: pretty; }
.side { gap: 22px; }
.side.left { left: 100px; width: 360px; }

/* ---- the figure: pieces that fly between slides, and the labels that settle around them */
.fig { position: absolute; left: 560px; top: 210px; width: 600px; height: 640px; }
.pc { position: absolute; display: block; }
.pc.edge, .gp.edge { box-shadow: inset 0 0 0 1.5px rgb(138 180 255 / .7), 0 0 40px rgb(138 180 255 / .12); }
.pc.ring-dot { box-shadow: inset 0 0 0 2.5px var(--hi); }
.in.on.fresh .pc { animation: pcIn .9s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: calc(.45s + var(--i, 0) * 10ms); }
@keyframes pcIn { from { opacity: 0; transform: scale(.2); } }
.in.on .pc.late { animation: pcLate .7s ease backwards; animation-delay: 1.2s; }
@keyframes pcLate { from { opacity: 0; transform: scale(.4); } }
.in.off .pc { opacity: 0; transition: opacity .35s ease; }
.ghost .gp { position: absolute; display: block; }

.fl { position: absolute; font: 400 19px/1.25 var(--sans); color: var(--muted); }
.fl b { color: var(--ink); font-weight: 600; }
.fl .big { display: block; font: 200 96px/1 var(--sans); color: var(--ink); letter-spacing: -.03em; }
.fl.sub { font-size: 21px; color: var(--muted); }
.fl.in-c { display: grid; gap: 4px; }
.fl.in-c b { font: 600 30px/1 var(--sans); color: var(--ink); }
.fl.in-c small { font: 400 17px/1.1 var(--sans); color: rgb(255 255 255 / .82); }
.fl.in-c.dark b, .fl.in-c.dark small { color: var(--on-accent); }
.fl.val { font: 600 20px/1 var(--sans); color: var(--ink); }
.fl.val.big-v { font: 200 44px/1 var(--sans); color: var(--hi); direction: ltr; }
.fl.ring-v { font: 300 40px/1 var(--sans); color: var(--ink); direction: ltr; }
.fl.yr { font-size: 17px; color: var(--dim); }
.fl.fc { color: var(--hi); }
.fl.head-l { font-size: 22px; }
.fl.head-l b { font-size: 34px; color: var(--hi); margin-inline-end: 6px; }
.fl.row-l { font-size: 21px; color: var(--ink); }
.fl.row-l b { margin-inline-start: 12px; color: var(--hi); }
.fl.town { font: 600 17px/1 var(--sans); color: var(--ink); text-shadow: 0 2px 10px rgb(0 0 0 / .6); }
.fl.screen-t { font: 600 18px/1 var(--sans); color: var(--ink); }
.fl.screen-f { font: 600 18px/1 var(--sans); color: var(--hi); }
.axis { position: absolute; height: 1px; background: rgb(255 255 255 / .22); display: block; }

.plot { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.plot .area { fill: rgb(138 180 255 / .12); }
.plot .ln { fill: none; stroke: var(--hi); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.plot .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.in.on .plot .draw { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s cubic-bezier(.6,.1,.2,1) 1s; }
.plot .dash { stroke-dasharray: 6 8; opacity: .7; }

.phone { position: absolute; left: 135px; top: 0; width: 330px; height: 620px; border-radius: 52px;
  border: 2px solid rgb(255 255 255 / .55); background: linear-gradient(160deg, rgb(255 255 255 / .10), rgb(255 255 255 / .02) 40%, rgb(0 0 0 / .25));
  box-shadow: 0 30px 80px rgb(0 0 0 / .45), inset 0 0 0 8px rgb(0 0 0 / .35); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.phone .notch { position: absolute; left: 50%; top: 18px; width: 96px; height: 26px; margin-left: -48px; border-radius: 13px; background: rgb(0 0 0 / .7); }
.legend { position: absolute; display: flex; justify-content: center; gap: 28px; font: 400 20px/1 var(--sans); color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 9px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; }
.legend.col { flex-direction: column; gap: 14px; }
.legend.col b { margin-inline-start: auto; color: var(--ink); font-weight: 600; }
.map { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map polygon { fill: rgb(255 255 255 / .05); stroke: rgb(255 255 255 / .35); stroke-width: 1.5; stroke-linejoin: round; }

.in .card { padding: 30px 32px; }
.in .card .t { font-size: 21px; margin-bottom: 20px; }
.in .card .l { font-size: 21px; }
.in .kpi b { font-size: 84px; }
.in .bars .cols { height: 320px; gap: 22px; }
.in .bars .col i { max-width: 74px; }
.in .bars .col em { font-size: 24px; }
.in .bars .col span { font-size: 17px; }
.in .line svg { height: 220px; }
.in .donut { grid-template-columns: 170px 1fr; }
.in .donut svg { width: 170px; height: 170px; }
.in .ba .pair b { font-size: 92px; }
.in .ba .pair b small { font-size: 26px; }
.in .ba .pair span { font-size: 19px; }
.in .gauge svg { width: 300px; height: 175px; }
.in .gauge b { font-size: 72px; }
.in .ring svg { width: 128px; height: 128px; }
.in .ring b { top: 47px; font-size: 30px; }
.in .split .bar { height: 30px; border-radius: 15px; }
.in .split .leg span { font-size: 21px; }
.in .hbars .row { grid-template-columns: 130px 1fr 40px; margin-bottom: 16px; }
.in .hbars .row span, .in .hbars .row em { font-size: 20px; }
.in .hbars .row i { height: 16px; border-radius: 8px; }
.in [data-in] { transform: scale(.86); }
.in.on [data-in] { transform: none; }
.in.off { visibility: visible; }
.in.off [data-in] { opacity: 0; transform: scale(1.14); transition: opacity .45s ease-in, transform .6s cubic-bezier(.5,0,.8,.4); }

/* a big figure: the number the slide is about */
.hero .mega { display: flex; align-items: baseline; gap: 12px; margin: 4px 0 14px; color: var(--hi); }
.mega span { font: 200 200px/.9 var(--sans); letter-spacing: -.04em; direction: ltr; }
.mega small { font: 400 30px/1 var(--sans); color: var(--ink); }

.card { background: var(--glass); border: 1px solid var(--glass-line); border-radius: 20px; padding: 24px 26px;
  backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1); box-shadow: 0 20px 60px rgb(0 0 0 / .35); }
.card .t { font: 600 18px/1.3 var(--sans); color: var(--muted); margin-bottom: 16px; }
.card .l { display: block; font: 400 19px/1.35 var(--sans); color: var(--muted); }

.kpi b { display: block; font: 200 68px/1 var(--sans); letter-spacing: -.02em; color: var(--ink); margin-bottom: 10px; direction: ltr; text-align: right; }

.donut { display: grid; grid-template-columns: 150px 1fr; gap: 6px 20px; align-items: center; }
.donut svg, .ring svg { width: 150px; height: 150px; transform: rotate(-90deg); grid-row: span 3; }
.donut circle, .ring circle { fill: none; stroke-width: 9; }
.donut .bg, .ring .bg, .gauge .bg { stroke: rgb(255 255 255 / .1); }
.donut .arc, .ring .arc { stroke: var(--hi); stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray .4s; }
.slide.on .donut .arc, .slide.on .ring .arc { stroke-dasharray: var(--v) 100; transition: stroke-dasharray 1.8s cubic-bezier(.6,.1,.2,1) calc(.5s + var(--i, 0) * .2s); }
.donut b { font: 200 54px/1 var(--sans); color: var(--ink); }
.donut small { color: var(--dim); font-size: 15px; }

.bars .cols { display: flex; gap: 16px; align-items: flex-end; height: 210px; }
.bars .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 8px; }
.bars .col i { width: 100%; max-width: 56px; height: 0; border-radius: 8px 8px 3px 3px; background: rgb(138 180 255 / .35); transition: height .4s; }
.slide.on .bars .col i { height: var(--h); transition: height 1.3s cubic-bezier(.2,.7,.2,1) calc(.4s + var(--i) * .12s); }
.bars .col.hi i { background: var(--hi); box-shadow: 0 0 24px rgb(138 180 255 / .45); }
.bars .col em { font: 600 18px/1 var(--sans); font-style: normal; color: var(--ink); }
.bars .col span { font: 400 15px/1 var(--sans); color: var(--dim); }

.hbars .row { display: grid; grid-template-columns: 104px 1fr 34px; align-items: center; gap: 12px; margin-bottom: 12px; }
.hbars .row span { font: 400 17px/1 var(--sans); color: var(--muted); }
.hbars .row i { height: 12px; border-radius: 6px; background: var(--hi); width: 0; transition: width .4s; justify-self: start; }
.slide.on .hbars .row i { width: var(--w); transition: width 1.2s cubic-bezier(.2,.7,.2,1) calc(.4s + var(--i) * .12s); }
.hbars .row em { font: 600 17px/1 var(--sans); font-style: normal; text-align: left; }

.line svg { width: 100%; height: 150px; display: block; overflow: visible; }
.line .ln { fill: none; stroke: var(--hi); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linejoin: round; stroke-linecap: round; }
.slide.on .line .ln { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s cubic-bezier(.6,.1,.2,1) .5s; }
.line .area { fill: rgb(138 180 255 / .14); opacity: 0; }
.slide.on .line .area { opacity: 1; transition: opacity 1s ease 1.4s; }
.line circle { fill: var(--bg); stroke: var(--hi); stroke-width: 2; vector-effect: non-scaling-stroke; opacity: 0; }
.slide.on .line circle { opacity: 1; transition: opacity .5s ease 1.6s; }
.line .xl { display: flex; justify-content: space-between; direction: ltr; margin-top: 8px; font: 400 14px/1 var(--sans); color: var(--dim); }
.line .end { margin-top: 14px; color: var(--muted); font-size: 17px; }
.line .end b { color: var(--ink); font-size: 24px; font-weight: 600; }

.gauge { text-align: center; }
.gauge svg { width: 220px; height: 128px; display: block; margin: 0 auto -6px; }
.gauge path { fill: none; stroke-width: 10; stroke-linecap: round; }
.gauge .arc { stroke: var(--hi); stroke-dasharray: 0 100; }
.slide.on .gauge .arc { stroke-dasharray: var(--v) 100; transition: stroke-dasharray 1.8s cubic-bezier(.6,.1,.2,1) .5s; }
.gauge b { display: block; font: 200 56px/1 var(--sans); margin-bottom: 8px; direction: ltr; }

.rings .rr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.ring { position: relative; display: grid; justify-items: center; gap: 8px; }
.ring svg { width: 104px; height: 104px; }
.ring b { position: absolute; top: 38px; left: 0; right: 0; font: 300 26px/1 var(--sans); direction: ltr; }
.ring > span { font: 400 15px/1.2 var(--sans); color: var(--muted); }

.split .bar { display: flex; height: 22px; border-radius: 11px; overflow: hidden; background: rgb(255 255 255 / .08); direction: rtl; }
.split .bar i { width: 0; background: var(--c); transition: width .4s; }
.slide.on .split .bar i { width: var(--w); transition: width 1.4s cubic-bezier(.2,.7,.2,1) .5s; }
.split .leg { display: grid; gap: 10px; margin-top: 18px; }
.split .leg span { display: flex; align-items: center; gap: 10px; font: 400 18px/1 var(--sans); color: var(--muted); }
.split .leg span i { width: 12px; height: 12px; border-radius: 3px; background: var(--c); }
.split .leg b { color: var(--ink); margin-inline-start: auto; }

.ba .pair { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ba .pair > div { display: grid; gap: 6px; }
.ba .pair b { font: 200 64px/1 var(--sans); color: var(--dim); text-decoration: line-through; text-decoration-thickness: 2px; }
.ba .pair .now b { color: var(--hi); text-decoration: none; }
.ba .pair b small { font-size: 22px; margin-inline-start: 4px; }
.ba .pair span { font: 400 16px/1 var(--sans); color: var(--muted); }
.ba .pair > i { font-style: normal; font-size: 30px; color: var(--hi); }


.sample { position: absolute; left: 36px; bottom: 30px; font: 600 14px/1 var(--sans); letter-spacing: .1em; color: rgb(255 255 255 / .5); }
#loader .name { margin: 0; font: 300 46px/1 var(--sans); color: var(--ink); }
#loader .sub { margin: 0; font: 600 14px/1 var(--sans); letter-spacing: .16em; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .bub.next::after { animation: none; } }

/* ================= gal: more words per slide ================= */
.in .head .t1 { font-size: 62px; }
.in .head .sub-t { margin-top: 16px; font: 400 25px/1.4 var(--sans); color: var(--hi); }
.in .head .body { margin-top: 22px; font: 300 21.5px/1.62 var(--sans); }
.in .head .pts { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.in .head .pts li { position: relative; padding-inline-start: 26px; font: 400 19.5px/1.45 var(--sans); color: var(--ink); }
.in .head .pts li::before { content: ""; position: absolute; right: 0; top: 10px; width: 12px; height: 2px; background: var(--hi); border-radius: 2px; }
.in .kpi b { font-size: 70px; }
.in .kpi .l { font-size: 19px; }
.in .kpi .x { display: block; margin-top: 8px; font: 400 16px/1.45 var(--sans); color: var(--dim); }
.mapimg { position: absolute; inset: 0; width: 600px; height: 640px; }
.fl.town { font: 600 16px/1 var(--sans); }
.fl.node-l { font: 600 17px/1.2 var(--sans); color: var(--ink); text-shadow: 0 2px 10px rgb(0 0 0 / .6); }
.fl.legend-l { font-size: 18px; display: flex; justify-content: center; align-items: center; gap: 10px; }
.fl .sw { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-inline-start: 14px; }
.tile { position: absolute; display: block; border-radius: 16px; border: 1px solid rgb(255 255 255 / .14); }
.pod { position: absolute; display: block; border-radius: 50%; border: 1px dashed rgb(138 180 255 / .45); background: rgb(138 180 255 / .05); }
.fl.gauge-v { font: 200 64px/1 var(--sans); color: var(--ink); direction: ltr; }
.fl .big.ltr { direction: ltr; unicode-bidi: isolate; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.fl.in-c.dark .big { color: var(--on-accent); font-size: 64px; }
.fl.in-c.dark small { font-size: 18px; font-weight: 600; }

/* a bubble that becomes the next one lights up gradually */
.bub .glass { transition: border-color .6s, box-shadow .6s; }
/* a slide that has finished leaving hides at once (no .35s beat with its pieces back at full opacity) */
.slide.in:not(.on):not(.off) { transition: none; }

/* the particle moves between figures (sand, shards, liquid) */
.portal .mfx { position: absolute; inset: 0; width: 1920px; height: 1080px; pointer-events: none; z-index: 6; }
