/* Presentation mode: a 1600 × 900 stage scaled to the screen, one slide at a time, builds on every click. */
html, body { height: 100%; }
body.deck { margin: 0; overflow: hidden; background: #0A0B0E; }
.d-viewport { position: fixed; inset: 0; }
.d-stage { position: absolute; left: 50%; top: 50%; width: 1600px; height: 900px; transform-origin: 50% 50%; flex: none; overflow: hidden; background: var(--paper); border-radius: 6px; }
.d-slide { position: absolute; inset: 0; padding: 84px 96px 110px; opacity: 0; pointer-events: none; clip-path: inset(0 0 0 100%); transition: opacity .5s var(--ease), clip-path .9s var(--ease); display: grid; }
html[dir="rtl"] .d-slide:not(.on):not(.past) { clip-path: inset(0 100% 0 0); }
.d-slide.on { opacity: 1; pointer-events: auto; clip-path: inset(0 0 0 0); }
.d-slide.past { opacity: 0; clip-path: inset(0 0 0 0); }
.d-slide.dark { background: var(--night); color: var(--on-night); }
.d-slide.field { background: var(--accent); color: #fff; }
.d-slide .kick { font: 700 15px/1 var(--font-text); color: var(--accent-text); letter-spacing: .02em; margin: 0 0 18px; }
.d-slide.dark .kick, .d-slide.field .kick { color: inherit; opacity: .7; }
.d-slide h2 { font: 800 68px/1.08 var(--font-display); letter-spacing: -0.035em; margin: 0 0 18px; max-width: 18ch; }
html[lang="ar"] .d-slide h2 { letter-spacing: 0; line-height: 1.3; font-size: 60px; }
.d-slide .lead { font-size: 24px; max-width: 34ch; }
.d-slide.dark .lead { color: var(--on-night-2); }
.d-in > * { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.d-slide.on .d-in > * { opacity: 1; transform: none; }
.d-slide.on .d-in > *:nth-child(2) { transition-delay: .12s; } .d-slide.on .d-in > *:nth-child(3) { transition-delay: .24s; } .d-slide.on .d-in > *:nth-child(4) { transition-delay: .36s; }
/* title */
.d-title { padding: 0; }
.d-title canvas { position: absolute; inset: 0 0 auto 0; width: 100%; height: 60%; }
.d-title { background: var(--night); }
.d-title .d-over { position: absolute; inset-inline: 96px; bottom: 112px; color: var(--on-night); }
.d-title h1 { font: 800 100px/1.0 var(--font-display); letter-spacing: -0.045em; margin: 0 0 20px; max-width: 14ch; }
html[lang="ar"] .d-title h1 { letter-spacing: 0; line-height: 1.22; font-size: 84px; }
.d-title .d-over p { font-size: 26px; color: var(--on-night-2); margin: 0; }
.d-title .d-co { position: absolute; top: 56px; inset-inline-start: 96px; display: flex; gap: 14px; align-items: center; color: var(--on-night); font: 700 20px var(--font-display); }
.d-title .d-co i { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; font: 800 14px var(--font-display); font-style: normal; color: #fff; }
/* statement */
.d-statement { align-content: center; }
.d-statement p { font: 800 64px/1.22 var(--font-display); letter-spacing: -0.03em; margin: 0; max-width: 24ch; }
html[lang="ar"] .d-statement p { letter-spacing: 0; line-height: 1.55; font-size: 56px; }
.d-statement .w { opacity: .14; transition: opacity .5s var(--ease); }
.d-statement .w.on { opacity: 1; } .d-statement .w.hl.on { color: var(--accent-text); }
/* screen */
.d-screen { grid-template-columns: 470px 1fr; gap: 56px; align-items: center; }
.d-screen .screen { box-shadow: 0 50px 90px -40px rgba(0,0,0,.45); }
.d-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.d-points li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 20px; line-height: 1.45; opacity: .12; transition: opacity .5s var(--ease), transform .6s var(--ease); transform: translateX(-10px); }
html[dir="rtl"] .d-points li { transform: translateX(10px); }
.d-points li.on { opacity: 1; transform: none; }
.d-points li b { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: #fff; display: grid; place-items: center; font: 700 14px var(--font-text); }
/* flow */
.d-flow { grid-template-rows: auto 1fr; }
.d-flow .flow { height: 560px; aspect-ratio: auto; margin-top: 6px; }
.d-flow h2 { font-size: 52px; max-width: 24ch; margin-bottom: 0; }
html[lang="ar"] .d-flow h2 { font-size: 46px; }
.d-flow .d-flow-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.d-flow .flow-count { font-size: 56px; }
/* kpis */
.d-kpis { align-content: center; }
.d-kgrid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid currentColor; margin-top: 40px; }
.d-k { padding: 28px 24px 0 0; opacity: .15; transition: opacity .5s var(--ease); }
html[dir="rtl"] .d-k { padding: 28px 0 0 24px; }
.d-k.on { opacity: 1; }
.d-k b { display: block; font: 800 74px/1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.d-k > span { display: block; margin-top: 12px; font-size: 19px; opacity: .8; max-width: 18ch; }
.d-src { position: absolute; bottom: 104px; inset-inline-start: 96px; font-size: 14px; opacity: .6; }
/* apps */
.d-apps { align-content: center; }
.d-apps .eco { margin-top: 36px; }
.d-apps .eco a { min-height: 300px; }
/* chrome */
.d-rail { position: absolute; inset-inline: 96px; bottom: 44px; height: 24px; z-index: 5; }
.d-rail .ln { position: absolute; inset-inline: 0; top: 11px; height: 2px; background: color-mix(in srgb, currentColor 18%, transparent); }
.d-rail .fill { position: absolute; inset-inline-start: 0; top: 11px; height: 2px; background: var(--accent); transition: width .8s var(--ease); }
.d-rail .st { position: absolute; top: 7px; width: 10px; height: 10px; margin-inline-start: -5px; border-radius: 3px; background: color-mix(in srgb, currentColor 25%, transparent); }
.d-rail .st.done { background: var(--accent); }
.d-rail .pc { position: absolute; top: 2px; width: 20px; height: 20px; margin-inline-start: -10px; border-radius: 6px; background: var(--accent); transition: inset-inline-start .8s var(--ease); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 25%, transparent); }
.d-chrome { position: absolute; inset-inline: 96px; bottom: 74px; display: flex; justify-content: space-between; font-size: 13px; opacity: .55; z-index: 5; pointer-events: none; }
.d-dark-chrome .d-rail, .d-dark-chrome .d-chrome { color: var(--on-night); }
.d-tools { position: fixed; top: 14px; inset-inline-end: 14px; display: flex; gap: 8px; z-index: 20; opacity: .35; transition: opacity .3s; }
.d-tools:hover, .d-tools:focus-within { opacity: 1; }
.d-tools .btn { min-height: 38px; padding: 0 14px; background: #16181E; color: #F3F1EC; border-color: #2A2D36; font-size: 13px; }
.d-hint { direction: ltr; unicode-bidi: isolate;  position: fixed; bottom: 12px; inset-inline-start: 50%; transform: translateX(-50%); color: #6E717A; font-size: 12px; z-index: 20; }
html[dir="rtl"] .d-hint { direction: ltr; unicode-bidi: isolate;  transform: translateX(50%); }
@media (prefers-reduced-motion: reduce) { .d-slide, .d-in > *, .d-points li, .d-k, .d-statement .w { transition: none !important; } }
