/* Works: the 75 in the middle, our work circling it in rings; on scroll the rings gather into phones you can open.
   The section is tall so the scroll has room to drive the scene; the stage stays pinned while it plays. */
.works { position: relative; height: 420vh; background: var(--void); }
.works-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate;
  background: radial-gradient(60% 50% at 50% 55%, rgba(120, 8, 14, .28), transparent 70%), var(--void); }
#works-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
#works-gl { cursor: grab; }
#works-gl.pick { cursor: pointer; }
#works-gl.dragging { cursor: grabbing; }

.works-copy { position: absolute; z-index: 2; top: clamp(72px, 11vh, 120px); inset-inline-start: clamp(20px, 6vw, 110px); pointer-events: none; max-width: 420px; }
.works-eyebrow { margin: 0; font: 600 12px/1 Inter, sans-serif; letter-spacing: .32em; color: var(--red-hi); }
.works-title { margin: 14px 0 0; font-weight: 400; line-height: 1.08; font-family: Lalezar, "IBM Plex Sans Arabic", sans-serif; font-size: clamp(40px, 5.4vw, 78px); }
.works-title em { font-style: normal; font-family: "Aref Ruqaa", serif; font-weight: 700; color: var(--red); }
.works-sub { margin: 14px 0 0; font-size: 15px; line-height: 1.7; color: var(--ash); transition: opacity .4s; }

.scroll-pill { position: absolute; z-index: 3; left: 50%; bottom: clamp(24px, 6vh, 56px); transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px 11px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(10, 10, 12, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #fff; font: 500 13px/1 Inter, "IBM Plex Sans Arabic", sans-serif; letter-spacing: .06em; cursor: pointer; direction: ltr;
  transition: opacity .4s, background .25s, transform .4s var(--ease); }
.scroll-pill:hover { background: rgba(227, 38, 45, .22); }
.scroll-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px var(--red); animation: pill 1.6s ease-in-out infinite; }
.scroll-pill svg { width: 14px; height: 14px; }
.scroll-pill.done { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(10px); }
@keyframes pill { 50% { transform: scale(.55); opacity: .6; } }

.works-count { position: absolute; z-index: 2; bottom: clamp(24px, 6vh, 56px); inset-inline-end: clamp(20px, 6vw, 110px); margin: 0; font: 500 13px/1.4 Inter, sans-serif; color: var(--ash); direction: ltr; }
.works-count b { color: var(--bone); font-weight: 600; }

.works-tip { position: fixed; z-index: 30; left: 0; top: 0; pointer-events: none; padding: 10px 14px; border-radius: 14px;
  background: rgba(10, 10, 12, .82); border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 14px; line-height: 1.4; white-space: nowrap; opacity: 0; transition: opacity .2s; }
.works-tip.on { opacity: 1; }
.works-tip b { display: block; font: 600 15px Inter, "IBM Plex Sans Arabic", sans-serif; }
.works-tip small { color: var(--ash); font-size: 12.5px; }

/* the app videos live here, unseen; the phones show them as textures */
.works-videos { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* the same apps as plain links, for keyboards, screen readers, and browsers without 3D */
.works-links { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.works-links:focus-within { position: absolute; z-index: 4; width: auto; height: auto; clip-path: none; inset-inline-start: 16px; bottom: 90px; display: flex; gap: 8px; }
.works-links a { padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .08); }
.no-gl .works-links { position: absolute; width: auto; height: auto; clip-path: none; inset: auto 0 18vh; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 0 16px; }
.no-gl .works { height: 100vh; }

@media (max-width: 700px) {
  .works-copy { top: 64px; }
  .works-sub { font-size: 14px; }
  .works-count { display: none; }
}
