/* Sarigap v3 = v1 layout + from v2: smooth scroll, cursor (with "مشاهده" over photos),
   footer curtain with an English wordmark, dark-nav skin and button finish. */
:root{--ease-expo:cubic-bezier(.16,1,.3,1)}
html.lenis,html.lenis body{height:auto}
.lenis.lenis-smooth{scroll-behavior:auto!important}
.lenis.lenis-stopped{overflow:hidden}

/* footer curtain: the page lifts off a sticky footer */
.page{position:relative;z-index:1;overflow-x:clip;background:#fff;box-shadow:0 30px 60px -30px rgba(8,22,51,.5)}
.foot{position:sticky;bottom:0;z-index:0;margin-top:0}
.foot-giant-en{direction:ltr;font-family:Ray,system-ui,sans-serif;letter-spacing:-.02em;font-size:clamp(80px,19vw,280px);line-height:1;padding-top:.05em;margin:0 0 -.2em}

/* cursor */
.cursor{display:none}
@media(hover:hover) and (pointer:fine){
  .cursor{display:block;position:fixed;inset:0;z-index:400;pointer-events:none}
  .cursor-dot,.cursor-ring{position:absolute;top:0;left:0;border-radius:50%;will-change:transform}
  .cursor-dot{width:6px;height:6px;margin:-3px 0 0 -3px;background:var(--c-primary)}
  .cursor-ring{width:36px;height:36px;margin:-18px 0 0 -18px;border:1.5px solid rgba(31,79,191,.45);display:grid;place-items:center;transition:width .35s var(--ease-expo),height .35s var(--ease-expo),margin .35s var(--ease-expo),background .35s,border-color .35s}
  .cursor-ring em{font-style:normal;font-size:12px;font-weight:700;letter-spacing:.04em;color:#fff;opacity:0;transition:opacity .2s}
  .cursor.link .cursor-ring{width:56px;height:56px;margin:-28px 0 0 -28px;border-color:rgba(31,79,191,.25);background:rgba(46,107,230,.08)}
  .cursor.view .cursor-ring{width:84px;height:84px;margin:-42px 0 0 -42px;background:var(--c-primary);border-color:var(--c-primary)}
  .cursor.view .cursor-ring em{opacity:1}
  .cursor.view .cursor-dot{opacity:0}
  .cursor.dark .cursor-dot{background:#fff}.cursor.dark .cursor-ring{border-color:rgba(255,255,255,.5)}
  .intro-on .cursor{display:none}
  /* the cursor carries the "view" cue now, so the corner + badge on photos is dropped */
  .tile[data-full] .tile-cap{display:none}
  .tile[data-full]{cursor:none}
}

/* v2 colour finish: dark nav skin over dark sections, buttons with a light sweep */
.nav-in{transition:background .4s,border-color .4s}
.nav.on-dark .nav-in{background:rgba(10,26,68,.72);border-color:rgba(255,255,255,.12)}
.nav.on-dark .nav-brand,.nav.on-dark .nav-links a{color:#DCE6FA}
.nav.on-dark .nav-links a.on,.nav.on-dark .nav-links a:hover{background:rgba(255,255,255,.1);color:#fff}
.nav.on-dark .menu summary{background:rgba(255,255,255,.1)}.nav.on-dark .menu summary i{background:#fff}
.btn{border-radius:12px}
.btn-primary:not(.dock){position:relative}.btn-primary{overflow:hidden}
.btn-primary::after{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 30%,rgba(255,255,255,.28) 50%,transparent 70%);transform:translateX(120%);transition:transform .8s var(--ease-expo)}
.btn-primary:hover::after{transform:translateX(-120%)}

html,body{overflow-x:clip}

/* footer wordmark, three stacked copies of the word:
   fill = the group photo seen through the letters; run = a bright segment that keeps travelling
   around the letter edges; hot = a white edge that appears around the pointer on hover */
@property --wa{syntax:"<angle>";inherits:false;initial-value:0deg}
.foot-giant-en{position:relative;display:grid;color:transparent}
.foot-giant-en>span{grid-area:1/1}
.wm-fill{background:linear-gradient(180deg,rgba(8,22,51,.35),rgba(8,22,51,.7)),url(../img/foot-group.webp) 0 6%/auto 52% repeat;
  -webkit-background-clip:text;background-clip:text;filter:grayscale(.85) brightness(.9);opacity:.5}
.wm-run,.wm-hot{pointer-events:none}
.wm-run{-webkit-text-stroke:1.5px #7FAAFF;
  -webkit-mask-image:conic-gradient(from var(--wa),transparent 0deg,transparent 250deg,#000 330deg,transparent 360deg);
          mask-image:conic-gradient(from var(--wa),transparent 0deg,transparent 250deg,#000 330deg,transparent 360deg);
  animation:wmrun 7s linear infinite}
@keyframes wmrun{to{--wa:360deg}}
.wm-hot{-webkit-text-stroke:2.5px #fff;filter:drop-shadow(0 0 6px rgba(255,255,255,.75));opacity:0;transition:opacity .35s var(--ease-expo);
  -webkit-mask-image:radial-gradient(170px circle at var(--mx,-999px) var(--my,-999px),#000 0%,#000 40%,transparent 72%);
          mask-image:radial-gradient(170px circle at var(--mx,-999px) var(--my,-999px),#000 0%,#000 40%,transparent 72%)}
.foot-giant-en.lit .wm-hot{opacity:1}
@media(prefers-reduced-motion:reduce){.wm-run{animation:none;-webkit-mask-image:none;mask-image:none;opacity:.35}}
.foot-giant{pointer-events:auto}
.foot-giant-en{font-weight:1000}
.foot-giant-en{cursor:default}
@media(hover:hover) and (pointer:fine){.cursor.word .cursor-ring,.cursor.word .cursor-dot{opacity:0}}

/* desktop: the word sits lower and fades out toward the bottom edge */
.foot-giant-en{background:none;margin:0 0 -.36em;-webkit-mask-image:linear-gradient(180deg,#000 25%,rgba(0,0,0,.35) 60%,transparent 85%);mask-image:linear-gradient(180deg,#000 25%,rgba(0,0,0,.35) 60%,transparent 85%)}
/* build stamp, the very last line of the page */
.foot-build{position:relative;z-index:2;text-align:center;font-size:11px;letter-spacing:.06em;color:rgba(169,188,230,.45);padding:var(--s-2) 0 var(--s-3);font-family:Ray,system-ui,sans-serif}
.foot-build{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 10px}
.foot-build [data-build]{font-variant-numeric:tabular-nums}
.foot-build a{color:rgba(191,211,255,.8);font-weight:700;border-bottom:1px solid rgba(191,211,255,.3)}
.foot-build a:hover{color:#fff}
/* phones: the earlier plain wordmark (soft gradient, no photo, no edge lights) */
@media(max-width:960px){
  .wm-run,.wm-hot{display:none}
  .wm-fill{background:linear-gradient(180deg,rgba(143,178,245,.16),rgba(143,178,245,0) 85%);-webkit-background-clip:text;background-clip:text;filter:none;opacity:1}
  .foot-giant-en{-webkit-mask-image:none;mask-image:none;margin:0 0 -.2em}
}
/* room above the glyphs so the mask (and the hover edge) never clips the letter tops */
.foot-giant-en{padding-top:.18em;margin-top:-.13em}
.foot-giant-en>span{line-height:1.35;padding-top:.08em}
.foot-giant-en{padding-top:0;margin-top:-.28em}
.foot-giant-en{margin-top:-.12em}

/* wordmark: photo fill only, fading fully out at the bottom; credit link reads like plain text */
.foot-giant-en,.foot-giant-en>span{-webkit-mask-image:linear-gradient(180deg,#000 20%,transparent 100%);mask-image:linear-gradient(180deg,#000 20%,transparent 100%)}
.foot-giant-en>span{-webkit-mask-image:none;mask-image:none}
.foot-build a,.foot-build a:hover{color:inherit;font-weight:inherit;border:0;text-decoration:none}
.foot-giant-en,.foot-giant-en{-webkit-mask-image:linear-gradient(180deg,#000 18%,transparent 66%)!important;mask-image:linear-gradient(180deg,#000 18%,transparent 66%)!important}
/* two organizers: centred pair */
.team{grid-template-columns:repeat(2,1fr);max-width:760px;margin-inline:auto}
@media(max-width:600px){.team{grid-template-columns:1fr}}
