/* ==========================================================================
   APS motion layer (front end only; never loaded in the block editor).
   Everything animated is scoped under html.rx-anim, which is only set when the visitor has NOT asked for reduced
   motion. Without JavaScript, or with reduced motion, the page is simply fully visible and static.
   ========================================================================== */

/* ---------- Page-to-page cross-fade (browsers that support cross-document view transitions) ---------- */
@view-transition{navigation:auto}
::view-transition-old(root){animation:rx-vt-out .28s var(--rx-ease-io) both}
::view-transition-new(root){animation:rx-vt-in .5s var(--rx-ease) both}
@keyframes rx-vt-out{to{opacity:0}}
@keyframes rx-vt-in{from{opacity:0;transform:translateY(10px)}}
.wp-site-blocks>header.wp-block-template-part{view-transition-name:rx-header}

/* ---------- Scroll progress, film grain, cursor ---------- */
.rx-progress{position:fixed;left:0;top:0;height:3px;width:100%;z-index:100001;transform:scaleX(0);transform-origin:left;background:linear-gradient(90deg,var(--rx-gold),var(--rx-sprout));pointer-events:none;will-change:transform}
body::after{content:"";position:fixed;inset:0;z-index:100000;pointer-events:none;opacity:.05;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E")}
.rx-cursor{position:fixed;left:0;top:0;width:2.25rem;height:2.25rem;margin:-1.125rem 0 0 -1.125rem;border-radius:50%;border:1.5px solid var(--rx-gold);z-index:100002;pointer-events:none;opacity:0;transition:width .35s var(--rx-ease),height .35s var(--rx-ease),margin .35s var(--rx-ease),background-color .3s,opacity .3s,border-color .3s;mix-blend-mode:normal;will-change:transform}
.rx-cursor.is-on{opacity:.9}
.rx-cursor.is-link{width:3.75rem;height:3.75rem;margin:-1.875rem 0 0 -1.875rem;background:rgba(233,185,73,.16)}
.rx-cursor.is-down{width:1.5rem;height:1.5rem;margin:-.75rem 0 0 -.75rem}
@media(hover:none),(pointer:coarse){.rx-cursor{display:none}}

/* ---------- Header: compacts and gains a shadow once you scroll ---------- */
html.rx-anim.rx-scrolled .rx-header{background:rgba(250,247,239,.985);box-shadow:0 10px 30px -18px rgba(8,42,30,.35)}
html.rx-anim.rx-scrolled .rx-header__row{height:4.1rem}
html.rx-anim.rx-scrolled .rx-brand__logo{width:2.75rem;height:2.75rem}
.rx-brand__logo{transition:width .45s var(--rx-ease),height .45s var(--rx-ease)}

/* ---------- Scroll reveals ---------- */
.rx-anim [data-rx]{opacity:0;transform:translate3d(0,34px,0);transition:opacity 1s var(--rx-ease),transform 1.1s var(--rx-ease);transition-delay:calc(var(--rx-d,0)*90ms);will-change:opacity,transform}
.rx-anim [data-rx].is-in{opacity:1;transform:none}
.rx-anim [data-rx].is-done{will-change:auto}
.rx-anim [data-rx="scale"]{transform:scale(.94) translate3d(0,24px,0)}
.rx-anim [data-rx="clip"]{opacity:1;transform:none;clip-path:inset(0 0 100% 0 round 1.5rem);transition:clip-path 1.3s var(--rx-ease);transition-delay:calc(var(--rx-d,0)*90ms)}
.rx-anim [data-rx="clip"].is-in{clip-path:inset(0 0 0 0 round 1.5rem)}
/* headings: every word slides up out of a mask (split by words, never letters, so Hindi/Telugu conjuncts stay intact) */
.rx-anim [data-rx="words"]{opacity:1;transform:none}
.rx-w{display:inline-block;vertical-align:top;overflow:hidden;padding:.12em .08em .2em;margin:-.12em -.08em -.2em}
.rx-wi{display:inline-block;will-change:transform}
.rx-anim [data-rx="words"] .rx-wi{transform:translate3d(0,112%,0) rotate(3deg);transform-origin:0 100%;opacity:0;transition:transform 1.15s var(--rx-ease),opacity .6s ease;transition-delay:calc(var(--wi,0)*55ms + var(--rx-d,0)*90ms)}
.rx-anim [data-rx="words"].is-in .rx-wi{transform:none;opacity:1}
html:lang(hi) .rx-w,html:lang(te) .rx-w{overflow:visible;padding:0;margin:0}
html:lang(hi).rx-anim [data-rx="words"] .rx-wi,html:lang(te).rx-anim [data-rx="words"] .rx-wi{transform:translate3d(0,.5em,0);transition:transform 1s var(--rx-ease),opacity .8s ease;transition-delay:calc(var(--wi,0)*45ms + var(--rx-d,0)*90ms)}

/* Hero entrance: starts at once, no loading screen */
.rx-anim .rx-hero .rx-pill,.rx-anim .rx-hero__sub,.rx-anim .rx-hero .rx-btns,.rx-anim .rx-hero__meta{opacity:0;transform:translate3d(0,26px,0);transition:opacity .7s var(--rx-ease),transform .8s var(--rx-ease)}
.rx-anim .rx-hero.is-in .rx-pill{opacity:1;transform:none;transition-delay:.05s}
.rx-anim .rx-hero.is-in .rx-hero__sub{opacity:1;transform:none;transition-delay:.2s}
.rx-anim .rx-hero.is-in .rx-btns{opacity:1;transform:none;transition-delay:.3s}
.rx-anim .rx-hero.is-in .rx-hero__meta{opacity:1;transform:none;transition-delay:.4s}
.rx-anim .rx-hero h1[data-rx="words"] .rx-wi{transition-delay:calc(.05s + var(--wi,0)*70ms)}
.rx-anim .rx-hero .wp-block-cover__video-background,.rx-anim .rx-hero .wp-block-cover__image-background{will-change:transform}
.rx-hero__scroll{position:absolute;left:var(--rx-gutter);bottom:1.4rem;z-index:3;width:1px;height:3.2rem;background:rgba(250,247,239,.25);overflow:hidden;pointer-events:none}
.rx-hero__scroll::after{content:"";position:absolute;left:0;top:0;width:100%;height:50%;background:var(--rx-gold);animation:rx-scrollcue 2.2s var(--rx-ease-io) infinite}
@keyframes rx-scrollcue{0%{transform:translateY(-100%)}100%{transform:translateY(220%)}}
@media(max-width:781px){.rx-hero__scroll{display:none}}
/* slow ambient glow drifting behind the hero copy */
.rx-hero .wp-block-cover__inner-container::before{content:"";position:absolute;left:-10%;top:10%;width:46vw;height:46vw;max-width:720px;max-height:720px;border-radius:50%;background:radial-gradient(circle,rgba(233,185,73,.16),transparent 62%);filter:blur(30px);pointer-events:none;z-index:-1;animation:rx-drift 16s ease-in-out infinite alternate}
@keyframes rx-drift{to{transform:translate3d(14vw,8vh,0) scale(1.15)}}

/* Tabs: panel content rises in on every switch */
.rx-anim .rx-tab-panel.is-active{animation:rx-panel .8s var(--rx-ease) both}
@keyframes rx-panel{from{opacity:0;transform:translate3d(0,22px,0)}to{opacity:1;transform:none}}

/* Pointer-driven card effects (set by aps-motion.js on devices with a mouse) */
.rx-tilt{transform-style:preserve-3d;transition:transform .5s var(--rx-ease),box-shadow .4s,border-color .3s!important}
.rx-tilt.is-tilting{transition:transform .12s ease-out,box-shadow .4s,border-color .3s!important}
.rx-pcard__img img{transition:transform .9s var(--rx-ease)}
.rx-pcard:hover .rx-pcard__img img{transform:scale(1.08) rotate(-1deg)}

/* Parallax images are moved every frame by aps-motion.js, so they must not ease on their own */
.rx-media img,.aps-photo img{will-change:transform}
.wp-block-button.rx-btn{transition:transform .6s var(--rx-ease)}

/* Section dividers draw themselves */
.rx-anim .rx-pillar .rx-rule{position:relative}

/* Reduced motion: no scroll effects at all (the JS also stays off) */
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
  .rx-progress,.rx-cursor,.rx-hero__scroll{display:none!important}
  body::after{display:none!important}
}
