/* Reversible typography scene. Full semantic list is the no-JS default. */
.dn-asma{background:#f6f1e8;color:#123f35;--dn-asma-ink:#123f35;--dn-asma-gold:#8a6932;--dn-asma-progress:0;--dn-asma-y:0px;overflow:clip}
.dn-asma__intro{text-align:center;margin-inline:auto;max-width:760px;padding-bottom:20px}
.dn-asma .dn-asma__intro h2{font-size:clamp(1.8rem,3.6vw,3rem);line-height:1.8;color:var(--dn-asma-ink);margin:0 0 12px;text-wrap:balance}
.dn-asma__intro p{color:#52655b;font-size:14px;line-height:2;margin:0 0 12px}
.dn-asma .dn-asma__toggle{min-height:44px;font:inherit;font-size:12px;color:var(--dn-asma-ink);border:0;background:transparent;text-decoration:underline;text-underline-offset:6px;cursor:pointer;padding:8px 16px}
.dn-asma__toggle[hidden]{display:none!important}.dn-asma__toggle:focus-visible{outline:2px solid #8a6932;outline-offset:3px}
.dn-asma__runway{position:relative}
.dn-asma__window{position:relative;max-width:1400px;margin-inline:auto;padding:40px 24px}
.dn-asma__names{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));align-items:center;gap:38px 22px;list-style:none;margin:0;padding:32px 0;transform:translateY(var(--dn-asma-y))}
.dn-asma .dn-asma__name{margin:0;padding:0;list-style:none;text-align:center;min-width:0;font-family:"GN Vazirmatn",Tahoma,sans-serif;font-size:calc(1.18rem * var(--dn-name-size));font-weight:500;line-height:2.2;color:var(--dn-asma-ink);word-break:normal;overflow-wrap:normal;transform:translateY(calc(var(--dn-name-offset) + var(--dn-name-drift) * var(--dn-asma-progress)));text-shadow:none}
.dn-asma .dn-asma__name--1{color:var(--dn-asma-gold);font-weight:400}.dn-asma .dn-asma__name--2{color:#496e5d;font-size:calc(1.05rem * var(--dn-name-size));font-weight:400}
.dn-asma .dn-asma__name--long{font-size:1rem}
.dn-asma.dn-asma--motion .dn-asma__runway{height:230svh;min-height:1400px;max-height:2600px}
.dn-asma.dn-asma--motion .dn-asma__window{position:sticky;top:10svh;height:78svh;max-height:840px;min-height:360px;overflow:hidden;mask-image:linear-gradient(to bottom,transparent,#000 14%,#000 83%,transparent);-webkit-mask-image:linear-gradient(to bottom,transparent,#000 14%,#000 83%,transparent)}
.dn-asma.dn-asma--motion .dn-asma__window::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 50% 50%,rgba(196,164,106,.08),transparent 65%)}
.dn-asma__names::selection,.dn-asma__names li::selection{color:#f6f1e8;background:#123f35}
@media(max-width:1024px){.dn-asma__names{grid-template-columns:repeat(5,minmax(0,1fr));gap:30px 18px}.dn-asma.dn-asma--motion .dn-asma__runway{height:245svh}}
@media(max-width:600px){.dn-asma__intro{padding-bottom:8px}.dn-asma__intro p{font-size:12px}.dn-asma__window{padding:32px 12px}.dn-asma__names{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 10px;padding-block:26px}.dn-asma .dn-asma__name{font-size:calc(.92rem * var(--dn-name-size));line-height:2.4}.dn-asma .dn-asma__name--2{font-size:calc(.85rem * var(--dn-name-size))}.dn-asma .dn-asma__name--long{font-size:.78rem}.dn-asma.dn-asma--motion .dn-asma__runway{height:285svh;min-height:1500px;max-height:3000px}.dn-asma.dn-asma--motion .dn-asma__window{top:7svh;height:78svh;min-height:300px}}
@media(max-height:480px){.dn-asma.dn-asma--motion .dn-asma__window{top:0;height:100svh;min-height:0}}
@media(prefers-reduced-motion:reduce){.dn-asma.dn-asma--motion .dn-asma__runway{height:auto;min-height:0;max-height:none}.dn-asma.dn-asma--motion .dn-asma__window{position:relative;top:auto;height:auto;min-height:0;max-height:none;overflow:visible;mask-image:none;-webkit-mask-image:none}.dn-asma .dn-asma__names,.dn-asma .dn-asma__name{transform:none!important}}

/* Locally hosted Nastaliq, with full Arabic marks and no font service request. */
@font-face{font-family:"DN Asma Nastaliq";src:url("fonts/dn-asma-nastaliq.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
.dn-asma{background-color:#f6f1e8;background-image:radial-gradient(ellipse at 20% 25%,rgba(196,164,106,.09),transparent 58%),radial-gradient(ellipse at 82% 72%,rgba(18,63,53,.035),transparent 55%),linear-gradient(110deg,#f8f4ec,#f6f1e8 48%,#f0e8d9)}
.dn-asma.dn-asma--motion .dn-asma__names{position:relative;display:block;direction:ltr;padding:0;min-height:600px}
.dn-asma .dn-asma__name{font-family:"DN Asma Nastaliq","GN Vazirmatn",serif!important;font-size:calc(1.6rem * var(--dn-name-size));font-weight:400;line-height:2.8;letter-spacing:0;font-synthesis:none;font-kerning:normal;font-feature-settings:"rlig" 1,"calt" 1;overflow:visible;transform:none}
.dn-asma .dn-asma__name--2{font-size:calc(1.45rem * var(--dn-name-size))}
.dn-asma .dn-asma__name--long{font-size:1.25rem}
.dn-asma.dn-asma--motion .dn-asma__name{position:absolute;width:max-content;max-width:none;white-space:nowrap;direction:rtl;padding:10px 18px;transform-origin:50% 50%;transform:translateY(calc(var(--dn-name-drift) * var(--dn-asma-progress))) rotate(var(--dn-name-angle,0deg)) scale(var(--dn-pack-scale,1))}
.dn-asma.dn-asma--motion .dn-asma__runway{height:290svh;max-height:3300px}
.dn-asma.dn-asma--motion .dn-asma__window::before{background:none}
@media(max-width:1024px){.dn-asma .dn-asma__name{font-size:calc(1.4rem * var(--dn-name-size))}.dn-asma .dn-asma__name--2{font-size:calc(1.3rem * var(--dn-name-size))}}
@media(max-width:600px){.dn-asma .dn-asma__name{font-size:calc(1.12rem * var(--dn-name-size));line-height:2.8}.dn-asma .dn-asma__name--2{font-size:calc(1.05rem * var(--dn-name-size))}.dn-asma .dn-asma__name--long{font-size:1rem}.dn-asma.dn-asma--motion .dn-asma__name{padding:8px 12px}.dn-asma.dn-asma--motion .dn-asma__runway{height:350svh;max-height:3900px}}
@media(prefers-reduced-motion:reduce){.dn-asma.dn-asma--motion .dn-asma__names{display:grid;height:auto!important}.dn-asma.dn-asma--motion .dn-asma__name{position:static;width:auto;white-space:normal;padding:0;transform:none!important}.dn-asma.dn-asma--motion .dn-asma__runway{height:auto;max-height:none;min-height:0}}
.dn-asma:not(.dn-asma--motion) .dn-asma__names{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 20px}
.dn-asma:not(.dn-asma--motion) .dn-asma__name{font-size:1.5rem;line-height:3}
.dn-asma:not(.dn-asma--motion) .dn-asma__name--long{font-size:1.15rem}
@media(max-width:768px){.dn-asma:not(.dn-asma--motion) .dn-asma__names{grid-template-columns:repeat(3,minmax(0,1fr))}.dn-asma:not(.dn-asma--motion) .dn-asma__name{font-size:1.25rem}}
@media(max-width:600px){.dn-asma:not(.dn-asma--motion) .dn-asma__names{grid-template-columns:repeat(2,minmax(0,1fr))}.dn-asma:not(.dn-asma--motion) .dn-asma__name{font-size:1.15rem}.dn-asma:not(.dn-asma--motion) .dn-asma__name--long{font-size:1rem}}

/* Start the names immediately below the introduction, without an empty lead-in. */
.dn-asma__intro{padding-bottom:0}
.dn-asma.dn-asma--motion .dn-asma__window{padding-block:8px;mask-image:linear-gradient(to bottom,transparent,#000 5%,#000 90%,transparent);-webkit-mask-image:linear-gradient(to bottom,transparent,#000 5%,#000 90%,transparent)}

/* Individual breathing motion is on an inner layer; scroll and angles remain intact. */
.dn-asma__float{display:inline-block;transform-origin:center}
@media(prefers-reduced-motion:no-preference){
 .dn-asma--motion .dn-asma__float{animation:dn-asma-float var(--dn-float-duration,9s) ease-in-out infinite;animation-delay:var(--dn-float-delay,0s);animation-play-state:paused}
 .dn-asma--motion.dn-asma--onscreen .dn-asma__float{animation-play-state:running}
 @keyframes dn-asma-float{0%,100%{transform:translate3d(0,0,0) rotate(0deg)}25%{transform:translate3d(var(--dn-float-x),calc(-1 * var(--dn-float-y)),0) rotate(var(--dn-float-turn))}65%{transform:translate3d(calc(-.65 * var(--dn-float-x)),calc(.45 * var(--dn-float-y)),0) rotate(calc(-.7 * var(--dn-float-turn)))}}
}
@media(prefers-reduced-motion:reduce){.dn-asma .dn-asma__float{animation:none!important;transform:none!important}}

/* One stationary full-viewport scene; only the names travel inside it. */
.dn-asma.dn-asma--sky{padding-block:0;background:#f6f1e8;--dn-asma-top:0px}
.dn-asma--sky .dn-asma__runway{position:relative}
.dn-asma--sky .dn-asma__window{position:relative;isolation:isolate;max-width:none;width:100%;padding:0;margin:0;mask-image:none;-webkit-mask-image:none}
.dn-asma--sky .dn-asma__sky{display:block;position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.dn-asma--sky .dn-asma__sky img{display:block!important;width:100%!important;height:100%!important;max-width:none;object-fit:cover;object-position:50% 50%;margin:0}
.dn-asma--sky .dn-asma__sky--foreground{z-index:3;mask-image:linear-gradient(to bottom,transparent 58%,rgba(0,0,0,.15) 66%,#000 82%);-webkit-mask-image:linear-gradient(to bottom,transparent 58%,rgba(0,0,0,.15) 66%,#000 82%)}
.dn-asma--sky .dn-asma__window>.dn-wrap{position:relative;z-index:4;padding-block:clamp(24px,5svh,56px) 0;pointer-events:none}
.dn-asma--sky .dn-asma__intro{margin:auto;padding:0 16px 12px}
.dn-asma--sky .dn-asma__intro h2{font-size:clamp(1.5rem,3.2vw,2.8rem);line-height:1.8;margin-bottom:8px}
.dn-asma--sky .dn-asma__intro p{font-size:12px;margin-bottom:4px}
.dn-asma--sky .dn-asma__toggle{pointer-events:auto}
.dn-asma--sky .dn-asma__viewport{position:relative;z-index:2;overflow:hidden}
.dn-asma--sky .dn-asma__names{width:calc(100% - 40px);max-width:1400px;margin-inline:auto}
.dn-asma--sky.dn-asma--motion .dn-asma__window{position:sticky;top:var(--dn-asma-top);height:calc(100svh - var(--dn-asma-top));min-height:0;max-height:none;padding:0;overflow:hidden;mask-image:none;-webkit-mask-image:none}
.dn-asma--sky.dn-asma--motion .dn-asma__window::before{display:none}
.dn-asma--sky.dn-asma--motion .dn-asma__viewport{position:absolute;inset:clamp(152px,24svh,240px) 0 0;mask-image:linear-gradient(to bottom,transparent,#000 8%,#000 65%,transparent 96%);-webkit-mask-image:linear-gradient(to bottom,transparent,#000 8%,#000 65%,transparent 96%)}
body.admin-bar .dn-asma--sky{--dn-asma-top:32px}
.dn-asma--sky:not(.dn-asma--motion) .dn-asma__sky{height:100svh;bottom:auto;opacity:.4}
.dn-asma--sky:not(.dn-asma--motion) .dn-asma__sky--foreground{display:none}
.dn-asma--sky:not(.dn-asma--motion) .dn-asma__viewport{overflow:visible}
@media(max-width:782px){body.admin-bar .dn-asma--sky{--dn-asma-top:46px}}
@media(max-width:600px){body.admin-bar .dn-asma--sky{--dn-asma-top:0px}.dn-asma--sky .dn-asma__window>.dn-wrap{padding-top:20px}.dn-asma--sky .dn-asma__intro{padding-inline:0}.dn-asma--sky .dn-asma__intro p{font-size:11px}.dn-asma--sky.dn-asma--motion .dn-asma__viewport{inset:152px 0 0}.dn-asma--sky .dn-asma__names{width:calc(100% - 20px)}}
@media(max-height:480px) and (min-width:601px){.dn-asma--sky .dn-asma__window>.dn-wrap{padding-top:8px}.dn-asma--sky .dn-asma__intro h2{font-size:22px}.dn-asma--sky .dn-asma__intro p{display:none}.dn-asma--sky.dn-asma--motion .dn-asma__viewport{inset:100px 0 0}}
@media(prefers-reduced-motion:reduce){.dn-asma--sky.dn-asma--motion .dn-asma__runway{height:auto!important;min-height:0;max-height:none}.dn-asma--sky.dn-asma--motion .dn-asma__window{position:relative;top:auto;height:auto;overflow:visible}.dn-asma--sky.dn-asma--motion .dn-asma__viewport{position:relative;inset:auto;mask-image:none;-webkit-mask-image:none;overflow:visible}.dn-asma--sky .dn-asma__sky--foreground{display:none}}

.dn-asma--sky.dn-asma--motion .dn-asma__runway{min-height:0;max-height:none}
/* Blend only the real scene boundaries; the stationary sky stays crisp in between. */
.dn-asma.dn-asma--sky{position:relative;isolation:isolate}
.dn-asma--sky::before,.dn-asma--sky::after{content:"";position:absolute;inset-inline:0;z-index:5;pointer-events:none}
.dn-asma--sky::before{top:-1px;height:clamp(100px,10vw,150px);background:linear-gradient(to bottom,var(--dn-deep,#092c25) 0%,rgba(9,44,37,.9) 6%,rgba(9,44,37,.45) 24%,rgba(9,44,37,.12) 52%,transparent 100%)}
.dn-asma--sky::after{bottom:-1px;height:clamp(140px,15vw,240px);background:linear-gradient(to bottom,transparent 0%,rgba(246,241,232,.1) 22%,rgba(246,241,232,.48) 58%,rgba(246,241,232,.9) 85%,#f6f1e8 100%)}
