/* 7Praxis Experience: premium light & motion layer. All colours come from CSS variables set in Settings > 7Praxis Experience. */
:root{
  --spx-glow:rgba(212,175,106,.7);      /* button / highlight glow (gold default) */
  --spx-light:#30B0FF;                  /* "smart" light accent */
  --spx-warm:rgba(255,196,120,.55);     /* warm interior light */
  --spx-ink:#0A1628;
  --spx-surface:rgba(15,31,53,.72);
  --spx-line:rgba(255,255,255,.12);
  --spx-text:#EAF2FB;
  --spx-muted:#8A9BB0;
  --spx-radius:18px;
  --spx-strength:1;
  --spx-speed:1;
  --spx-font-head:"Space Grotesk","Readex Pro",sans-serif;
  --spx-font-body:Inter,"Readex Pro",system-ui,sans-serif;
}

/* ---------- Buttons: glow halo + light sweep ---------- */
.spx-glow-btn{position:relative;isolation:isolate;overflow:hidden;transition:transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s ease,filter .35s ease !important}
.spx-glow-btn::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:1;
  background:linear-gradient(105deg,transparent 30%,rgba(255,255,255,.55) 48%,transparent 66%);transform:translateX(-120%);}
.spx-glow-btn:not(.spx-ghost){box-shadow:0 0 0 1px rgba(255,255,255,.08) inset,0 10px 34px -10px var(--spx-glow),0 0 calc(22px*var(--spx-strength)) -6px var(--spx-glow)}
.spx-glow-btn:hover{transform:translateY(-2px)}
.spx-glow-btn:not(.spx-ghost):hover{box-shadow:0 0 0 1px rgba(255,255,255,.18) inset,0 16px 44px -10px var(--spx-glow),0 0 calc(40px*var(--spx-strength)) -4px var(--spx-glow);filter:saturate(1.08) brightness(1.04)}
.spx-glow-btn:hover::after{transform:translateX(120%);transition:transform .9s cubic-bezier(.2,.8,.2,1)}
.spx-glow-btn.spx-ghost:hover{box-shadow:0 0 0 1px var(--spx-glow) inset,0 0 24px -6px var(--spx-glow)}
.spx-anim .spx-glow-btn.spx-breathe:not(.spx-ghost){animation:spx-breathe calc(3.6s*var(--spx-speed)) ease-in-out infinite}
@keyframes spx-breathe{50%{box-shadow:0 0 0 1px rgba(255,255,255,.12) inset,0 14px 40px -8px var(--spx-glow),0 0 calc(36px*var(--spx-strength)) 0 var(--spx-glow)}}

/* ---------- Cards: lift + cursor spotlight + glowing edge ---------- */
.spx-card{position:relative;isolation:isolate;transition:transform .45s cubic-bezier(.2,.8,.2,1),box-shadow .45s ease,border-color .45s ease !important;--mx:50%;--my:0%}
.spx-card::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:2;opacity:0;transition:opacity .4s ease;
  background:radial-gradient(420px circle at var(--mx) var(--my),color-mix(in srgb,var(--spx-light) 22%,transparent),transparent 45%);}
.spx-card::after{content:"";position:absolute;inset:-1px;border-radius:inherit;pointer-events:none;z-index:2;opacity:0;transition:opacity .4s ease;padding:1px;
  background:radial-gradient(260px circle at var(--mx) var(--my),var(--spx-light),transparent 60%);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;}
.spx-card:hover{transform:translateY(-6px);box-shadow:0 24px 60px -24px rgba(10,22,40,.55),0 0 40px -18px var(--spx-light)}
.spx-card:hover::before,.spx-card:hover::after{opacity:1}
.spx-card img{transition:transform .8s cubic-bezier(.2,.8,.2,1),filter .6s ease}
.spx-card:hover img{transform:scale(1.045);filter:saturate(1.1) brightness(1.05)}

/* ---------- Hero: "lights on" ambience over night photos ---------- */
.spx-hero{position:relative;isolation:isolate;overflow:hidden}
.spx-hero>.spx-ambience{position:absolute;inset:0;pointer-events:none;z-index:1;mix-blend-mode:screen}
.spx-ambience i{position:absolute;border-radius:50%;filter:blur(60px);opacity:0;transition:opacity 2.2s ease}
.spx-ambience i:nth-child(1){width:46vw;height:30vw;left:18%;top:-14%;background:var(--spx-warm)}
.spx-ambience i:nth-child(2){width:28vw;height:28vw;right:-6%;top:20%;background:color-mix(in srgb,var(--spx-light) 45%,transparent)}
.spx-ambience i:nth-child(3){width:34vw;height:20vw;left:-8%;bottom:-6%;background:color-mix(in srgb,var(--spx-light) 30%,transparent)}
.spx-ambience b{position:absolute;inset:0;background:linear-gradient(100deg,transparent 35%,rgba(255,240,210,.16) 50%,transparent 65%);transform:translateX(-100%)}
.spx-lit .spx-ambience i{opacity:calc(.55*var(--spx-strength))}
.spx-anim .spx-lit .spx-ambience i{animation:spx-drift calc(14s*var(--spx-speed)) ease-in-out infinite alternate}
.spx-anim .spx-lit .spx-ambience i:nth-child(2){animation-duration:calc(18s*var(--spx-speed));animation-delay:-4s}
.spx-anim .spx-lit .spx-ambience i:nth-child(3){animation-duration:calc(22s*var(--spx-speed));animation-delay:-9s}
.spx-anim .spx-lit .spx-ambience b{animation:spx-sweep 2.4s cubic-bezier(.4,0,.2,1) .3s 1 both}
@keyframes spx-drift{to{transform:translate3d(4%,6%,0) scale(1.12)}}
@keyframes spx-sweep{to{transform:translateX(100%)}}
.spx-hero>*:not(.spx-ambience):not(.spx-chips){position:relative;z-index:2}

