/* Shared by the three demos: reveal-on-scroll, direction-aware arrows, and the demo control pill. */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
ul,ol{list-style:none;margin:0;padding:0}
h1,h2,h3,h4,p,figure{margin:0}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
:focus-visible{outline:2px solid currentColor;outline-offset:3px}
[dir="ltr"] .tx-arrow,[dir="ltr"] .tx-arrow-out{transform:scaleX(-1)}
.lat{font-family:var(--latin);direction:ltr;unicode-bidi:isolate}
[dir="rtl"] .lat{text-align:right}

/* reveal on scroll (only when the visitor has not asked for reduced motion) */
.js-rv [data-rv]{opacity:0;transform:translate3d(0,20px,0);transition:opacity .8s cubic-bezier(.2,.7,.2,1),transform .8s cubic-bezier(.2,.7,.2,1);transition-delay:var(--d,0ms)}
.js-rv [data-rv].in{opacity:1;transform:none}
.js-rv [data-rv="fade"]{transform:none}
.js-rv [data-rv="img"]{opacity:1;transform:none;clip-path:inset(0 0 100% 0);transition:clip-path 1.1s cubic-bezier(.2,.7,.2,1);transition-delay:var(--d,0ms)}
.js-rv [data-rv="img"].in{clip-path:inset(0 0 0 0)}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* demo control pill (not part of the website design) */
.txd{position:fixed;inset-block-end:14px;left:50%;transform:translateX(-50%);z-index:90;display:flex;align-items:center;gap:4px;padding:5px;border-radius:999px;background:rgba(14,15,20,.9);color:#fff;font:500 12.5px/1 "IBM Plex Sans Arabic",system-ui,sans-serif;box-shadow:0 8px 30px rgba(0,0,0,.28);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.txd a{display:grid;place-items:center;height:30px;border-radius:999px;white-space:nowrap;color:rgba(255,255,255,.72);transition:background .2s,color .2s}
.txd-back{padding:0 13px}
.txd-s{width:30px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}
.txd a:hover{color:#fff;background:rgba(255,255,255,.12)}
.txd a.on{background:#fff;color:#0e0f14}
.txd-sep{width:1px;height:16px;background:rgba(255,255,255,.2);margin:0 3px}
@media print{.txd{display:none}}
/* on phones, lift each style's WhatsApp button above the demo bar */
@media (max-width:700px){body .fab{bottom:64px}}
