/* Design D motion: keyframes, reveal, reduced-motion */
/* ---------- motion system (v4) ---------- */
html{scroll-behavior:smooth}body.bare{scroll-behavior:auto}
@keyframes fadeUp{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes cardIn{from{opacity:0;transform:translateY(34px) scale(.96)}to{opacity:1;transform:none}}
@keyframes pageIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes sonar{0%{transform:translate(-50%,-50%) scale(.72);opacity:.55}100%{transform:translate(-50%,-50%) scale(1.5);opacity:0}}
@keyframes sweep{from{transform:translateX(-160%) skewX(-20deg)}to{transform:translateX(260%) skewX(-20deg)}}
@keyframes drift{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(-1.5%,1.5%) scale(1.04)}}
@keyframes draw{to{stroke-dashoffset:0}}
@keyframes popIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@keyframes stepIn{from{opacity:0;transform:translateX(18px)}to{opacity:1;transform:none}}
@keyframes stepInRtl{from{opacity:0;transform:translateX(-18px)}to{opacity:1;transform:none}}
body.bare .split .content .step.on{animation:none}
.page.on{animation:pageIn .45s var(--ease) both}
.hero .intro > *{animation:fadeUp .7s var(--ease) both}
.hero .intro > :nth-child(1){animation-delay:.05s}.hero .intro > :nth-child(2){animation-delay:.15s}.hero .intro > :nth-child(3){animation-delay:.28s}.hero .intro > :nth-child(4){animation-delay:.4s}.hero .intro > :nth-child(5){animation-delay:.5s}
.live{animation:cardIn .9s var(--ease) .3s both}
.lnote{animation:float 6s ease-in-out 1.2s infinite,popIn .5s var(--ease) 1s both}
.lxfer{animation:float 7s ease-in-out 1.6s infinite reverse,popIn .5s var(--ease) 1.3s both}
.hero::after{inset:-8%;animation:drift 16s ease-in-out infinite}
.hlt{position:relative;white-space:nowrap}
.hlt .sw{position:absolute;left:0;right:0;bottom:-.02em;width:100%;height:.2em;overflow:visible;pointer-events:none}
.hlt .sw path{fill:none;stroke:var(--tif);stroke-width:3.2;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1;animation:draw 1s var(--ease) .9s forwards}
body.bare .hlt .sw path{stroke-dashoffset:0;animation:none}
body.bare .hero .intro > *,body.bare .live,body.bare .page.on{animation:none}
body.bare .lnote,body.bare .lxfer{animation:none}
.reveal{opacity:0;transform:translateY(18px);transition:opacity .7s var(--ease),transform .7s var(--ease)}
.reveal.rv,body.bare .reveal{opacity:1;transform:none}
.reveal.rv{transition-delay:var(--d,0s)}
.how .hw{opacity:0;transform:translateY(16px);transition:opacity .6s var(--ease),transform .6s var(--ease);transition-delay:var(--d,0s)}
.how.rv .hw,body.bare .how .hw{opacity:1;transform:none}
.med .sn{position:absolute;left:50%;top:50%;width:300px;height:300px;border-radius:50%;border:2px solid rgba(10,186,181,.45);animation:sonar 4.2s ease-out infinite;z-index:1;pointer-events:none}
.med .sn.s2{animation-delay:2.1s}
.room .ph img{transition:transform .7s var(--ease)}.room:hover .ph img{transform:scale(1.05)}
.room .sym{box-shadow:0 10px 24px rgba(10,22,40,.16),inset 0 0 0 2px color-mix(in srgb,var(--rc) 28%,#fff)}
.room .go span[aria-hidden]{transition:transform .25s var(--ease)}.room:hover .go span[aria-hidden]{transform:translateX(4px)}
[dir=rtl] .room:hover .go span[aria-hidden]{transform:scaleX(-1) translateX(4px)}
.btn.tif{position:relative;overflow:hidden}
.btn.tif::after{content:"";position:absolute;top:-10%;bottom:-10%;left:0;width:34%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.55),transparent);transform:translateX(-160%) skewX(-20deg);pointer-events:none}
.btn.tif:hover::after{animation:sweep .8s var(--ease)}
.partners img{transition:transform .3s var(--ease)}.partners img:hover{transform:translateY(-3px)}
.brow .serv.tick{animation:popIn .5s var(--ease)}
/* intro (2.55, owner: "motion graphics on the intros"; second review: "more professional", after the team's
   picture) — "the turn" on the brand's navy: the dot comes round and the ring is drawn behind it, the dot lands;
   the name rises, two rules open either side of the line under the logo, the same line follows in the other
   language; then the stage closes into the dot. Only where a visit begins (home, About, Al Adheed's entrance), once
   per browser tab; a tap or a key ends it. The page asks for it before its first paint (public/base.html: "sp-on"
   on <html>) — never under reduced motion, never without scripts. If js/motion.js is late the stage still closes
   by itself (the animation below). Al Adheed's entrance plays it on its own stage (css/kit-pages.css): there
   #splash is only the cover over the page's bars (.own). */
