/* ==========================================================
   ASPACE - Our works: curved 3D gallery (home page #works)
   Dark stage, grid floor, cards on a curved row.
   ========================================================== */
.wgal{
  --card-w:min(46vw,640px);
  --card-h:calc(var(--card-w)*9/16);
  --wtop:96px;
  position:relative;height:100vh;height:100svh;min-height:640px;overflow:hidden;
  background:#000;color:#fff;
  -webkit-user-select:none;user-select:none;
}

.wgal::before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse 60% 45% at 50% 42%,rgba(255,121,0,.10),transparent 70%);pointer-events:none}


/* grid floor */
.wgal .wg-floor{position:absolute;left:-50%;right:-50%;top:56%;height:90%;z-index:0;pointer-events:none;
  
  
  -webkit-mask-image:linear-gradient(180deg,#000 0%,transparent 85%);mask-image:linear-gradient(180deg,#000 0%,transparent 85%);
}


/* 3D stage */
.wgal .wg-stage{position:absolute;inset:0;z-index:2;perspective:1300px;perspective-origin:50% 42%;cursor:grab;touch-action:pan-y}

.wgal .wg-stage.is-dragging{cursor:grabbing}

.wgal .wg-row{position:absolute;left:50%;top:46%;width:0;height:0;transform-style:preserve-3d}

.wgal .wg-card{position:absolute;left:0;top:0;width:var(--card-w);height:var(--card-h);margin:calc(var(--card-h)/-2) 0 0 calc(var(--card-w)/-2);
  backface-visibility:hidden;-webkit-backface-visibility:hidden;will-change:transform,opacity}

.wgal .wg-in{position:absolute;inset:0;border-radius:22px;overflow:hidden;container-type:size;background:#111;
  box-shadow:0 40px 80px -40px rgba(0,0,0,.9),0 0 0 1px rgba(255,255,255,.06)}

.wgal .wg-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;pointer-events:none;-webkit-user-drag:none}

.wgal .wg-card img+.pst{background:linear-gradient(180deg,rgba(0,0,0,.05) 35%,rgba(0,0,0,.8))}

/* soft light sweep so each card reads as a curved surface */
.wgal .wg-in::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(100deg,rgba(255,255,255,.14),transparent 30%,transparent 70%,rgba(0,0,0,.28))}