/* Smart-status chips floating on the hero */
.spx-chips{position:absolute !important;width:auto;align-items:flex-start;z-index:3;inset-inline-end:clamp(16px,5vw,80px);bottom:clamp(90px,16vh,170px);display:flex;flex-direction:column;gap:12px;pointer-events:none}
.spx-chip{width:max-content;display:flex;align-items:center;gap:10px;padding:10px 16px 10px 12px;border-radius:999px;background:rgba(10,22,40,.55);
  -webkit-backdrop-filter:blur(14px) saturate(1.4);backdrop-filter:blur(14px) saturate(1.4);border:1px solid rgba(255,255,255,.14);
  color:#fff;font:500 14px/1.2 var(--spx-font-body);box-shadow:0 10px 30px -12px rgba(0,0,0,.6);opacity:0;transform:translateY(10px)}
.spx-chip:nth-child(2){margin-inline-start:28px}
.spx-chip .spx-dot{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--spx-light) 20%,transparent);color:var(--spx-light);box-shadow:0 0 16px -2px var(--spx-light)}
.spx-chip .spx-dot svg{width:16px;height:16px}
.spx-chip small{display:block;color:rgba(255,255,255,.62);font-size:11px;letter-spacing:.04em;text-transform:uppercase}
.spx-lit .spx-chip{opacity:1;transform:none;transition:opacity .7s ease,transform .7s cubic-bezier(.2,.8,.2,1)}
.spx-lit .spx-chip:nth-child(2){transition-delay:.25s}.spx-lit .spx-chip:nth-child(3){transition-delay:.5s}
.spx-anim .spx-lit .spx-chip{animation:spx-float calc(6s*var(--spx-speed)) ease-in-out 1.2s infinite}
.spx-anim .spx-lit .spx-chip:nth-child(2){animation-delay:2.2s}.spx-anim .spx-lit .spx-chip:nth-child(3){animation-delay:3.1s}
@keyframes spx-float{50%{transform:translateY(-6px)}}
@media (max-width:767px){.spx-chips{display:none}}

/* ---------- Glowing accent text (e.g. hero highlight word) ---------- */
.spx-glow-text{text-shadow:0 0 calc(28px*var(--spx-strength)) color-mix(in srgb,var(--spx-light) 70%,transparent)}

/* ---------- Section ambience: soft moving light on dark sections ---------- */
.spx-aura{position:relative;isolation:isolate;overflow:hidden}
.spx-aura::before{content:"";position:absolute;inset:-30%;z-index:0;pointer-events:none;
  background:radial-gradient(40% 35% at 20% 30%,color-mix(in srgb,var(--spx-light) 18%,transparent),transparent 70%),radial-gradient(35% 30% at 80% 70%,color-mix(in srgb,var(--spx-glow) 40%,transparent),transparent 70%);opacity:calc(.9*var(--spx-strength))}
.spx-anim .spx-aura::before{animation:spx-aura calc(20s*var(--spx-speed)) ease-in-out infinite alternate}
@keyframes spx-aura{to{transform:rotate(8deg) scale(1.1)}}
.spx-aura>*{position:relative;z-index:1}

/* ---------- Scroll reveal (only when JS is running; content is visible without JS) ---------- */
.spx-anim .spx-reveal{opacity:0;transform:translateY(28px);transition:opacity calc(.9s*var(--spx-speed)) cubic-bezier(.2,.8,.2,1),transform calc(.9s*var(--spx-speed)) cubic-bezier(.2,.8,.2,1);transition-delay:var(--spx-d,0s)}
.spx-anim .spx-reveal.spx-in{opacity:1;transform:none}

/* ---------- Reduced motion: keep the light, drop the movement ---------- */
@media (prefers-reduced-motion:reduce){
  .spx-glow-btn,.spx-card,.spx-card img{transition:none !important}
  .spx-glow-btn::after{display:none}
  .spx-card:hover,.spx-glow-btn:hover{transform:none}
}