#splash{display:none}
.sp-on #splash{position:fixed;inset:0;z-index:100;display:grid;place-items:center;color:#fff;
  background:radial-gradient(620px 420px at 50% 40%,rgba(10,186,181,.08),rgba(10,186,181,0) 70%),radial-gradient(130% 95% at 50% 36%,#15335C,var(--navy) 72%);
  --ix:calc(50% + 44px);--iy:calc(50% - 55px);animation:spOut .5s cubic-bezier(.7,0,.25,1) 2.3s forwards}
body.bare #splash{display:none}
@keyframes spOut{from{clip-path:circle(150% at var(--ix) var(--iy))}to{clip-path:circle(0 at var(--ix) var(--iy));visibility:hidden}}
#splash .sl{display:flex;flex-direction:column;align-items:center;gap:20px;text-align:center}
#splash svg{width:132px;height:132px;overflow:visible}
#splash .sp-c{color:#fff}
.sp-r{stroke:var(--ia,var(--tif));stroke-width:1.4;transform-box:fill-box;transform-origin:center}
.sp-d{transform-origin:50px 50px}
.sp-d circle{transform-box:fill-box;transform-origin:center}
.sp-on .sp-w{animation:spDraw .85s cubic-bezier(.6,0,.2,1) .08s backwards}
@keyframes spDraw{from{stroke-dashoffset:1}}
.sp-on .sp-d{animation:spOrbit .85s cubic-bezier(.6,0,.2,1) .08s backwards}
@keyframes spOrbit{from{transform:rotate(308deg)}to{transform:rotate(0deg)}}
.sp-on .sp-d circle{animation:spPop .36s cubic-bezier(.3,1.6,.5,1) .93s}
@keyframes spPop{0%{transform:scale(.82)}55%{transform:scale(1.22)}100%{transform:scale(1)}}
.sp-on .sp-r{animation:spRipple .7s ease-out .98s}
@keyframes spRipple{0%{opacity:.75;transform:scale(1)}100%{opacity:0;transform:scale(2.7)}}
/* the lockup under the mark (the intro's stage, Al Adheed's stage): the name, the line under the logo between two
   rules, the same line in the other language. --ia is the stage's accent. */
