I'll need to break this into parts.
Mary in the Catechism of the Catholic Church
484 The Annunciation to Mary inaugurates "the fullness of time,"[119] the time of the fulfillment of God's promises and preparations. Mary was invited to conceive him in whom the "whole fullness of deity" would dwell "bodily."[120] The divine response to her question, "How can this be, since I know not man?," was given by the power of the Spirit: "The Holy Spirit will come upon you."[121]
485 The mission of the Holy Spirit is always conjoined and ordered to that of the Son.[122] The Holy Spirit, "the Lord, the giver of Life," is sent to sanctify the womb of the Virgin Mary and divinely fecundate it, causing her to conceive the eternal Son of the Father in a humanity drawn from her own.
486 The Father's only Son, conceived as man in the womb of the Virgin Mary, is "Christ," that is to say, anointed by the Holy Spirit, from the beginning of his human existence, though the manifestation of this fact takes place only progressively: to the shepherds, to the magi, to John the Baptist, to the disciples.[123] Thus the whole life of Jesus Christ will make manifest "how God anointed Jesus of Nazareth with the Holy Spirit and with power."[124]
487 What the Catholic faith believes about Mary is based on what it believes about Christ, and what it teaches about Mary illumines in turn its faith in Christ.
Mary's predestination
488 "God sent forth his Son," but to prepare a body for him,[125] he wanted the free co-operation of a creature. For this, from all eternity God chose for the mother of his Son a daughter of Israel, a young Jewish woman of Nazareth in Galilee, "a virgin betrothed to a man whose name was Joseph, of the house of David; and the virgin's name was Mary":[126]
The Father of mercies willed that the Incarnation should be preceded by assent on the part of the predestined mother, so that just as a woman had a share in the coming of death, so also should a woman contribute to the coming of life.[127]
489 Throughout the Old Covenant the mission of many holy women prepared for that of Mary. At the very beginning there was Eve; despite her disobedience, she receives the promise of a posterity that will be victorious over the evil one, as well as the promise that she will be the mother of all the living.[128] By virtue of this promise, Sarah conceives a son in spite of her old age.[129] Against all human expectation God chooses those who were considered powerless and weak to show forth his faithfulness to his promises: Hannah, the mother of Samuel; Deborah; Ruth; Judith and Esther; and many other women.[130] Mary "stands out among the poor and humble of the Lord, who confidently hope for and receive salvation from him. After a long period of waiting the times are fulfilled in her, the exalted Daughter of Sion, and the new plan of salvation is established."[131]
The Immaculate Conception
490 To become the mother of the Savior, Mary "was enriched by God with gifts appropriate to such a role."[132] The angel Gabriel at the moment of the annunciation salutes her as "full of grace."[133] In fact, in order for Mary to be able to give the free assent of her faith to the announcement of her vocation, it was necessary that she be wholly borne by God's grace.
491 Through the centuries the Church has become ever more aware that Mary, "full of grace" through God,[134] was redeemed from the moment of her conception. That is what the dogma of the Immaculate Conception confesses, as Pope Pius IX proclaimed in 1854:
The most Blessed Virgin Mary was, from the first moment of her conception, by a singular grace and privilege of almighty God and by virtue of the merits of Jesus Christ, Savior of the human race, preserved immune from all stain of original sin.[135]
492 The "splendor of an entirely unique holiness" by which Mary is "enriched from the first instant of her conception" comes wholly from Christ: she is "redeemed, in a more exalted fashion, by reason of the merits of her Son."[136] The Father blessed Mary more than any other created person "in Christ with every spiritual blessing in the heavenly places" and chose her "in Christ before the foundation of the world, to be holy and blameless before him in love."[137]
493 The Fathers of the Eastern tradition call the Mother of God "the All-Holy" (Panagia), and celebrate her as "free from any stain of sin, as though fashioned by the Holy Spirit and formed as a new creature."[138] By the grace of God Mary remained free of every personal sin her whole life long.