
/* Masjid Walls — cinematic animation. Scoped, CSS-only motion with reduced-motion support. */
.mw-cinema{
  --mw-gold:#f0cc84;--mw-gold-soft:#ffe3a8;--mw-green:#061512;
  position:relative;isolation:isolate;overflow:hidden;display:grid;
  grid-template-columns:minmax(0,1.07fr) minmax(315px,.93fr);align-items:center;
  gap:clamp(10px,2.4vw,36px);min-height:438px;margin:26px auto 32px;
  padding:32px clamp(24px,4.7vw,68px);border-radius:29px;
  border:1px solid #c5a66b77;
  background:radial-gradient(circle at 74% 44%,#29504c80 0,transparent 38%),
    radial-gradient(circle at 19% 92%,#18392f7d 0,transparent 40%),
    linear-gradient(127deg,#071311,#102424 52%,#071515 100%);
  box-shadow:0 22px 55px #0e20192a,inset 0 0 0 1px #e6ce9b12;
  color:#f9f2e4;font-size:14px;
}
.mw-cinema::before{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(112deg,transparent 24%,#f9dda00b 44%,transparent 64%);
  opacity:.7}
.mw-cinema__copy{position:relative;z-index:4;min-width:0}
.mw-cinema__kicker{display:inline-flex;align-items:center;gap:11px;color:#eac987;
  text-transform:uppercase;letter-spacing:2.8px;font-size:10px;font-weight:700}
.mw-cinema__kicker:before{content:"";width:28px;height:1px;background:#eac987}
.mw-cinema__copy h2{font:400 clamp(37px,4.5vw,64px)/1.08 Georgia,"Times New Roman",serif;
  margin:20px 0 17px;color:#fff6e7;letter-spacing:-1.4px;text-wrap:balance}
.mw-cinema__copy h2 em{color:#f5d08a;font-style:italic;
  text-shadow:0 0 30px #f1c77931}
.mw-cinema__copy p{font-size:14px;color:#cbd6cf;line-height:1.8;
  max-width:460px;margin:0 0 23px}
.mw-cinema__actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.mw-cinema__cta,.mw-cinema__pause{display:inline-flex;align-items:center;
  justify-content:center;gap:14px;min-height:47px;padding:11px 19px;border-radius:12px;
  font-size:12px;font-weight:700;transition:transform .24s,background .24s,box-shadow .24s}
.mw-cinema__cta{background:linear-gradient(125deg,#f9e6b0,#e0b96f);color:#162017;
  border:1px solid #eaca80;box-shadow:0 8px 25px #e6bb6c25}
.mw-cinema__cta:hover,.mw-cinema__cta:focus-visible{transform:translateY(-2px);
  box-shadow:0 9px 29px #e6bf714d}
.mw-cinema__pause{border:1px solid #d6be887d;color:#f4e3c2;
  background:#f5d2920d;cursor:pointer}
.mw-cinema__pause:hover{background:#f5d29220}
.mw-cinema__pause[hidden]{display:none!important}
.mw-cinema__assurance{display:flex;align-items:center;gap:9px;
  color:#d3d9cb;font-size:11px;margin-top:23px}
.mw-cinema__assurance:before{content:"✧";color:#f7d68c;font-size:19px}
.mw-cinema__stage{position:relative;height:358px;min-width:0;z-index:2;perspective:1000px}
.mw-cinema__halo{position:absolute;inset:7% 2%;border-radius:50%;
  background:radial-gradient(ellipse,#d7af6673 0,#447b6e2c 29%,transparent 68%);
  filter:blur(30px);pointer-events:none}
.mw-cinema__orbit{position:absolute;inset:5% 8%;
  border:1px solid #eacb8338;border-radius:50%;
  animation:mw-cinema-orbit 56s linear infinite;pointer-events:none}
.mw-cinema__orbit--inner{inset:14% 18%;border-style:dashed;
  border-color:#eacb832b;animation-direction:reverse;animation-duration:74s}
.mw-cinema__arch{position:absolute;inset:0 12%;height:100%;width:76%;
  overflow:visible;pointer-events:none;filter:drop-shadow(0 12px 20px #0006)}
.mw-cinema__arch path{stroke:#d5b275;stroke-width:1.6;fill:none}
.mw-cinema__arch path:nth-child(2){opacity:.55}
.mw-cinema__arch path:nth-child(3){opacity:.25}
.mw-cinema__crescent{position:absolute;top:5px;right:17%;width:58px;height:58px;
  border-radius:50%;background:radial-gradient(circle at 34% 29%,#fff8d9,#dfb56f 74%);
  box-shadow:0 0 20px #edcf8895,0 0 55px #edc06b3b;
  animation:mw-cinema-crescent 7s ease-in-out infinite}
.mw-cinema__crescent:after{content:"";position:absolute;inset:-3px;
  transform:translate(17px,-10px);background:#153331;border-radius:50%}
.mw-cinema__lantern{position:absolute;top:0;left:5%;width:46px;height:126px;
  transform-origin:50% 0;overflow:visible;
  filter:drop-shadow(0 0 13px #eac26999);
  animation:mw-cinema-sway 5.4s ease-in-out infinite;pointer-events:none}
.mw-cinema__lantern--right{left:auto;right:3%;top:79px;
  width:38px;height:106px;animation-delay:-2.2s}
.mw-cinema__lantern path{stroke:#f1ce88;stroke-width:2;fill:#e2aa483d}
.mw-cinema__lantern line{stroke:#ebc17a;stroke-width:2}
.mw-cinema__lantern .glass{fill:#eacc7cb3}
.mw-cinema__phone{position:absolute;left:50%;top:49%;
  width:156px;height:302px;transform:translate(-50%,-50%) rotate(7deg);
  border:6px solid #273833;border-radius:27px;overflow:hidden;z-index:5;
  background:linear-gradient(#396774,#b78d5c);
  box-shadow:0 21px 51px #000c,0 0 0 1px #f0d391b5,0 0 37px #ecca783d;
  animation:mw-cinema-float 6.8s ease-in-out infinite}
.mw-cinema__phone::before{content:"";position:absolute;inset:0;
  background:linear-gradient(112deg,transparent 36%,#fff7 48%,transparent 62%);
  z-index:4;opacity:.2;transform:translateX(-100%);
  animation:mw-cinema-glint 8s linear infinite;pointer-events:none}
.mw-cinema__phone:hover,.mw-cinema__phone:focus-visible{animation-play-state:paused}
.mw-cinema__phone img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.mw-cinema__notch{position:absolute;z-index:4;top:0;left:calc(50% - 23px);
  width:46px;height:12px;background:#15201c;border-radius:0 0 10px 10px}
.mw-cinema__phone-time{position:absolute;top:50px;left:0;right:0;z-index:3;
  color:white;text-align:center;font-size:9px;line-height:1.4;
  text-shadow:0 2px 10px #000b;letter-spacing:.3px}
.mw-cinema__phone-time strong{display:block;font:35px/1.1 Georgia,serif}
.mw-cinema__floating-label{position:absolute;bottom:26px;left:0;z-index:6;
  display:inline-flex;align-items:center;gap:8px;
  padding:10px 13px;background:#081715e8;backdrop-filter:blur(7px);
  border:1px solid #e6be787d;border-radius:13px;
  color:#f8e1ad;font-size:11px;box-shadow:0 8px 22px #0007;
  animation:mw-cinema-label 5.9s ease-in-out infinite}
.mw-cinema__particles{position:absolute;inset:0;pointer-events:none;z-index:3}
.mw-cinema__particle{position:absolute;border-radius:50%;background:#f1ce84;
  width:var(--mw-size);height:var(--mw-size);
  left:var(--mw-x);top:var(--mw-y);
  box-shadow:0 0 7px #f1ce84;
  animation:mw-cinema-drift var(--mw-speed) ease-in-out var(--mw-delay) infinite alternate}
/* Offscreen/background motion is decorative: stop compositor work without altering design. */
.mw-cinema--offscreen .mw-cinema__stage *,
.mw-cinema--offscreen .mw-cinema__stage *::before,
.mw-cinema--offscreen .mw-cinema__stage *::after,
.mw-cinema--background .mw-cinema__stage *,
.mw-cinema--background .mw-cinema__stage *::before,
.mw-cinema--background .mw-cinema__stage *::after{animation-play-state:paused!important}
.mw-cinema--paused .mw-cinema__stage *,
.mw-cinema--paused .mw-cinema__stage *::before,
.mw-cinema--paused .mw-cinema__stage *::after{animation-play-state:paused!important}
@keyframes mw-cinema-float{
  0%,100%{transform:translate(-50%,-50%) rotate(7deg)}
  50%{transform:translate(-50%,-54%) rotate(5deg)}
}
@keyframes mw-cinema-sway{0%,100%{transform:rotate(-5deg)}50%{transform:rotate(5deg)}}
@keyframes mw-cinema-orbit{to{transform:rotate(360deg)}}
@keyframes mw-cinema-crescent{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}
@keyframes mw-cinema-label{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@keyframes mw-cinema-glint{0%,18%{transform:translateX(-120%)}52%,100%{transform:translateX(120%)}}
@keyframes mw-cinema-drift{from{opacity:.15;transform:translateY(8px)}
  to{opacity:.65;transform:translate(7px,-12px)}}
@media(max-width:950px){
  .mw-cinema{grid-template-columns:minmax(0,1fr) minmax(235px,.9fr);padding:26px 30px}
  .mw-cinema__copy h2{font-size:clamp(35px,4.2vw,49px)}
  .mw-cinema__stage{height:320px}
}
@media(max-width:680px){
  .mw-cinema{width:calc(100% - 20px);grid-template-columns:1fr;
    margin:14px auto 27px;gap:0;padding:30px 22px 16px;border-radius:22px}
  .mw-cinema__copy h2{font-size:clamp(38px,10vw,51px);margin:14px 0}
  .mw-cinema__copy p{font-size:12px;line-height:1.7;max-width:400px}
  .mw-cinema__kicker{font-size:9px;letter-spacing:2px}
  .mw-cinema__assurance{margin-top:14px}
  .mw-cinema__stage{height:282px;margin:0 -6px}
  .mw-cinema__phone{width:139px;height:264px}
  .mw-cinema__phone-time{top:42px}
  .mw-cinema__crescent{width:48px;height:48px}
  .mw-cinema__lantern{width:38px;height:108px}
  .mw-cinema__floating-label{bottom:18px;left:4%;font-size:10px}
}
@media(prefers-reduced-motion:reduce){
  .mw-cinema *, .mw-cinema *::before, .mw-cinema *::after{
    animation:none!important;transition:none!important;scroll-behavior:auto!important;
  }
}