.lk{display:grid;justify-items:center;margin:0;color:#fff;text-align:center}
.lk b{font:800 30px/1.15 var(--w);letter-spacing:-.02em}[dir=rtl] .lk b{letter-spacing:0}
.lk b em{font-style:normal;color:var(--ia,var(--tif))}
.lk-tag{display:flex;align-items:center;justify-content:center;justify-self:stretch;gap:14px;margin-top:10px;font:600 16px/1.3 var(--f)}
.lk-tag i{flex:1 1 20px;min-width:20px;max-width:60px;height:2px;border-radius:2px;background:var(--ia,var(--tif));transform-origin:100% 50%}
.lk-tag i:last-child,[dir=rtl] .lk-tag i:first-child{transform-origin:0 50%}[dir=rtl] .lk-tag i:last-child{transform-origin:100% 50%}
.lk small{margin-top:7px;font:500 13.5px/1.3 var(--f);color:rgba(255,255,255,.72)}
.sp-on .lk b{animation:fadeUp .5s var(--ease) .55s backwards}
.sp-on .lk-tag{animation:spShow .45s ease-out 1.08s backwards}
.sp-on .lk-tag i{animation:spRule .55s var(--ease) 1.02s backwards}
.sp-on .lk small{animation:fadeUp .45s var(--ease) 1.36s backwards}
@keyframes spShow{from{opacity:0}}
@keyframes spRule{from{transform:scaleX(0)}}
@media (min-width:1000px){#splash svg{width:148px;height:148px}.sp-on #splash{--ix:calc(50% + 49px)}.lk b{font-size:32px}}
/* 2.55 — the brand's orbit behind an inner page's opening (templates/public/_orbits.html): one at the upper end
   corner, one lower at the start side. The page's own content sits above it. */
.orbits{position:absolute;inset-block-start:-210px;inset-inline-end:-170px;width:640px;height:640px;color:var(--tif);pointer-events:none;z-index:0;
  -webkit-mask:radial-gradient(closest-side,#000 62%,transparent);mask:radial-gradient(closest-side,#000 62%,transparent)}
.orbits.lo{inset-inline-end:auto;inset-inline-start:-230px;inset-block-start:60px;width:520px;height:520px;opacity:.7}
.orbits circle{fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;opacity:.55}
.orbits .od{fill:currentColor;stroke:none;opacity:.9}
.orbits .ot{transform-origin:300px 300px;animation:orbitTurn 80s linear infinite}
.orbits .t2{animation-duration:120s;animation-direction:reverse}
.orbits .t3{animation-duration:170s}
@keyframes orbitTurn{to{transform:rotate(360deg)}}
body.bare .orbits .ot{animation:none}
@media (prefers-reduced-motion:reduce){.orbits .ot{animation:none}}
/* a travelling dot beside Arabic letters can read as one of their points: the dots stay where no text runs */
.orbits.lo .od{display:none}
@media (max-width:700px){.orbits{width:420px;height:420px;inset-block-start:-150px;inset-inline-end:-150px;opacity:.75}.orbits.lo,.orbits .od{display:none}}
.ahero .atx > *{animation:fadeUp .7s var(--ease) both}
.ahero .atx > :nth-child(2){animation-delay:.1s}.ahero .atx > :nth-child(3){animation-delay:.2s}.ahero .atx > :nth-child(4){animation-delay:.3s}
body.bare .ahero .atx > *{animation:none}
/* DG photo card */
.dg{padding:0;overflow:hidden}
.dg .pho{position:relative;height:300px}
.dg .pho img{width:100%;height:100%;object-fit:cover;object-position:50% 30%;display:block}
.dg .pho::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(10,22,40,0) 40%,rgba(10,22,40,.9))}
.dg .pho .cap{position:absolute;left:22px;right:22px;bottom:16px;z-index:1}
.dg .pho .cap b{display:block;font-size:16px}.dg .pho .cap span{font-size:12.5px;color:#9fb0c0}
.dg .dtx{padding:18px 22px 22px;display:flex;flex-direction:column;gap:8px}
[dir=rtl] .rail > svg{transform:scaleX(-1)}
[dir=rtl] .band2::before{mask:linear-gradient(270deg,#000,transparent 70%);-webkit-mask:linear-gradient(270deg,#000,transparent 70%)}
[dir=rtl] .band2::after{right:auto;left:-80px}



@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal.rv { transition: none; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- 2.21: micro-interactions (public kit) ---------- */
body.c .btn { transition: transform .18s cubic-bezier(.2, .7, .2, 1), box-shadow .22s ease, background-color .2s ease, color .2s ease; }
body.c .btn:active { transform: translateY(0) scale(.985); }
body.c .btn.tif:hover { box-shadow: 0 14px 28px -12px rgba(10, 186, 181, .55); }
body.c .ft, body.c .fc, body.c .dcard, body.c .wt-card, body.c .tkt, body.c .hpq, body.c .tile2, body.c .card.hrs { transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s ease; }
body.c .ft:hover, body.c .fc:hover, body.c .tile2:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(10, 22, 40, .25), inset 0 0 0 1px var(--line2); }
body.c .wt-card, body.c .tkt, body.c .dcard { animation: fadeUp .55s cubic-bezier(.2, .7, .2, 1) both; }
body.c .wt-main > :nth-child(2), body.c .dpage > :nth-child(2) { animation-delay: .06s; }
body.c .wt-main > :nth-child(3), body.c .dpage > :nth-child(3) { animation-delay: .12s; }
body.c .wt-side > :nth-child(1) { animation-delay: .1s; } body.c .wt-side > :nth-child(2) { animation-delay: .16s; } body.c .wt-side > :nth-child(3) { animation-delay: .22s; }
body.c .wt-steps li i, body.c .st-tl li i { transition: background .3s ease, border-color .3s ease, box-shadow .3s ease; }
body.c .journey li, body.c .four .fc { animation: fadeUp .6s cubic-bezier(.2, .7, .2, 1) both; }
body.c .journey li:nth-child(2), body.c .four .fc:nth-child(2) { animation-delay: .08s; }
body.c .journey li:nth-child(3), body.c .four .fc:nth-child(3) { animation-delay: .16s; }
body.c .journey li:nth-child(4), body.c .four .fc:nth-child(4) { animation-delay: .24s; }
body.c .journey li:nth-child(5) { animation-delay: .32s; } body.c .journey li:nth-child(6) { animation-delay: .4s; }
body.c .journey li i { transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s ease; }
body.c .journey li:hover i { transform: translateY(-3px) scale(1.04); }
body.c .brow .btn.white { transition: background .2s ease, color .2s ease, transform .18s ease; }
body.c .tkt-room, body.c .st-chip { transition: background .2s ease; }
body.bare .wt-card, body.bare .tkt, body.bare .dcard, body.bare .journey li, body.bare .four .fc { animation: none; }
@media (prefers-reduced-motion: reduce) {
  body.c .wt-card, body.c .tkt, body.c .dcard, body.c .journey li, body.c .four .fc { animation: none; }
}
/* 2.44: buttons press */
@media (prefers-reduced-motion:no-preference){.btn:active{transform:scale(.97)}}