.wgal .wg-name{position:absolute;left:3.2cqw;bottom:3cqw;z-index:2;font-weight:600;font-size:max(15px,3.1cqw);letter-spacing:-.01em;color:#fff;text-shadow:0 2px 14px rgba(0,0,0,.55);pointer-events:none}

.wgal .wg-arrow{position:absolute;right:3cqw;bottom:3cqw;z-index:2;width:max(30px,5.4cqw);height:max(30px,5.4cqw);border-radius:50%;background:#000;display:grid;place-items:center;pointer-events:none;transition:background .25s}

.wgal .wg-arrow svg{width:46%;height:46%;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

.wgal .wg-card.is-front:hover .wg-arrow{background:#ff7900}

.wgal .wg-card.is-front{cursor:pointer}


/* generated poster cards (same look as before) */
.wgal .pst{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:space-between;padding:6cqw 6cqw 11cqw;pointer-events:none;color:#fff;font-family:"Inter",system-ui,sans-serif}

.wgal .pst__no{font-size:15cqw;font-weight:800;line-height:.85;letter-spacing:-.05em}

.wgal .pst__mid{display:grid;gap:1.4cqw}

.wgal .pst__mid small{font-size:2.4cqw;letter-spacing:.22em;text-transform:uppercase;font-weight:600;opacity:.9}

.wgal .pst__mid strong{font-weight:800;font-size:8cqw;line-height:.98;letter-spacing:-.045em}

.wgal .pst__foot{display:none}

.wgal .pst--a{background:radial-gradient(ellipse 90% 70% at 20% 110%,rgba(255,121,0,.85),transparent 70%),#000}

.wgal .pst--a .pst__no{color:transparent;-webkit-text-stroke:.5cqw #ff7900}

.wgal .pst--b{background:#ff7900;color:#000}

.wgal .pst--b .pst__no{color:#000}

.wgal .pst--c{background:#fff;color:#000}

.wgal .pst--c .pst__no{color:#ff7900}

.wgal .pst--d{background:linear-gradient(160deg,#1c1c1c,#000 70%)}

.wgal .pst--d .pst__no{color:#ff7900}

.wgal .pst--b~.wg-name,.wgal .pst--c~.wg-name{color:#000;text-shadow:none}

.wgal .pst--c~.wg-name,.wgal .pst--b~.wg-name{color:#000}


/* corner labels */
.wgal .wg-lab{position:absolute;z-index:4;font-size:11px;letter-spacing:.08em;text-transform:uppercase;font-weight:600;color:#fff}

.wgal .wg-lab a,.wgal .wg-lab button{color:inherit;font:inherit;letter-spacing:inherit;text-transform:inherit;background:none;border:0;padding:0;cursor:pointer;text-decoration:none}

.wgal .wg-lab a:hover,.wgal .wg-lab button:hover{color:#ff7900}

.wgal .wg-lab--tl{top:calc(var(--wtop) + 4px);left:var(--gutter,4vw)}

.wgal .wg-lab--tr{top:calc(var(--wtop) + 4px);right:var(--gutter,4vw);font-variant-numeric:tabular-nums}

.wgal .wg-lab--bl{bottom:5vh;left:var(--gutter,4vw);opacity:.9}

.wgal .wg-lab--bl span{opacity:.5}

.wgal .wg-lab--br{bottom:5vh;right:var(--gutter,4vw)}

.wgal .wg-title{position:absolute;z-index:4;left:var(--gutter,4vw);top:calc(var(--wtop) + 34px);pointer-events:none}

.wgal .wg-title h2{margin:0;font-weight:800;font-size:clamp(40px,5vw,84px);line-height:.9;letter-spacing:-.055em;text-transform:uppercase}

.wgal .wg-title h2 em{font-style:normal;color:#ff7900}


/* action pill under the active card */
.wgal .wg-pill{position:absolute;z-index:5;left:50%;bottom:calc(5vh - 6px);transform:translateX(-50%);display:flex;align-items:center;gap:14px;padding:6px 24px 6px 8px;border-radius:999px;background:rgba(255,255,255,.1);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.14);font-size:12px;white-space:nowrap;max-width:92vw}

.wgal .wg-pill button{border:0;background:#ff7900;color:#000;font:inherit;font-weight:700;border-radius:999px;padding:11px 18px;cursor:pointer}

.wgal .wg-pill b{font-weight:600}

.wgal .wg-pill sup{font-size:9px;opacity:.6;margin-left:2px}


@media (max-width:820px){
  .wgal{--card-w:78vw;--wtop:84px}
  .wgal .wg-lab--tr{display:none}
  .wgal .wg-lab--bl,.wgal .wg-lab--br{bottom:calc(86px + env(safe-area-inset-bottom,0px) + 62px)}
  .wgal .wg-pill{bottom:calc(86px + env(safe-area-inset-bottom,0px))}
  .wgal .wg-floor{top:60%}
  .wgal .wg-title h2{font-size:clamp(40px,12vw,64px)}
}

.wgal .wg-pill button[data-prev],.wgal .wg-pill button[data-next]{background:rgba(255,255,255,.12);color:#fff;width:38px;height:38px;padding:0;font-size:15px}

.wgal .wg-pill button[data-prev]:hover,.wgal .wg-pill button[data-next]:hover{background:#ff7900;color:#000}


/* ---- layout tweaks: smaller cards, one-line title, no duplicate names ---- */
.wgal{--card-w:min(40vw,560px)}

.wgal .wg-row{top:55%}

.wgal .wg-title{top:calc(var(--wtop) + 22px)}

.wgal .wg-title h2{font-size:clamp(30px,3.4vw,54px);line-height:1}

.wgal .wg-title h2 br{display:none}

.wgal .wg-title h2 em{margin-left:.25em}

.wgal .pst__mid strong{display:none}

.wgal .wg-lab--br{display:none}

@media (max-width:820px){.wgal{--card-w:74vw}.wgal .wg-row{top:50%}.wgal .wg-title h2{font-size:clamp(30px,9vw,48px)}}

@media (max-width:820px){.wgal .wg-label{display:none}.wgal .wg-pill{left:calc(50% - 40px);max-width:calc(100vw - 110px);gap:8px;padding-right:8px}.wgal .wg-pill button[data-launch]{padding:11px 14px;overflow:hidden;text-overflow:ellipsis;max-width:46vw}}


/* ---------- scroll-driven (pinned) version ---------- */
.wgal{height:calc(100vh + (11 - 1) * 50vh);min-height:0;overflow:visible}

.wgal::before{display:none}

.wgal .wg-pin{position:sticky;top:0;height:100vh;height:100svh;min-height:640px;overflow:hidden;background:#000}

.wgal .wg-pin::before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse 60% 45% at 50% 42%,rgba(255,121,0,.10),transparent 70%);pointer-events:none}

.wgal .wg-gl{position:absolute;inset:0;width:100%;height:100%;display:block;cursor:grab}

.wgal.is-gl .wg-row{display:none}

.wgal.is-gl .wg-floor{top:58%}

.wgal--static{height:100vh!important}

.wgal--static .wg-pin{position:relative}


/* tall pictures: whole picture in the middle over a soft blurred copy */
.wgal .wg-card img.wg-bgblur{filter:blur(22px) brightness(.75);transform:scale(1.25)}

.wgal .wg-card img.is-contain{object-fit:contain}

/* ---------- light theme: same colours as the rest of the website ---------- */
.wgal--light{background:#F7F6F4;color:#0B0B0C}
.wgal--light .wg-pin{background:#F7F6F4}
.wgal--light .wg-pin::before{background:radial-gradient(ellipse 60% 45% at 50% 42%,rgba(255,121,0,.08),transparent 70%)}
.wgal--light .wg-lab,.wgal--light .wg-title h2{color:#0B0B0C}
.wgal--light .wg-title h2 em{color:#FF7900}
.wgal--light .wg-in{box-shadow:0 34px 60px -34px rgba(11,11,12,.45),0 0 0 1px rgba(11,11,12,.08)}
.wgal--light .wg-pill{background:rgba(11,11,12,.06);color:#0B0B0C;border:1px solid rgba(11,11,12,.1)}
.wgal--light .wg-pill button[data-prev],.wgal--light .wg-pill button[data-next]{background:rgba(11,11,12,.08);color:#0B0B0C}
.wgal--light .wg-pill button[data-prev]:hover,.wgal--light .wg-pill button[data-next]:hover{background:#FF7900;color:#0B0B0C}

/* short description of the active card (services page) */
.wgal .wg-desc{position:absolute;z-index:4;left:var(--gutter,4vw);top:calc(var(--wtop) + 78px);max-width:min(340px,40vw);margin:0;display:grid;gap:6px;font-size:13px;line-height:1.45;color:#0B0B0C;pointer-events:none}
.wgal .wg-desc b{font-weight:600}
.wgal .wg-desc span{opacity:.6}
@media (max-width:820px){.wgal .wg-desc{top:calc(var(--wtop) + 62px);max-width:calc(100vw - 2 * var(--gutter,4vw));font-size:12px}.wgal .wg-desc span{display:none}}
