/* QASR ALARAEK v4.74 — portfolio gallery rebuild */
body.home .q474-projects{
  position:relative;
  overflow:hidden;
  padding:92px 0 96px!important;
  background:
    radial-gradient(circle at 12% 18%,rgba(169,104,54,.07),transparent 27%),
    linear-gradient(180deg,#fbf8f4 0%,#f6f0e9 100%)!important;
}
.q474-projects::before{content:"";position:absolute;inset:0 0 auto;height:1px;background:linear-gradient(90deg,transparent,rgba(79,48,38,.16),transparent)}
.q474-projects-head{display:flex;align-items:flex-end;justify-content:space-between;gap:34px;margin-bottom:36px!important}
.q474-projects-heading{max-width:780px}
.q474-projects .eyebrow{margin:0 0 10px!important;color:#a96836!important;font-size:.72rem!important;font-weight:800!important;letter-spacing:.15em!important}
.q474-projects h2{margin:0!important;color:#2b201c!important;font-size:clamp(2rem,3.4vw,3.35rem)!important;line-height:1.22!important;letter-spacing:-.025em}
.q474-projects .projects-intro{max-width:720px;margin:14px 0 0!important;color:#76665d!important;font-size:1rem!important;line-height:1.95!important}
.q474-projects-count{display:flex;align-items:center;gap:9px;color:#5a4840;font-size:.74rem;font-weight:800;direction:ltr;white-space:nowrap;padding-bottom:8px}
.q474-projects-count i{display:block;width:48px;height:1px;background:rgba(90,72,64,.34)}
.q474-projects-count span:first-child{color:#a96836;font-size:1.05rem}

.q474-projects-stage{position:relative;width:min(100%,1560px);margin-inline:auto;padding-inline:22px}
.q474-projects-swiper{position:relative;overflow:hidden;direction:ltr;touch-action:pan-y;cursor:grab;-webkit-user-select:none;user-select:none}
.q474-projects-swiper.is-dragging{cursor:grabbing}
.q474-projects-swiper .swiper-wrapper{display:flex;align-items:stretch;will-change:transform;transform:translate3d(0,0,0)}
.q474-projects-swiper .swiper-slide{flex:0 0 auto;min-width:0;box-sizing:border-box}
.q474-projects-swiper .project-slide-figure{position:relative;margin:0;aspect-ratio:950/600;overflow:hidden;border-radius:20px;background:#e9e1d8;box-shadow:0 16px 38px rgba(50,31,25,.08)}
.q474-projects-swiper .project-slide-figure::after{content:"";position:absolute;inset:0;border:1px solid rgba(255,255,255,.5);border-radius:inherit;pointer-events:none}
.q474-projects-swiper .project-slide-figure img{display:block;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;object-position:center;transform:scale(1.001);transition:transform .85s cubic-bezier(.2,.7,.2,1),filter .5s ease;filter:saturate(.96) contrast(1.01)}
@media(hover:hover){
  .q474-projects-swiper .swiper-slide:hover img{transform:scale(1.045);filter:saturate(1.04) contrast(1.02)}
}
.q474-gallery-arrow{position:absolute;top:50%;z-index:5;width:48px;height:48px;display:grid;place-items:center;transform:translateY(-50%);border:1px solid rgba(63,43,34,.15);border-radius:50%;background:rgba(255,252,248,.94);color:#3a2922;box-shadow:0 12px 32px rgba(46,29,24,.12);backdrop-filter:blur(10px);cursor:pointer;transition:transform .2s ease,background .2s ease,border-color .2s ease}
.q474-gallery-arrow span{font:300 32px/1 Arial,sans-serif;transform:translateY(-1px)}
.q474-gallery-prev{left:4px}.q474-gallery-next{right:4px}
.q474-gallery-arrow:hover{background:#fff;border-color:rgba(169,104,54,.34);transform:translateY(-50%) scale(1.05)}
.q474-gallery-arrow:focus-visible{outline:2px solid #a96836;outline-offset:3px}

.q474-projects-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:24px!important}
.q474-gallery-progress{position:relative;overflow:hidden;width:min(520px,58vw);height:2px;background:rgba(74,54,45,.14);border-radius:99px}
.q474-gallery-progress span{position:absolute;inset:0 auto 0 0;width:0;background:#a96836;border-radius:inherit;transition:width .45s ease}
.q474-gallery-hint{color:#8b7b72;font-size:.72rem;font-weight:600}

@media(max-width:900px){
  body.home .q474-projects{padding:68px 0 74px!important}
  .q474-projects-head{align-items:flex-start;margin-bottom:28px!important}
  .q474-projects-count{display:none}
  .q474-projects-stage{padding-inline:16px}
  .q474-projects-swiper .project-slide-figure{border-radius:17px}
  .q474-gallery-arrow{width:42px;height:42px}.q474-gallery-prev{left:2px}.q474-gallery-next{right:2px}
}
@media(max-width:600px){
  body.home .q474-projects{padding:54px 0 60px!important}
  .q474-projects-head{display:block;margin-bottom:22px!important;padding-inline:18px!important;text-align:right!important}
  html[dir="ltr"] .q474-projects-head{text-align:left!important}
  .q474-projects .eyebrow{font-size:.65rem!important;margin-bottom:8px!important}
  .q474-projects h2{font-size:clamp(1.7rem,8.4vw,2.15rem)!important;line-height:1.35!important}
  .q474-projects .projects-intro{font-size:.86rem!important;line-height:1.85!important;margin-top:10px!important}
  .q474-projects-stage{padding-inline:14px}
  .q474-projects-swiper .project-slide-figure{border-radius:14px;box-shadow:0 10px 26px rgba(50,31,25,.07)}
  .q474-gallery-arrow{display:none}
  .q474-projects-footer{margin-top:17px!important;padding-inline:18px!important}
  .q474-gallery-progress{width:100%;height:2px}
  .q474-gallery-hint{display:none}
}
@media(prefers-reduced-motion:reduce){
 .q474-projects-swiper .swiper-wrapper,.q474-projects-swiper img,.q474-gallery-progress span{transition:none!important}
}
