/* ==========================================================
   ASPACE - Our works: 3D sphere gallery (home page section #works)
   Cream background, orange / black / white cards
   ========================================================== */
.wsphere{
  --bw:560px; --bh:400px;
  --ink:#141414; --mut:#55524c;
  --wtop:96px;                 /* space for the fixed header */
  --wbot:4vh;
  --disp:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;   /* same bold font as the menu */
  position:relative;
  height:100vh;height:100svh;min-height:660px;
  padding:0;overflow:hidden;
  background:radial-gradient(ellipse 70% 60% at 50% 45%,#f6f4ef 0%,#eeece7 70%);
  color:var(--ink);
  -webkit-user-select:none;user-select:none;
}

/* ---------- 3D stage ---------- */
.wsphere .works__stage{position:absolute;inset:0;z-index:2;perspective:1500px;perspective-origin:50% 50%;cursor:grab;touch-action:pan-y}
.wsphere .works__stage.is-dragging{cursor:grabbing}
.wsphere .works__sphere{position:absolute;left:50%;top:50%;width:0;height:0;transform-style:preserve-3d}
.wsphere .works__card{position:absolute;left:0;top:0;width:var(--bw);height:var(--bh);margin:calc(var(--bh)/-2) 0 0 calc(var(--bw)/-2);border-radius:calc(var(--bw)*.055);backface-visibility:hidden;-webkit-backface-visibility:hidden;cursor:pointer}
.wsphere .works__card.is-active{cursor:default}
.wsphere .works__card-in{position:absolute;inset:0;border-radius:inherit;overflow:hidden;container-type:size;background:#111;box-shadow:0 30px 60px -30px rgba(20,20,20,.45),0 2px 6px rgba(20,20,20,.08);transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s}
.wsphere .works__card:not(.is-active):hover .works__card-in{transform:scale(1.06);box-shadow:0 30px 60px -22px rgba(255,121,0,.55),0 0 0 2px #ff7900}
.wsphere .works__card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;pointer-events:none;-webkit-user-drag:none}
.wsphere .works__card img+.pst{background:linear-gradient(180deg,rgba(0,0,0,.05) 30%,rgba(0,0,0,.82))}

/* generated poster cards */
.wsphere .pst{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:space-between;padding:7cqw;pointer-events:none;color:#fff;font-family:var(--disp)}
.wsphere .pst__no{font-size:15cqw;font-weight:800;line-height:.85;letter-spacing:-.05em}
.wsphere .pst__mid{display:grid;gap:1.4cqw}
.wsphere .pst__mid small{font-family:var(--font,"Inter",sans-serif);font-size:2.6cqw;letter-spacing:.22em;text-transform:uppercase;font-weight:600;opacity:.9}
.wsphere .pst__mid strong{font-weight:800;font-size:8.6cqw;line-height:.98;letter-spacing:-.045em}
.wsphere .pst__foot{display:flex;justify-content:space-between;font-family:var(--font,"Inter",sans-serif);font-size:2.3cqw;letter-spacing:.24em;text-transform:uppercase;font-weight:600;opacity:.85}
.wsphere .pst--a{background:radial-gradient(ellipse 90% 70% at 20% 110%,rgba(255,121,0,.85),transparent 70%),#000}
.wsphere .pst--a .pst__no{color:transparent;-webkit-text-stroke:.5cqw #ff7900}
.wsphere .pst--b{background:#ff7900;color:#000}
.wsphere .pst--b .pst__no{color:#000}
.wsphere .pst--c{background:#fff;color:#000;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
.wsphere .pst--c .pst__no{color:#ff7900}
.wsphere .pst--d{background:linear-gradient(160deg,#1c1c1c,#000 70%)}
.wsphere .pst--d .pst__no{color:#ff7900}
.wsphere .pst--d::after{content:"";position:absolute;left:7cqw;right:7cqw;top:50%;height:.5cqw;background:#ff7900}

/* ---------- text layout ---------- */
.wsphere .works__title,.wsphere .works__meta,.wsphere .works__about,.wsphere .works__tagline,.wsphere .works__counter{position:absolute;z-index:1;pointer-events:none}
.wsphere .works__title{top:calc(var(--wtop) + 1vh);left:var(--gutter,4vw)}
.wsphere .works__tag{margin:0 0 14px;font-size:12px;letter-spacing:.16em;text-transform:uppercase}
.wsphere .works__tag span{display:inline-block;background:#ff7900;color:#000;padding:3px 9px;font-weight:600}
.wsphere .works__title h2{margin:0;font-family:var(--disp);font-weight:800;font-size:clamp(38px,4.8vw,80px);line-height:.98;letter-spacing:-.045em;color:var(--ink)}
.wsphere .works__title h2 em{font-style:normal;color:#ff7900}
.wsphere .works__chip{display:flex;align-items:center;gap:10px;margin:20px 0 0;font-size:12px}
.wsphere .works__chip span{border-bottom:1px solid var(--ink);padding-bottom:2px}
.wsphere .works__orb{width:22px;height:22px;border-radius:50%;background:radial-gradient(circle at 32% 30%,#ffc08a,#ff7900 55%,#a64500);box-shadow:0 6px 18px -4px rgba(255,121,0,.8)}
.wsphere .works__counter{top:calc(var(--wtop) + 1vh);left:50%;transform:translateX(-50%);z-index:3;font-size:11px;letter-spacing:.12em;color:var(--mut)}
.wsphere .works__meta{top:calc(var(--wtop) + 1vh);font-size:11px;line-height:1.5;letter-spacing:.04em}
.wsphere .works__meta--a{right:24vw;color:var(--ink)}
.wsphere .works__meta--b{right:var(--gutter,4vw);max-width:20vw;color:var(--mut)}
.wsphere .works__about{left:var(--gutter,4vw);bottom:var(--wbot);margin:0;max-width:280px;font-size:12px;line-height:1.6;color:var(--mut)}
.wsphere .works__tagline{right:var(--gutter,4vw);bottom:calc(var(--wbot) + 150px);  /* sits above the chat buttons */
  text-align:right;font-family:var(--disp);font-weight:800;font-size:clamp(32px,3.8vw,64px);line-height:.98;letter-spacing:-.045em;color:var(--ink)}
.wsphere .works__tagline span{color:#ff7900}

/* ---------- pill ---------- */
.wsphere .works__pill{position:absolute;z-index:5;left:50%;bottom:calc(var(--wbot) - .5vh);transform:translateX(-50%);display:flex;align-items:center;gap:18px;padding:6px 26px 6px 6px;border-radius:999px;background:rgba(255,255,255,.8);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border:1px solid rgba(0,0,0,.06);box-shadow:0 10px 30px -12px rgba(0,0,0,.3);font-size:12px;white-space:nowrap;max-width:94vw;color:var(--ink)}
.wsphere .works__toggle{position:relative;width:46px;height:46px;border:0;border-radius:50%;background:#111;cursor:pointer;flex:none}
.wsphere .works__plus,.wsphere .works__plus::before{content:"";position:absolute;left:50%;top:50%;width:14px;height:1.8px;background:#fff;border-radius:2px}
.wsphere .works__plus{transform:translate(-50%,-50%);transition:transform .4s cubic-bezier(.2,.7,.2,1)}
.wsphere .works__plus::before{left:0;top:0;transform:rotate(90deg)}
.wsphere.is-open .works__plus{transform:translate(-50%,-50%) rotate(45deg)}
.wsphere .works__label b{font-weight:600}
.wsphere .works__label sup{font-size:8px;margin-left:2px;color:var(--mut)}
.wsphere .works__launch{border:0;background:none;padding:0;font:inherit;color:var(--ink);font-weight:600;cursor:pointer}
.wsphere .works__launch:hover{text-decoration:underline;text-underline-offset:3px;color:#ff7900}

/* ---------- responsive ---------- */
@media (max-width:820px){
  .wsphere{--wtop:84px;--wbot:calc(86px + env(safe-area-inset-bottom,0px))}  /* room for the phone tab bar */
  .wsphere .works__meta--a,.wsphere .works__about{display:none}
  .wsphere .works__meta--b{max-width:36vw;font-size:10px}
  .wsphere .works__counter{top:auto;bottom:calc(var(--wbot) + 62px)}
  .wsphere .works__tagline{bottom:calc(var(--wbot) + 66px);font-size:34px}
  .wsphere .works__pill{gap:12px;padding-right:18px;bottom:var(--wbot)}
}

/* ---------- heading: "Our Works" (sphere itself is untouched) ---------- */
.wsphere .works__title h2{font-size:clamp(48px,5.6vw,100px);line-height:.9;letter-spacing:-.055em;text-transform:uppercase}
.wsphere .works__bar{display:block;width:84px;height:5px;margin:22px 0 14px;border-radius:5px;background:#ff7900;box-shadow:0 6px 18px -4px rgba(255,121,0,.7)}
.wsphere .works__sub{margin:0;font-size:15px;font-weight:600;letter-spacing:.04em;color:var(--ink)}
.wsphere .works__chip{margin-top:16px}
@media (max-width:820px){.wsphere .works__title h2{font-size:clamp(44px,13vw,72px)}.wsphere .works__sub{font-size:13px}}
