/* ===== BACKGROUND: looping video on a 3D stage ===== */

        #block-welcome .bg-wall {
          position: absolute;
          inset: 0;
          z-index: 0;
          overflow: hidden;
          pointer-events: none;
          /* Keep background repaints contained. */
          contain: paint;
          perspective: 1100px;
          perspective-origin: 50% 45%;
        }

        /* ===== BACKGROUND VIDEO ===== */
        #block-welcome .bg-video {
          position: absolute;
          inset: 0;
          width: 100%;
          height: 100%;
          object-fit: cover;
          /* Own compositing layer; avoid filters on the video for performance. */
          transform: translateZ(0);
          will-change: transform;
          backface-visibility: hidden;
        }

        /* Background overlay: brand deep blue, densest in the centre so the text reads over the video */
        #block-welcome .bg-overlay {
          position: absolute;
          inset: 0;
          z-index: 1;
          background:
            radial-gradient(ellipse 62% 72% at center, rgba(var(--pro-brand-deep-rgb), .97) 0%, rgba(var(--pro-brand-deep-rgb), .90) 52%, rgba(var(--pro-brand-deep-rgb), .80) 100%),
            /* Vignette deepening towards the top and bottom edges. */
            linear-gradient(180deg, rgba(0, 0, 0, .42) 0%, rgba(0, 0, 0, .22) 38%, rgba(0, 0, 0, .55) 100%);
        }

        /* ===== QUICK LINK CARDS ===== */

        #block-welcome .feature-item {
          background-color: rgba(255, 255, 255, .08);
          border: var(--bs-border-width) solid rgba(255, 255, 255, .14);
          backdrop-filter: blur(2px);
          transition: background-color .4s ease-in-out, border-color .4s ease-in-out, transform .4s ease-in-out;
        }

        /* ===== GOLD GLOW CIRCLING THE CARD BORDER ===== */

        @property --pro-ring {
          syntax: '<angle>';
          initial-value: 0deg;
          inherits: false;
        }

        #block-welcome .feature-item::before {
          content: "";
          position: absolute;
          inset: 0;
          z-index: 2;
          border-radius: inherit;
          padding: 2px;                     /* Ring thickness. */
          /* Shooting star: long blue tail, short gold core, white tip. */
          background-image: conic-gradient(from var(--pro-ring),
            rgba(var(--bs-secondary-rgb), 0) 0deg,
            rgba(var(--bs-secondary-rgb), 0) 250deg,
            rgba(var(--bs-secondary-rgb), .28) 292deg,
            rgba(var(--bs-secondary-rgb), .80) 332deg,
            rgba(var(--bs-gold-rgb), 1) 350deg,
            rgba(255, 255, 255, 1) 357deg,
            rgba(var(--bs-gold-rgb), 0) 360deg);
          -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
                  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          -webkit-mask-composite: xor;
                  mask-composite: exclude;
          pointer-events: none;
          /* Glow: a single gold drop-shadow. */
          filter: drop-shadow(0 0 6px rgba(var(--bs-gold-rgb), .85));
          opacity: 0;
          transition: opacity .4s ease-in-out;
        }

        /* Ring glow only on hover / keyboard focus */
        #block-welcome .feature-item:hover::before,
        #block-welcome .feature-item:focus-within::before {
          opacity: 1;
          animation: pro-ring-spin 4s linear infinite;
        }

        @keyframes pro-ring-spin {
          to { --pro-ring: 360deg; }
        }

        @media (prefers-reduced-motion: reduce) {
          #block-welcome .feature-item:hover::before,
          #block-welcome .feature-item:focus-within::before {
            animation: none;
          }
        }
        /* Hover: glass brightens and lifts slightly. */
        #block-welcome .feature-item:hover,
        #block-welcome .feature-item:focus-within {
          background-color: rgba(255, 255, 255, .16);
          border-color: rgba(255, 255, 255, .32);
          transform: translateY(-.25rem);
          box-shadow: 0 .75rem 1.75rem rgba(0, 0, 0, .22);
        }
        #block-welcome .feature-item .item-title a {
          color: #fff;
        }

        /* Flaticon outline PNG, already coloured brand deep blue (#254a9f):
           white on the card, its own colour on the white hover circle */
        #block-welcome .feature-item .item-image img {
          filter: brightness(0) invert(1);
          transition: filter .4s ease-in-out;
        }

        #block-welcome .feature-item:hover .item-image img,
        #block-welcome .feature-item:focus-within .item-image img {
          filter: none;
        }

        /* Remove the underline the icon link draws. */
        #block-welcome .feature-item .item-media {
          text-decoration: none;
        }

        /* Compact tile: small icon in a light circle. */
        #block-welcome .feature-item {
          gap: .875rem;
          padding: 1.25rem 1rem !important;
        }
        #block-welcome .welcome-icon {
          flex-shrink: 0;
          align-self: center;
          display: flex;
          align-items: center;
          justify-content: center;
          width: 3.25rem;
          height: 3.25rem;
          border-radius: 50%;
          background-color: rgba(255, 255, 255, .12);
          transition: background-color .4s ease-in-out, transform .4s ease-in-out;
        }
        #block-welcome .welcome-icon .item-image {
          width: 1.625rem;
        }
        #block-welcome .feature-item:hover .welcome-icon,
        #block-welcome .feature-item:focus-within .welcome-icon {
          background-color: #fff;
          transform: scale(1.08);
        }
        @media (prefers-reduced-motion: reduce) {
          #block-welcome .feature-item:hover .welcome-icon,
          #block-welcome .feature-item:focus-within .welcome-icon { transform: none; }
        }
        #block-welcome .feature-item .item-title {
          font-size: .8125rem;
          font-weight: 600 !important;
          letter-spacing: .02em;
          line-height: 1.4;
          -webkit-line-clamp: 3;
        }
        @media (max-width: 575.98px) {
          #block-welcome .feature-item {
            padding: 1rem .625rem !important;
          }
          #block-welcome .feature-item .item-title {
            font-size: .75rem;
            -webkit-line-clamp: 4;
          }
        }

        @media (prefers-reduced-motion: reduce) {
          #block-welcome .feature-item { transition: none; }
          #block-welcome .feature-item:hover,
          #block-welcome .feature-item:focus-within { transform: none; }
        }

        /* ===== SOCIAL (bottom bar): white, gold on hover ===== */

        #block-welcome .social-link,
        #block-welcome .social-link > i {
          color: #fff;
          transition: color .4s ease-in-out;
        }
        #block-welcome .social-link:hover,
        #block-welcome .social-link:hover > i {
          color: var(--bs-gold);
        }

        #block-welcome .intro-sub {
          letter-spacing: .1rem;
        }

        /* ===== BRAND NAME: serif with tracking, like the header band ===== */

        #block-welcome .intro-title > h1 {
          font-family: var(--pro-font-serif);
          font-size: clamp(1.375rem, 1.6vw + .9rem, 2.125rem);
          letter-spacing: .04em;
          line-height: 1.15;
        }

        /* Short gold underline below the name. */
        #block-welcome .intro-title::after {
          content: "";
          display: block;
          width: 3.5rem;
          height: 2px;
          margin: .875rem auto 0;
          background-image: linear-gradient(90deg, rgba(var(--bs-gold-rgb), 0) 0%, rgb(var(--bs-gold-rgb)) 50%, rgba(var(--bs-gold-rgb), 0) 100%);
        }

        /* ===== INTRO ANIMATION, scoped to .intro-ready so no-JS stays visible ===== */

        /* Step 1: emblem zooms in from blur. */
        #block-welcome.intro-ready .intro-brand > span {
          animation: intro-emblem 2s cubic-bezier(.16, 1, .3, 1) both;
        }

        /* Step 2: name tracking tightens in after the emblem. */
        #block-welcome.intro-ready .intro-title > h1 {
          animation: intro-title 1.4s cubic-bezier(.16, 1, .3, 1) .9s both;
        }
        #block-welcome.intro-ready .intro-sub {
          animation: intro-sub 1.4s cubic-bezier(.16, 1, .3, 1) 1.15s both;
        }

        /* Step 3: brand lifts from the centre into place. */
        #block-welcome.intro-ready .intro-brand {
          animation: intro-lift 1.3s cubic-bezier(.16, 1, .3, 1) 1.75s both;
        }

        /* Step 4: cards appear one by one. */
        #block-welcome.intro-ready .intro-items > .col-item {
          animation: intro-item-in .9s cubic-bezier(.16, 1, .3, 1) both;
          animation-delay: calc(2.5s + var(--i, 0) * .12s);
        }
        /* Step 5: intro video button after the cards. */
        #block-welcome.intro-ready .intro-cta {
          animation: intro-item-in .9s cubic-bezier(.16, 1, .3, 1) both;
          animation-delay: 3.25s;
        }
        /* Step 6: bottom bar. */
        #block-welcome.intro-ready .intro-foot {
          animation: intro-item-in .9s ease-out both;
          animation-delay: 3.55s;
        }

        @keyframes intro-emblem {
          from { opacity: 0; transform: scale(.72); filter: blur(12px); }
          60%  { opacity: 1; }
          to   { opacity: 1; transform: scale(1);   filter: blur(0); }
        }

        @keyframes intro-title {
          from { opacity: 0; transform: translateY(.75rem); }
          to   { opacity: 1; transform: translateY(0); }
        }

        @keyframes intro-sub {
          from { opacity: 0; letter-spacing: .5rem; }
          to   { opacity: 1; letter-spacing: .1rem; }
        }

        @keyframes intro-lift {
          from { transform: translateY(var(--intro-shift, 6rem)); }
          to   { transform: translateY(0); }
        }

        @keyframes intro-item-in {
          from { opacity: 0; transform: translateY(1.5rem) scale(.98); }
          to   { opacity: 1; transform: translateY(0) scale(1); }
        }

        @media (prefers-reduced-motion: reduce) {
          #block-welcome.intro-ready .intro-brand,
          #block-welcome.intro-ready .intro-brand > span,
          #block-welcome.intro-ready .intro-title > h1,
          #block-welcome.intro-ready .intro-sub,
          #block-welcome.intro-ready .intro-items > .col-item,
          #block-welcome.intro-ready .intro-cta,
          #block-welcome.intro-ready .intro-foot {
            animation: none;
          }
        }

        /* ===== Traditional Mongolian script: vertical text, row layout ===== */

        #block-welcome[lang="mn-Mong"] .intro-title > h1,
        #block-welcome[lang="mn-Mong"] .item-title:not([lang="zxx"]),
        #block-welcome[lang="mn-Mong"] .intro-cta .btn > span {
          font-family: "Noto Sans Mongolian", "Mongolian Baiti", sans-serif;
          writing-mode: vertical-lr;
          text-transform: none;
          letter-spacing: normal;
          /* Physical margins: in vertical mode margin-inline is top/bottom */
          width: fit-content;
          margin-left: auto;
          margin-right: auto;
          text-align: start;
        }

        #block-welcome[lang="mn-Mong"] .intro-title > h1 {
          align-self: center;
          font-size: clamp(1.125rem, .8vw + .85rem, 1.5rem);
          line-height: 1.6;
        }

        #block-welcome[lang="mn-Mong"] .item-title {
          height: 9rem;
          font-size: 1rem;
          line-height: 1.5;
        }

        #block-welcome[lang="mn-Mong"] .intro-cta .btn {
          flex-direction: column;
          align-items: center;
          padding-block: 1rem;
        }

        /* Desktop: brand left, cards centre, button right */
        @media (min-width: 992px) {
          #block-welcome[lang="mn-Mong"] .wrapper {
            flex-direction: row !important;
            justify-content: center;
          }

          #block-welcome[lang="mn-Mong"] .intro-items {
            flex: 0 1 54rem;
            width: auto;
          }
        }
